Well giving the user the ability to execure your scripts is wrong, to start with.
The program will probably won't work cuz the users have user privilages.
Trying to raise their privilages is a nono.
So you can write code that will impersonate the user as an administrator and then will run the...
I want to create an access table and ad some fileds.
i use this:
Dim dbs As DAO.Database, dbsContacts As DAO.Database
Dim tdf As Object, fld As Object
dbs = accessapplication.CurrentDb
tdf = dbs.CreateTableDef("IPDataTable")
Dim long1 As Long = 10
I do a drag and drop operation between a Listview and a Datagridview.
The problem is that i cannot get the Cell coordinates when i drop the data since the
DataGridView_DragDrop event only pronides points(x,y) and i need rectangle coordinates for the datagridview Cell.
I'm asking for your help again because i run into some problems.
Ok first i'll post my code and then explain (exuse some Greek comments in the code :) )
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim strTableName As...
I was thinking to use a dataset so i could have the name of the form and it's location and also the form that has a relattionship with it.
So i guess when i use invalidate the removed rows will not draw.
Ok i'll try and if i have problems i'll post them.
Thanks for the tutorial, i'll look into it.
Yes i can explain. Think of it as the query designer in Access. A form is shown(showdialog) and you select the table which is added in the backgroung along with other tables with lines showing the relations.
(actually i used dialogresponse and i remove...
Can you give me an example?
Let's say that i have the line coordinates between my forms in an arraylist or a dataset.
Ok the paint event hits multiple times. What must i do? Have in mind that i want to paint and remove the lines when the forms move (locationchange and sizechange events).
Listen i solved the problem BUT LISTEN TO THIS!
1st i had my form show up before i draw. Let's say that this is somewhat logical.
2nd if you have breakpoints and some of them hit then the lines will not draw!!!!!!!!!!!!!!!!!!!!! Unbelievable! Microsoft did it again!! (i have 2005 team...
I've written the exact code on a new application and added the extra code you gave me below the forms designer "after Me.ResumeLayout(False)"
I press the button but it does not do anything.
Also the problem i have is that even if it draws a line, when i want to add another line in the form it...
i'm trying the
Dim G as graphics = Graphics.FromhWnd(YourForm.Handle)
it does not work.
YourForm is the shodialogform or the mainform.
I'm assuming the showdialog form.
But it does not work , or i'm using it wrong.
Dim Grr As Graphics = Graphics.FromHwnd(Showdialogform.Handle)
' Dim grr As...
Im not realy sure that the paint event will use the function that i call or all the functions that reside inside it. I don't just have 1 function for painting.
l will try your code and then i'll try to put all the functions in the paint event. I have tried to put a boolean to control the...
I have a problem with drawing on forms.
I use a form (with showdialog) to add forms in a main form that is shown behind the showdialog form.
The problem is that when i use the graphics.drawline to draw lines between the forms, it only works AFTER i close the showdialog form.
(meaning that if...
I have some tables and i want to view their Relationships.
Let's say i have a table named "Help"
i use the Stored procedure "sp_fkeys" to get the Fkey-keys of the tables that refear table "Help". What i cannot do is the opposite. Meaning that i want to see the tables that "Help" is...
I've disabled the timer and the problem is still there.
The SQL connection was tested in a windowsApplication and works.
Something to do with service not displaying a form correctly. Also tried a suggestion for "application.run" but does not work. :mad: