|
Sir/Madam,
I wanted to know the basic difference between implicit and explicit conversion.
Thnaks and regards
Pankaj
|
|
|
|
|
Link :Data Type Conversion[^]
In Visual Basic, data can be converted in two ways: implicitly, which means the conversion is performed automatically, and explicitly, which means you must perform the conversion.
|
|
|
|
|
wht i want to do is
on first click --text in label change
on second click again text change?
how to do this
|
|
|
|
|
You have to do a two states button, either using the text itself to identify the current state or by means of an auxiliary variable.
For instance:
(1) If myButton.Text="ON" Then myButton.Text="OFF" Else myButton.Text="ON"
(2) IF bIsON = True Then
bIsON = False
myButton.Text="OFF"
Else
bIsON = True
myButton.Text="ON"
End If
where,of course, bIsOn must be a variable of the Form (or a Static one inside the event handler).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You don't add the event twice. You haven't given enough detail about the problem to describe an accurate solution. Where is this text comming from? How is it stored? Change the text to what?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have been given a project which was developed by someone who has just left our company and is not contactable.
He developed the project and put it live but didn't save a development copy. The live version doesn't contain the .vb files
and just everything is saved and compiled as .dll.
Does anyone know how I could open the .dll filesd to see the .VB code??
macca
|
|
|
|
|
|
i want to create dynamic crystal report,
in which columns will be chosen at runtime
|
|
|
|
|
Iam having a table containing 7 columns which already have information. But I want to display a single field data/information present in the field into a grid
How to set this using Dataset?
Priya
|
|
|
|
|
Add a table to the dataset then in columns tab in this table add the number of columns u want. then in the grid put the datasource = the dataset and dataMember the table u have just created.
good luck
|
|
|
|
|
If iam giving like this means I will get all the columns to the datagrid.but I want only one or two columns then how to code that
Priya
|
|
|
|
|
If Iam giving thru the suggestion given by you,
Add a table to the dataset then in columns tab in this table add the number of columns u want. then in the grid put the datasource = the dataset and dataMember the table u have just created.
Then I will get all the data into the grid.but I want limited columns data i.e. only one or two columns/fields from the whole table
Priya
|
|
|
|
|
I suggest u change ur select * statement in ur stored procedure to select column-name. Then u will retreive only the specific column(s) u specified.
I.E. create ur adapter based on a select column-name & not select * then genertae the dataset and put it as data source for the grid.
Hope that works cause i cant think of any other way right now.
|
|
|
|
|
How to set an application Path in Connection string in VB.Net?
Example: Iam having a database of name xyz in D drive and the application is also present in the same path
Generally in VB6 We Can use App.Path but in VB.Net how to set this?
Priya
|
|
|
|
|
Application.StartupPath will give u the start up path
like:
Ds_Items.ReadXml(Application.StartupPath & "\" & "Item.xml")
hope this asnwers ur question
|
|
|
|
|
Priya_2007 wrote: Iam having a database of name xyz in D drive and the application is also present in the same path
Generally in VB6 We Can use App.Path but in VB.Net how to set this?
Hence you want to know the application path; then use
Application.StartupPath .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You don't set this path, you retrieve it. The equivilent in VB.NET is Application.StartupPath .
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Setting an Application path in VB.Net
Priya
|
|
|
|
|
Your header is the forum name, and your post looks like it would have made a good header. Do you have a question ?
What do you mean by ApplicationPath ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Hi
Please preview your forum before submitting it. I think you did not add your question properly.
You can modify your existing forums, preview it and resubmit again.
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you. Harini
|
|
|
|
|
It is hard to figure out what you are asking because vb.net is the forum name.
When you create an application in vb.net you define an application name also an application path. If you app path is different than the original path and then you have to define one.
If your aim is to change the application build output path, you can change it from PROJET menu (Just simle go over the (application properties) and then click the (compile) section.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hi everybody!
My question is either for VB 6 or .NET
Please it's driving me crazy...
So,since i have to play a flash video inside my application,i have tried the shockwaveflash component..but it still plays the flash animation inside the form..i have to play it like microsoft messenger does with animoticons(or winks whatever they are called in english..):you know,it reproduces them on the entire screen and just the animations,not showing the form..
how can i perform that?i have tried making the form transparent,but of course also the control contained in the form becomes transparent,when actually i want only the form surface to be transparent.
i don't literally know where to begin....
thank you very much in advance,you are my only resource left...
|
|
|
|
|
Are you sure they are flash videos ? I'd doubt it, I'd imagine they are animating directly onto the desktop.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 am not sure,i am awfully sure.
i have personally extracted for backup purposes one of these winks...search on the internet for .mco files.they are stored as resource files in the msgslang dll (see under msn messenger folder),and are basically cab files with some xml files inside and the flash video in swf format.
but apart from that,the fact is that even if they weren't flash videos at all,i had to follow the way of the flash video because it is the only way i can imagine.
even writing a hta application and launching from my application,i have to use a flash file....
please help!
thank you again
|
|
|
|
|
Hi ..
I designed some forms as control .. I add that control to a form ,, I want when use Me.Close to colse the parent form not the control only
jooooo
|
|
|
|