|
Your auto run program needs to be written in C++, unless you can guarentee that the .NET framework will be preinstalled on all PCs that have your CD put into them.
TO make it work, you just create an autorun.inf file on the root of your CD
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Looks like I'll have to get glued up with C++ then.
Chears
|
|
|
|
|
i am using dotnet 2003.i am doing my project in vb.net windows application.i have two form in my project.first form is datagrid .In second form label,textboxes and combobox are avilable to save the entering values in datagrid of first form through this 2nd form.my problem is,i want to search a value using combobox.
for example,
in first form,
there are 4 columns named as name,age,rollno,address in datagrid.
values are ramu for namecolumn,24 for age column,42 for rollno column,cbe for address column.now values in datagrid like below
id name age rollno address
1 ramu 24 42 cbe
2 somu 23 32 che
here id is primary key.
in 2nd form,there are 4 label,4 textbox and 1 combobox.textbox arenamed as nametextbox,agetextbox,rollnotextbox,addresstextbox and 1 combobox named as searchcombobox.
now values of name(ramu,somu) are stored in combobox.
my problem is,
in second form,
if i click the value ramu in combobox means,want to display the values of ramu in textboxes.(ie..want to display automatically ramu in nametextbox,24 in age textbox,42 in rollnotextbox,cbe in address textbox)
during runtime in vb.net windows application.so how i automatically display the values of row in each textbox by clicking the values in combobox.plz help me.
|
|
|
|
|
First of all tell me from where you are filling the From2 combobox items???
With Regards...
Sanjay K
|
|
|
|
|
hi,
use following code at selectedIndexChanged event of combo
dim i as integer
for i=0 to form1.datagridview1.rows.count-1
if form1.datagridview1.rows(i).cells(1).value.tostring=me.combo1.text then
me.textbox1.text=form1.datagridview1.rows(i).cells(1).value
me.textbox2.text=form1.datagridview1.rows(i).cells(2).value
me.textbox3.text=form1.datagridview1.rows(i).cells(3).value
me.textbox4.text=form1.datagridview1.rows(i).cells(4).value
exit for
endif
next
Hope this Helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
I suggest you take a look at databindings to make all the assignation part a lot more easier and automatic
Also, in the combobox, you should set its datasource, to the same datasource you are using for the textboxes so it will change the row automatically when when the combobox selectedindexchanged event is raised
Alexei Rodriguez
|
|
|
|
|
Hi,
What is the concept of NameSpaces in VB.Net
Nitin Jenwal
|
|
|
|
|
I'm not sure what you're asking ? It's the same as in C# or C++, a namespace is a way to partition code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I don't know very much.
Namespace is collection of classes. for ex. system namespace in vb.net.
|
|
|
|
|
Hi,
What is objectbased & Objectoriented programming.
I am unable to distinguish between VB6 & VB.Net.
Please Guide
Nitin Jenwal
|
|
|
|
|
VB6 is a crap language, which is half way to being OO. object based is just a way of saying 'we tried and failed'.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sir,
i want to know the meaning of term of Object based & object oriented in detail. if possible then please describe it.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
|
sir ,
thanks for quickly reply & link.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Now what is this CRAP? Is this your technical term for an Event Driven Language?
The name is Sandeep
|
|
|
|
|
Hi,
1)VB.Net is Advanced version of vb6. What is .NET in VB.Net,
2)What is framework.
3)If we create some application is it necessary to have framework to run that application(.EXE) on other machine
Please Answer my query.
Nitin Jenwal
|
|
|
|
|
1 - incorrect. VB.NET is a .NET language, which is fully OO, and which uses VB syntax. It is almost completely unrelated to the disaster that was VB6, although the visual basic namespace causes a lot of VB6 nastiness to still exist
2 - a framework is a base class library on which you can build code
3 - yes.
Did it occur to you to google any of this ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Friends...
here i need ur help.
Plz tell me How to change System's Date/Time Format programatically.
ie
if Format is--> D/M/yy
i want to convert it to--> MM/DD/YYYY
I want to change the whole System's date Format.
Thanks in advance!@!!
|
|
|
|
|
for example,
in vb, format(txtDate.text,"MM/DD/yyyy")
in C#,txtDate.text=datetime.now.tostring("MM/DD/yyyy");
|
|
|
|
|
If you need to change the whole system, do it from the control panel in regional settings, you can change the format for the whole computer there, im not sure if thats what you need, but it works, you can choose any format you want
Alexei Rodriguez
|
|
|
|
|
Hello.
Can anybody help me plz. My question is:
Suppose I have items in the listbox, some text in the textboxes and some labels on the form , so I need to print this things in vb.net. how to do that. Actually i made a project on supermarket & I need to print the bill.So help me guyz. Why printing is so hard in .net.
thanks.
Mash
|
|
|
|
|
|
How to export /import data to excel using ADO.Net and how to create excel work sheet?
|
|
|
|
|
|
can somemone translate this MYSQL command to vb.net?
UPDATE `phpbb_config` SET `config_value` = 'NEW DATA' WHERE CONVERT( `config_name` USING utf8 ) = 'newest_username' LIMIT 1 ;
i need to change the "NEW DATA" part.
this is the string i have but it doenst work :
myCommand.CommandText = "UPDATE phpbb_config SET config_value = ?user WHERE CONVERT( config_name USING utf8 ) = newest_username LIMIT 1"
myCommand.Parameters.AddWithValue("?user", username.Text)
cheers
oh and the table looks like this.
database == phpbb , table == phpbb_config , colum ==config_value,,config_name,,is_dynamic
so is the config_name value i want to change, in the 3 colums exists something like 30 records, 4example -
Config_name ---- Config_value --- is_dynamic
activesessions 0 0
record_onlineusers 36 1
newest_username newuser 1 ---->>>> this is the one i want to change
im repeating myself because im stuck. lol
please help
hope someone understand this. lol
|
|
|
|