|
hi
i have a problem of populating the datagridview which is unbound data coming from the other form....look like this...i well explain...i used two forms one form who holds the datagridview and the second forms holds the textboxes which i'm going to input my data and well putted into the others form which has the datagrid...i'm stock in this case...i'm not using binding,,all i want to know is..how do i get the data from the other form...
can you please help to formulate the code for unbound...please guys...
thanks
|
|
|
|
|
|
Hi... Right now I'm using visual basic in access so the controls are limited. there is no timer included in the controls that i'm using. i need to stop a process when i press escape key... so i used doevents and on_keypress. But the problem is while the process is running you can press the buttons in the form... the quit button etc. including the process button. if i disable the process button after i pressed it there would be an error and it will not continue the process. is there a way that i can disable the mouse event? tnx
|
|
|
|
|
Access is a funny animal... IIRC, you cannot disable a button that has the input focus. You have to give another control the focus before you can set your button's Enabled property to False.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
help me...
I want change properties of file as summary tab (title,subject,author)
by use vb.net
kbbman2
|
|
|
|
|
It's most definately NOT easy! Here[^] is a sample of the code you need to pull this off. There is no native support for this in the .NET Framework BCL.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I'm using the following code to update my database but the changes in my data table never reflected back to my database
<br />
<br />
Dim aDataTable as new aDataSet.MyTable<br />
Dim aTableAdapter as new aDataSetTableAdapters.MyTableTableAdapter<br />
<br />
aTableAdapter.Fill ( aDataTable )<br />
<br />
Dim aRow as DataRow<br />
<br />
aRow = aDataTable.NewRow()<br />
aRow.item(0) = "Test 123"<br />
<br />
aDataTable.Rows.Add ( aRow )<br />
<br />
aDataTable.AcceptChanges()<br />
aTableAdapter.Update( aDataTable )<br />
<br />
What have I miss ?
Thank you
WiL
|
|
|
|
|
You're calling the .AcceptChanges() method to commit the changes to the DataSet, not the database. Call the DataAdpter 's .Update() method BEFORE you call AcceptChanges
Update commits any changes back to the database.
AcceptChanges commits any changes to the DataTable and resets each DataRow's status to Unchanged . This is why no changes are being written back to the database. Because you've told the table there are no changes!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You're the best!
Thanks alot
WiL
|
|
|
|
|
is there another way of comparing duplicate picture (jpg)
aside from filename, filesize and dates
tnx in advance
|
|
|
|
|
You could try doing a SHA1 hash on it. There's C++ code that does it on CP but I'm not sure about VB/VB.NET.
Steve
|
|
|
|
|
Could someone please explain to me the easiest way in code to compare two files?
I have created an openfiledialog to select 2 files and would like to compare them. I looked at msn but got very confused. If you don't mind taking the time to show me an example that would be wonderful.
Thanks again.
Win32newb
"If I wrote a book like I code. It would be one page thick and contain only one word (DUH!)"
|
|
|
|
|
|
hello everyone!! I am a student from India. I need the source code for implemention of sobel and canny edge detection for tumour image analysis.If anyone knows where I can get it or has the source code please please notify.
signing off is preci
|
|
|
|
|
|
I'm getting a extra space added to a records fields when I update the record. This is a VB6 Access DB application.
The only thing I can think of is the SQL
<br />
strSQLEditCustomer = "UPDATE Customers SET ContactFirstName = ' " & txtFName.Text & " ' , ContactLastName = ' " & txtLName.Text & " ' , BillingAddress = ' " & txtAddress.Text & " ' , City = ' " & txtCity.Text & " ' , State = ' " & CboState.Text & " ' , PostalCode = ' " & CboZip.Text & " ' , PhoneNumber= ' " & txtPhone.Text & " ' , EmailAddress = ' " & txtEmailAddress.Text & " ' WHERE CustomerID = " & SearchCustID & " "<br />
|
|
|
|
|
I figured it out. FYI for those who may come across the same problem
in the SQL when filling a table field and your setting it = to a textbox, the ' " & textbox1.text & " ' will result in the space added to the beginning of the field. changing the SQL to '" & textbox1.Text & "' will fix the problem. Note the difference in the placement of the single quotes between the 2 examples.
|
|
|
|
|
|
Hi,
Jlawrnce wrote: strSQLEditCustomer = "UPDATE Customers SET ContactFirstName = ' " & txtFName.Text & " ' , ContactLastName = ' " & txtLName.Text & " ' , BillingAddress = ' " & txtAddress.Text & " ' , City = ' " & txtCity.Text & " ' , State = ' " & CboState.Text & " ' , PostalCode = ' " & CboZip.Text & " ' , PhoneNumber= ' " & txtPhone.Text & " ' , EmailAddress = ' " & txtEmailAddress.Text & " ' WHERE CustomerID = " & SearchCustID & " "
Use "Trim" method to supress the extra space
from the controls
like
"UPDATE Customers SET ContactFirstName = '"& Trim(txtFName.Text) &"'"
This will also help you.
Pankaj Kulkarni
|
|
|
|
|
Hi,
How to create Navigation Panel similar to the navigation panel seen in Microsoft® Outlook 2003, in vb.net.
waiting your answer.
|
|
|
|
|
|
|
Hello everybody,
how can convert date (in numbers) into the text format(string) in vb.net.
thank n take care.
bye...
|
|
|
|
|
You need to use the Date[^] type.
Dim myDate As New Date(myYear, myMonth, myDay)<br />
Dim myString As String = myDate.ToShortDateString()
|
|
|
|
|
.tostring?
example:
dim tDate as date= today
dim tDateStr as string = tDate.tostring
|
|
|
|