you can see the difference in the 'Watch window' itself..
during debugging, select any variable from the code and right click in the watch window and select the add watch option. you can see many options inside.
morover watch displays the value, type and context of the variable, but imm window shows only the value. also, imm window doesnt have the variety options that is provided by the watch window... got it?
i'm new in vb 2005 and vb in general, anyway i'm building Hotel Reservation System and i almost done but i never worked with sql before so here is my question
i need to include login form into my project which till now is working and i find out that i need to write an embedded sql stament to confirm that the user name and password are in the database
so how can i make this possible
note:i made the form with 2 text box named(txtEmployeeCode,txtEmployeePassword), one Button(btnLogin), and 2 labels(lblEmployeeCode,lblEmployeePassword)
i did learn but there there is one thing i could not make right
here is my query
"Select EmployeeCode,EmployeePassowrd from tblEmployees where EmployeeCode = ??????"
and here is my problem :
how could i take the text in 'txtEmployeeCode' and put it in the query to match the 'EmployeeCode' in place of the ?????? because i tried to use 'txtEmployeeCode.text' and it did not work.
One more thing : what could i do to make the 'EmployeePassword' visible in 'txtEmployeePassword' textbox after selecting it above in the query ?
by the way i did create a connection and open it, also created sqlcommand variable, and everything else that i need to use
I have a compare to sort the order of SubItems in a ListView and it works great, but... If the ListView shows Groups nothing is sorted. Here's the compare function from my class. How can I make it work when Groups are shown?
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer _<br />
Implements IComparer.Compare<br />
Dim ItemA As String<br />
Dim ItemB As String<br />
ItemA = CType(x, Windows.Forms.ListViewItem).SubItems(_Column).Text<br />
ItemA = ""<br />
End Try<br />
ItemB = CType(y, Windows.Forms.ListViewItem).SubItems(_Column).Text<br />
ItemB = ""<br />
End Try<br />
If _Ascending Then<br />
Return [String].Compare(ItemA, ItemB)<br />
Return [String].Compare(ItemB, ItemA)<br />
End If<br />
End Function<br />
I am trying to create BMP file to print on Epson Receipt printers using OPOS. Epson printers only allow - BMP File which are Monochrome, 16 color (4 bit ) or 256 Color (8-bit) and should be uncompressed format.
I tried working 1bppIndexed Bmp. However the printer does not seem to except it. Currently the technique I am using is saving the image first as "GIF" ( 8 bit ) and then again saving it as bmp. However would like to know any techniquie for saving Uncompressed monochrome ( 1 bit ) bmp in Vb.net
I have two arrays. The first holds titles, the second holds text to see if the titles should be in a different case or bold. These names are then displayed in a Combo Box. Please bear with my simple example but it is about the only way to discribe what I want to do.
I'm assuming you're using VB6. This won't work because the FontBold property of the ComboBox is for all of the items in the ComboBox, not ones you pick. It's either all of the items are bolded, or none of them.
Dave Kreskowiak Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
I am actually using vba for Word 2003, which I believe is much closer to VB6 than to anything else.
And you are right about it doing the whole list. One the name is picked it is added to a Word document text form field, what I believe I will need to do is this: set my txtName.Value, test for the string, then bold if need be.
Thanks for the reply.
Last Visit: 31-Dec-99 18:00 Last Update: 19-Apr-21 18:53