|
|
Please let me know the name of constant identifier for executing applications path in Visual basic 6.0
|
|
|
|
|
Try
App.Path
Develop2Program & Program2Develop
|
|
|
|
|
|
hi
I have some forms and these forms are actually related. what i want to do is that in form2 ,i want to access and modify the contents of the text boxes in form1, while i am still in form2. how can i do this ? do i have to declare them all as Public shared in from1.
Thank You
Kokemo
|-|■~F~|-|■
|
|
|
|
|
KOKEMO wrote: how can i do this ?
See Passing Values between Forms[^]
KOKEMO wrote: do i have to declare them all as Public shared in from1.
That would be unwise.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi,
In form2
Private m_f As Form1
Public Sub New(ByVal f As Form1)
Call Me.New
m_f = f
End Sub
Public Sub New()
InitializeComponent()
End Sub
...
Now, you can use m_f to refer to form1
in Form1
Dim f As New Form2(Me)
f.Show
regards
|
|
|
|
|
This was brought up yesterday.
You do NOT modify the controls on Form1 from Form2. Form2 shouldn't know anything about Form1, nor should it care. All it should care about is the data that it's supposed to manipulate.
If you're showing Form2 using ShowDialog() , then Form1 creates an instance of Form2 and waits for Form2 to be dismissed. Form2 exposes any data that it should as public properties or as some data object. Form1, when it gets control back, looks at the data in Form2 properties or in the data object that it modified and then modifies its own controls accordingly.
|
|
|
|
|
Dave Kreskowiak wrote: do NOT modify the controls on Form1 from Form2
Seems like there has been a rash of these types of questions lately
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Makes me think there's a new school year somewhere...
|
|
|
|
|
Ohhhhhh joy
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i searched alot about how to print datagrid and all i get was alot of code and classes .
i have a populated datagrid
all i want is to print the datagrid as its , i don't want to manipulate the cells size or fonts or any thing ..... just print it completly
note : i had tried to print it but the printed part was the monitor showing part ... i need to print it completly
and thanks for all
|
|
|
|
|
Mr.Kode wrote: i searched alot about how to print datagrid and all i get was alot of code and classes .
What did you expect you were going to get?? Something that does it for you automatically??
This article[^] is about as generic as you're going to get.
|
|
|
|
|
|
i have made this statement
"select distinct fatrname from reglz where fatrname LIKE '%" & TextBox1.Text & "%' "
then he has display all the results in datagride
in this datagride there is some names "mark" and there is some names "marko"
what i need is to select all these records to edit them and from textbox we can write marko for all current records to edit all these names
how can i do that
this is very very urgent
plzz
|
|
|
|
|
try to check the value of your txtbox... maybe it is getting a null string or space that is why your database is returning all the data...
|
|
|
|
|
I m trying to make an application which is connected with more than one database and its depend on user that user may have any name so I create a database name is blank in bin --> debug folder when user make a new colony database. It copy from the existing database which have already same tables query etc.
plz give me coding.
plz help me and thakx in advance
Nikesh Yadav,
CSS infotech,
Gurgaon,
Haryana(India).
|
|
|
|
|
I refer you to the answer I gave in the C# forum[^]
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi,
Dim bDel as Boolean
Dim strSource as string
Dim strTarget as string
...
bDel = ...
If File.Exist(strTarget) Then
If bDel = True Then
File.Delete(strTarget)
Else
MsgBox ("File Already Exist!")
Exit Sub
End If
End If
File.Copy(strSource, strtarget)
regards
It's nice 2b important, but it's more important 2b nice...
|
|
|
|
|
|
this is m sql statement
SELECT * FROM Persons
WHERE FirstName LIKE '%la%'
all i need is put a textbox for the user to write anything instead of "la"
and i don't know how
plz help
|
|
|
|
|
Hi,
You could simply use the following:
Dim strSQL as STring
strSQL = "SELECT * FROM Persons WHERE FirstName LIKE '%" & TextBox1.Text & "%'"
...
But this is not a secure way, SQL Injection could be possible here!
regards,
NajiCo http://www.InsideVB.NET[^]
It's nice 2b important, but it's more important 2b nice...
|
|
|
|
|
|
As the previous poster mentioned, the solution given is susceptable to SQL Injection Attacks. You should learn to defend yourself from them. Please read SQL Injection Attacks and Tips on How to Prevent Them[^]
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Naji El Kotob wrote: But this is not a secure way, SQL Injection could be possible here!
That much is true.
Read: SQL Injection Attacks and Tips on How to Prevent Them[^]
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|