|
But im having book of Visual Basic.Net
but it has not specified how to play audio & video files
|
|
|
|
|
ankur0101 wrote: but it has not specified how to play audio & video files
That's the least of your problems right now.
|
|
|
|
|
Hi,
I need to replace the " in a string to a "", I'm not sure why this doesn't want to work:
dc.ColumnName.Replace(""", """")
Please can someone advise?
Regards
ma se
|
|
|
|
|
strings are immutable. That means you cannot change them. The replace method returns the new string. The old string is not changed, it cannot be.
dc.ColumnName = dc.ColumnName.Replace(""", """")
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 )
|
|
|
|
|
Christian is correct, but the search and replace strings are wrong. This is what it should look like:
dc.ColumnName = dc.ColumnName.Replace("""", """""")
4 quotes for the search string and 6 for the replacement string.
|
|
|
|
|
*grin* I didn't even look at that.
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 )
|
|
|
|
|
That's one of the things I hate about VB. I'd rather have the same escapes as C#.
|
|
|
|
|
Hi,
I am retrieving some values from database & populating them in a combobox.Prior to populating the values from the combobox,i manually added an item as "All" and i want that this item should be the default selected item(with index -1) when the values will be populated from the database into the combobox.
Can anybody help me how to do this..?
Thanks in advance
i m Pradip Kishore
|
|
|
|
|
Pradip Kishore wrote: I am retrieving some values from database & populating them in a combobox.Prior to populating the values from the combobox,i manually added an item as "All" and i want that this item should be the default selected item(with index -1)
You can do that, provided you don't insist on the with index -1 requirement (-1 is used to mark the no selection state).
If you add te "All" item manually (and the combo has NOT the sort style set) then it will have index 0, hence you just select item 0 to perform the task.
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.
|
|
|
|
|
Hi
Thanks for your answr.
But my requirement is that when the page will be loaded then the default selected item in the combobox should be "all"
i added "all" as
combobox.iteams.add("all")
now i want to make "all" as my default selected item of the combobox.
Please revert back soon.
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
combobox.SelectedIndex = 0 should do the job for you.
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.
|
|
|
|
|
Well hi everyone,
I have a problem with crystal reports...
the record selection formula in crystal reports helps to retieve a single row from the database (depending on the ID passed)
Now the problem is if have a selection criteria which demands to retrieve data from the databse for more than one ID so how will i pass multiple ID for selecting multiple row...please help..
Eg.
my selection crieria wud be prjID = 1
record selection formula wud be = 1
now if my selection criteria prjID = 1 and 4 and 6 and 9
hw ud i do it...
Sachin G.
worrin bout losin keeps me WINNING
|
|
|
|
|
im using this formula in my current working report
{Project.ProjectID} = 1 or {Project.ProjectID} = 2 or {Project.ProjectID} = 3
TRY IT.................
-<>-shoaib-<>-
|
|
|
|
|
Ya thanks... but i tried it it doesn't works....
i tried with the OR condition.. still it is retrieving single row..
also i tried with AND condition and the report goes blank....
Please can u suggest any other alternative....
Sachin G.
|
|
|
|
|
Hi everyone,
I am searching for a open source code project for bio-infomatic in vb 6.
Do you have any idea from where I can get that. Any website or link for that??
Waiting for the reply,
Thanks in advance.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
|
|
|
|
|
|
I downloaded this from one of your articles.
Very useful code and control – thank you.
I have one question – how would you reset the picturebox to display its image in the original (first loaded) orientation?
I have tried setting rotation to zero but this leaves the image where it is, I have tried recording the current rotation and then tried to put the image back by setting the rotation to (360 – current value) but this does not seem to work either.
BTW: I am using the control to produce a slowly rotating image whilst a particular process is going on and then reset it when the process has completed.
Thanks in advance.
Peter F Diamond
|
|
|
|
|
This is a community. The articles are written by community members. To talk to the member who wrote an article, use the forum that is provided at the bottom of an article.
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 )
|
|
|
|
|
Christian,
Sorry if I have abused the format, I have tried to use the methods at the bottom of the original article but get the mails bounced back. I suppose I was just hoping some one might pick it up and assist.
Thanks again.
Peter.
Peter F Diamond
|
|
|
|
|
You don't email the person. You post a message in the forum at the bottom of that article and wait for a response.
|
|
|
|
|
hi everyone,
at design time , i have a datagridwiew which have a column of combo box type. How can i add data to this column(which is of combo type) at run time Without binding ?
any help will be appreciated.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Why? It's far easier just to bind the combo to a collection of items.
Read this[^] entire string of posts.
|
|
|
|
|
Hi,
I am exporting to a CSV file. Every column and field needs to be in quotes. If I open the CSV file in Notepad then it will look something like:
"ID"
"5555"
I am having difficulty because one of my fields, the description field has a " in it's text, and I think it is this " that is throwing my field values in more than one column.
How do I cater for this?
Please can some get back to me.
Regards
ma se
|
|
|
|
|
You need to escape your quotes.
So:
My field that contains "quotes".
would be represented in a CSV file as:
"My field that contains ""quotes""."
I find that the easiest way to find out how CSV files should be constructed is to use MS-Excel to create a CSV file.
|
|
|
|
|
Hi,
Can you please help me?
This is how I loop through my fields and write it to the file. How would I check for " and replace it with "" like you mentioned?
Here is my code:
strRow = """"
For Each dc As DataColumn In columns
strRow += dc.ColumnName.ToString() & """" & "," & """"
Next
strRow = Left(strRow, strRow.Length - 2)
writer.WriteLine(strRow)
Please help.
Regards
ma se
|
|
|
|