|
Code Crapper wrote: GOD DAMN IT this is the first time I have rushed people like this and I KNEW that I would get someone like you saying that...
Then why rush people?
|
|
|
|
|
You didn't change "ListBox" to the name of your list box. I.e. ListBox1 or FileList.
|
|
|
|
|
Oh... crap I accidently destroyed the whole thread by deleting the first question....
-- modified at 19:10 Wednesday 29th November, 2006
---------------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
Code Crapper wrote: crap I accidently destroyed the whole thread by deleting the first question
Umm... Why did you delete the first question?
|
|
|
|
|
I wanted to modify a spelling mistake (im like that) and I clicked the delete button and without thinking I clicked on the delete confirmation thinking it was just an ad to move on, sorry my bad I been to so many addy sites latly but this one is brilliant! no pop-ups whatsoever
---------------------------
If I had a £0.01 for the amount of times I have said to people "USE GOOGLE" I would be richer than Bill Gates.
|
|
|
|
|
Hello
I want to add sound effect in vb.net project
any help
wating for your kind rep.
thanks
|
|
|
|
|
Just use My.Computer.Audio.Play("C:\File.wav", AudioPlayMode.BackgroundLoop) .
You can only play Wave files though.
|
|
|
|
|
Hi
I have restricted the internetusage with an proxy-server. These proxy settings are done with the internet options.
Now i'd like to built programm a webbrowser. And it shall not use the internet option settings!
I do notwant to change the registry while i send or receive data. but using normal webbrowser settings always cvonnect via proxy. Why and what do i have to do?
Thanks
Tim
|
|
|
|
|
You want to actually write a web browser ? That is, not use the web browser control ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
OK, will you support ActiveX controls, javascript, etc ? How many years do you have to do this, assuming you'll be alone ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I have a multi-page tiff that's over 1meg. I get an 'out of memory' error trying to open it from the method 'fromfile' I have tried 'fromstream' and can't get past 'an invalid parameter used' when everything that I'm using is correct. My ultimate goal is to get a count of how many pages(images) are embedded in the image file so that I can tell how many images a java applet can expect in the file. This code works but craps out of certain files and I don't know why... Any help would be appreciated...
Dim oFile As New FileStream(sTiffFilePath, FileMode.Open, FileAccess.Read)
oImage = System.Drawing.Image.FromStream(oFile, True, True)
'exception -- invalid parameter used
or
oImage = Drawing.Image.FromFile(sTiffFilePath)
'exception -- out of memory
Dim oGuid As Guid = (oImage.FrameDimensionsList(0))
Dim oDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(oGuid)
iGetPageCount = oImage.GetFrameCount(oDimension)
oDimension = Nothing
oGuid = Nothing
oImage.Dispose()
oImage = Nothing
|
|
|
|
|
You'll have to check the compression used in the TIFF. GDI+ doesn't support JPEG compressed TIFF's.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave, that's what I was a afraid of...
Nathan
|
|
|
|
|
HI,
I have a string eg. 000-000-000-000 and I want to replace the last "-" with an "_"
Can anyone help me to do this.
Thanks
|
|
|
|
|
hi,
String.Replace('-','_')
hope this works.
nitin...
|
|
|
|
|
Try using regular expressions like:
regex.Replace( yourString, "-", "_")
where regex is the regular expression and yourString is the string in question. Hope this sheds some light
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Dim s As String = "000-000-000-000"
Dim i As Int16 = InStrRev(s, "-")
Mid(s, i, 1) = "_"
MsgBox(s)
|
|
|
|
|
Will the string always be the same length, as in 4 sets of characters seperated by 3 dashes?
Posted by The ANZAC
|
|
|
|
|
Is this VB.NET ? If so, then you should use the string. methods, not the ones provided. But, any sort of replace method will replace them all. as someone suggested, if the format is always the same, you can use an index to replace the one character that's in the same place evry time.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
I'm not sure under which category I should ask this. But here goes:
I am trying to implement a search which will allow a user to search for Projects by the 'StartDate'. What they can do is search for Projects:
[Greater Than] date entered,
[Less Than] date entered,
[Equal To] date entered,
[Greater Than or Equal To] date entered,
[Less Than or Equal To] date entered.
I have a subroutine which passes the date inputted by the user to a method in a class file.
This method accept the input as String.
I would like to know how to proceed with determining how to tell the system to check if the input date is greater than, less than, etc..
I mean.. SQL can say 2 is greater than 1, but can it say 01/01/2006 is greater than 01/01/2005 ??? If not, do I need to do anything in VB.net?? Or even so, do I need to do anything special to the SQL Query ?
Please help. Thank you.
|
|
|
|
|
Wouldnt you also need a parameter to say how you want the dates compared? Greater than / Less than / ...
All relational databases support date comparisons, provided that you have defined the column as a date type.
|
|
|
|
|
Ah I see. So what you are telling me is that SQL Queries will understand that 01/01/2006 is GREATER THAN 01/01/2005.. even tho they are DATES and Numbers.
That's all I needed to know ... for now >=)
Thanks for the reply.
|
|
|
|
|
u CAN compare datetime variables in sql as in vb too,
BY < or > or =
|
|
|
|
|
Hi All,
Anybody know how to drag drop multiple rows from one datagridview
to another.I know how to drag drop single row.If any body have idea please
guide me how to do this.
thanks,
rama.
venkat
|
|
|
|