|
Hi Chee ken,
Try
ComboBox1.Items.Add("blablabla")
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Thanks for reply. The item add sucessfully. Can i ask one more question, how to assign the value for it ? or its value is -1? And why it not show while the program load ( it locate at the second item at the drop down list and the first one is blank ) ? thanks.
Best regards,
Chee ken
|
|
|
|
|
The .Add method will usually put the value at the end of the list. If you want to add the item at a specific point in the list, use:
<br />
dim YourIndexNumber as Integer<br />
'Determine here at what position you want to insert your value, <br />
'and assign this position's index number to YourIndexNumber.<br />
'Index starts at 0<br />
ComboBox1.Items.Insert(YourIndexNumber , "blablabla")<br />
I am sorry, but I don't quite understand the second part of your question.
-- modified at 4:29 Friday 9th February, 2007
My advice is free, and you may get what you paid for.
|
|
|
|
|
And what hapend when combobox source is a table?. Necesary you must insert into that table the new item then. In addition you must refresh the combobox after. ¿What do you think?.
Thanks.
|
|
|
|
|
It depends on two things:
1. do you use databinding between the table and combobox?
If you do, then yes, you would need to insert the entry into the table and refresh the databinding.
If you fill the combobox with your own code though, and just use the table as a source, you could insert the entry straight into the combobox.
2. do you need the entry for your combobox to be saved into the table, or does the table only contain the basic entries, and are new entries just temporary in nature?
If you need the new entries to be saved, use databinding, and write the entry into the table, rather than to the combobox.
If they are only temporary, write them straight to the combobox, and do not use databinding.
Is that what you meant?
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Is it possible to use the fingerprint reader in my application? As i know the fingerprint reader is for logon. Need to install any SDK or what? Can anyone help me? Thanks.
|
|
|
|
|
You can get the Fingerprint reader SDK from http://www.ipaqdeveloper.com/[^]. You'll have to register as a developer, but I think it's free.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Register as a developer have to pay $199. I am still a student and i can't effort to pay for it. Do you know where can download the SDK without paying any fee? Thanks!
|
|
|
|
|
Nope. That's the only source I know of. And paying the $199 bucks for it pretty much means you're not going to find it legally anywhere else.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Load DEnvAparoAtt
With DEnvAparoAtt
If .rsDcmd_OneSubjAtt.State <> 0 Then .rsDcmd_OneSubjAtt.Close
End With
Rpt_SpecificSubjectAtt.Sections(2).Controls(2).Caption = cmb_fac.Text & " ( " & cmb_group.Text & " ) Part-" & cmb_part.Text & " Section ( " & cmb_sec.Text & " ) " & cmb_shift.Text & " " & cmb_Ses.Text & " Student Attendenace For " & Cmb_subject.Text
Rpt_SpecificSubjectAtt.Refresh
If Rpt_SpecificSubjectAtt.Visible = False Then Rpt_SpecificSubjectAtt.Show
i write this code and the data report not show refresh report?
|
|
|
|
|
Please try to write a subject that has anything to do with your question. As almost every thread here is a request for help, writing that in the subject line is worthless for distinguishing it from other threads. The urgency of the matter is also information that has no place in the subject line.
Unless you explain what it is that you are doing, you can only get answers from people who has done exactly what you are trying to do in the exact same way that you are trying to do it, so that they can recognise the code. I don't know what kind of report you are talking about, so I can't even start to look for any information about it.
---
single minded; short sighted; long gone;
|
|
|
|
|
I already write the subject which i post last night.sorry once again.this qustion is about vb 6.0 data reports
|
|
|
|
|
I need to open an Excel file that has been stored in the Access Database using the insert Object functionality of MS Access manually.
What i am aware of is that i cant just read the field containing the Excel File into a Byte Array and pass it to the Excel object,as the file is wrapped in the OLE Wrapper used by Access while inserting the file in database.
I have tried locating the Header of Excel file from the byte array and read the file from there on but it is not working.
while (true)
{
if (0xE11AB1A1E011CFD0 == BitConverter.ToUInt64(byStream, i))
break;
i++;
}
output.Write(byStream, i, byStream.Length - i-1);
byStream is a byte array into which i have read the Excel file from Database.
I am locating the Excel file header in the byte stream and am writing the byte array to a file from that location.But on opening the written file it dosent work.
Similar approach had worked in case of Images but now in this case.
Can some one please tell me as to how i can open the Excel File.
|
|
|
|
|
how to convert csv to vb.net data table
the csv file have 10870 rows 12 columns
that i am not able to read please give the solution
i am using vb.net windows application
|
|
|
|
|
Instantiate a DataTable , add appropriate DataColumns , foreach line in the file...
1) Use the DataTable 's NewRow method to create a new DataRow
2) Split the line on the commas, and foreach the resultant array, populating the DataRow
3) Add the DataRow to the DataTable with the DataTable 's Add method.
|
|
|
|
|
sir,
I am developing an application in ASP.NET using VB.NET.My backend tool is MS-Access.How can i select time only from a date time feild...
Actually i want 09:00:15 AM/PM only...But its displaying 12/12/1987 09:00:15 AM/PM ...
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
use the format command i.e
Format(yourdata, "h:mm:ss")
|
|
|
|
|
Although VB6's Format still works nicely, you're better off using .net's built in properties, because you can never be sure about the settings of client PCs and servers, etc:
Depending on what exactly you need you can use:
YourDate.ToLongTimeString
or
YourDate.ToShortTimeString
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi I have one form in main page and I had to create another form on a user control page where i have a voting poll. i get below error when i run the site
Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.
i saw some articles where it advises you to do visible=false but i want to have both form's control functional how will i be able to do it?
in my usercontrol, i have a asp:radiobuttonlist, a textbox and a submit button. I tried to get a reference of the main form i.e.
Dim form as control
Me.findcontrol("MainForm")
but previous developer wrote a lots of messy code so name of the main form changes from place to place so i think its not a good idea to get a reference of the main form.
is there anyway i can have those form populated in usercontrol so that i could collect some data from users as a voting poll
please help
|
|
|
|
|
You might check to see if the usercontrol has a form tag. You can remove it from the usercontrol and only have the form tag in the web page.
|
|
|
|
|
user controls will have plain code, i.e no html, head, body, form etc etc. you can just write your design code directly
Gautham
|
|
|
|
|
we are able to have multi form on page etc.but you can show in it at a time 1.
on page load etc true you required form by passing query string like
abc=request.querystring("id")
if abc=1 then
form1.visable=true
form2.visable=false
else
form1.visable=false
form2.visable=true
endif
|
|
|
|
|
I am going to dive into industry control using PC program.
And now what i need, i think it is some books suggested from u. Some websites or BBS and heart words maybe
Thanks very much!!!!
By the way. I am now using VB.NET
MSN:msnadair@hotmail.com
Skype:skyadair
|
|
|
|
|
A good start would be:
http://www.google.com
My advice is free, and you may get what you paid for.
|
|
|
|
|
codeadair wrote: I am going to dive into industry control using PC program.
That's a very, very generic description of what your going to be dealing with. There is no one book that covers everything about the subject. You're going to have to be much more specific about what your dealing with, like Ladder Logic, PLC's, what types of controllers, yada, yada, yada, ... And start Googling them yourself.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|