|
Hi All,
How to I update LED kind of displays in a main form when something
gets updated in the background form? How do I add such status LEDs in
VB 6.0? Not a seven segment LED. but the color LEDs that glows depending on a particular state.
I m working in VB 6.0. I just to have one button that changes color when a flag is updated.
-Please help
i am a newbie
thanks
bala
|
|
|
|
|
Drop a timer control on your form and change the color of your button in the timer event, based on whether the flag is set / updated.
Hope this helps
Chandra
|
|
|
|
|
hi there,
i'm currently working on a thesis and i desparatly need some help from you on comboboxes. Here's the question:
i have
cbRestname : combobox
txtResttel : textbox
txtRestLoc : textbox
i have a database named Restaurants on MS Access and i have a table named Restaurants_avail where i have rest_name, Rest_loc, rest_tel and rest_type
I have already connected the db to my application and have been able to populate the combobox with the rest_name field. My question is this....when i scroll during runtime through the combobox, i want the textboxes to be filled with the location field and the telephone field....how am i going to do that??? I need some code pls
thank you very much for your time
lukis
|
|
|
|
|
Have you tried writing code in the Click or Change event of the combo box? You could query the database based on the combo box value and set the text boxes.
Hope this helps
Chandra
|
|
|
|
|
yes but my prob is this. i don't know the code to put in the selectedindexchanged i'm new to comboboxes so if you could supply me with some code it would be very helpful.
thank you for your prompt response
luke
|
|
|
|
|
What version of VB are you using?
Chandra
|
|
|
|
|
|
any news
luke
|
|
|
|
|
Hi
I am sorry, but I dont know the exact syntax in VB 2003. I think you will need to open a cursor (a record set?) from the database that corresponds to the selection in the combo box and fill in the text boxes from values in that cursor.
Hope this helps
Chandra
|
|
|
|
|
i guess vb 2005 is almost the same. if you have any code regarding vb2005 i think i can manage to try something out
luke
|
|
|
|
|
guys/gals,
i found this on thecodeproject but it's in C#.
www.codeproject.com/csharp/combobox.asp
I want something exactly the same but obviously in vb.net. if you could translate it in vb then i could use my data to arrange it but at least i get an idea of how this is
thanks
luke
|
|
|
|
|
guys imagine i have this table
Rest_type Rest_name Tel Location
----------- ------------ --- ----------
ala carte del pinto 2345546 Dublin
pizzeria francesco's 3455667 Rome
now i have a form with a combobox (cbRests), and 2 textboxes (txtType, txtTel)
i have been able to include the Rest_name in the combobox but i need to fill in the textboxes with the relevant info...ex
when i select del pinto from the combobox, i want the textboxes to display ala carte and 2345546....how can i do that......in code please as i have no idea on how to do that.... thank you very much...your help is very much needed here
luke
|
|
|
|
|
Use combo box selected event changed to fill the text boxes.
Janani
|
|
|
|
|
my problem is how to fill them i don't know the syntax
luke
|
|
|
|
|
Try adding columns in virtual mode and populate combobox data when DataGridView control fires event "Cell Value Needed". You can also derive your own combobox cell and return text "Loading..." in Cell.GetValue function while the SELECT statement is running at background. When it is finished, call to InvalidateCell and populate combobox with db results.
-----------------
Solo hay 10 tipos de personas, las que saben binario y las que no
|
|
|
|
|
Hi all,
I need to add one more column "notes" to the datagrid which already has aound 10 columns.I know how to do it in asp.net.In asp.net we go to the property builder and add columns to the datgrid.But in vb.net is there anyway to add one more column to the existing datagrid..Please help me as its a bit urgent.
Thanks a lot for all your valuable time
Durga
Durga
|
|
|
|
|
Try adding columns with dg.Columns.Add("ColumnName"). Be sure datagrid is not linked with any DataSource (add linked columns with column property --> "DataProperty". If the dg is linked, unlink, add column and link again.
-----------------
Solo hay 10 tipos de personas, las que saben binario y las que no
|
|
|
|
|
Hi all,
I need to add one more column "notes" to the datagrid which already has aound 10 columns.I know how to do it in asp.net.In asp.net we go to the property builder and add columns to the datgrid.But in vb.net is there anyway to add one more column to the existing datagrid..Please help me as its a bit urgent.
Thanks a lot for all your valuable time
Durga
Durga
|
|
|
|
|
Can I describe a methods purpose through intellisense in the visual studio designer. I can see the required parameters of the method, I would like to add a description as well. I'm using VB.Net on framework 1.1.
-- modified at 2:50 Tuesday 31st October, 2006
PJ
|
|
|
|
|
Above for method start a comment with 3 single quote marks ie '''
This should give you an xml template to enter a description of the method, parameters, return values etc.
Steve Jowett
|
|
|
|
|
That only works in VB.NET 2005, not 2003.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
You'll have to use a 3rd party tool to do this in VB.NET 2002 and 2003. Xml documentation support wasn't added to VB.NET until 2005 (.NET Framework 2.0). Something like VBCommentor[^] will do it for you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
i didn't tried this on framework 1.1,
but, you just try this one.
after defining the complete function with return type, parameters and all.
you press on the comment key 3 times just above the function name. So, it will automatically comes with the details, there you can give your details for the
parameters, return type and function description etc.
if it solved your problem, please dont forget to rate the answer....
Thanks & Regards,
Jeneesh K. Velayudhan
|
|
|
|
|
I need To Open an existing Excel File and Replace a Value in a Particular Cell.Please Help me on this.
Ram Kiran
|
|
|
|
|
hi
in VB6 do the following in sequence
1-go to the Project->References...
2-select Microsoft Excel x.x Object Library
3-press OK
4-in code window define these new variables:
Dim xls As New Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
Set wb = xls.Workbooks.Open(ExcelFileName)
Set ws = wb.Worksheets(WorksheetName)
ws.Cells(RowNo, ColNo) = VALUE
wb.Close False
Set wb = Nothing
bye
|
|
|
|