Search Results

Showing results 1 to 37 of 37
Search took 0.01 seconds.
Search: Posts Made By: emurf
Forum: VB.NET Feb 20th, 2008
Replies: 1
Views: 636
Posted By emurf
Declare a dataset and integer globally and fill the dataset. In the click events of your previous and next buttons put a line that gets the record.


'first, do some validation to make sure that...
Forum: VB.NET Feb 8th, 2008
Replies: 1
Views: 887
Posted By emurf
Can you show us the code and tell us in which event you put the code?
Forum: VB.NET Feb 8th, 2008
Replies: 3
Views: 2,927
Posted By emurf
String splits allow you to easily retrieve values in a string. Lets say that the line that was read from the listview has been formated by putting a tab between the values. You would get the data...
Forum: VB.NET Feb 7th, 2008
Replies: 3
Views: 2,927
Posted By emurf
In the selected index change or one of the click events of the list you should put.

dim strLine as strin
strLine = List1.SelectedItem.Text


That will get you the line, from there you will...
Forum: VB.NET Feb 6th, 2008
Replies: 1
Exe
Views: 445
Posted By emurf
Will this help? http://www.9rays.net/products/Spices.Decompiler/
Forum: VB.NET Feb 5th, 2008
Replies: 2
Views: 1,112
Posted By emurf
First you would write the procedure that you want to execute when the button is clicked.


Protected sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'put your...
Forum: VB.NET Jan 21st, 2008
Replies: 4
Views: 762
Posted By emurf
You didn't give much detail about the program but I'm going to guess that it is an ASP .NET app because this problem frequently happens with ASP .NET when implementing roles.

With ASP .NET the...
Forum: VB.NET Jan 6th, 2008
Replies: 4
Views: 8,322
Posted By emurf
Teopohkuang; I can help but can you create a new thread with your question, include as much detail about your problem as you can describe, so that others with similar problems can more easily find it?
Forum: VB.NET Jan 3rd, 2008
Replies: 4
Views: 8,322
Posted By emurf
Try using Microsoft's CDO control. Finding it may be a head ache since there are a bunch of different versions. I think that I was using 6.5 when I wrote this;


Private Sub SendMail(ByVal sEmail...
Forum: VB.NET Jan 2nd, 2008
Replies: 5
Views: 7,583
Posted By emurf
You need to use the Winsock control (an example: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2253&lngWId=10) or another socket control like secure socket library (example:...
Forum: VB.NET Dec 31st, 2007
Replies: 5
Views: 2,784
Posted By emurf
If you are wanting to just read what is on the sheet like it is a database column you would use an OleDb connection object like this;

Dim strSql As String = "select * from [" & SheetName & "$]"...
Forum: VB.NET Dec 14th, 2007
Replies: 1
Views: 1,067
Posted By emurf
You need to add a reference to the Microsoft Excel Object Library and create an Excel object along with a workbook and worksheet in code. As you read the Access data you would write it to the...
Forum: VB.NET Dec 14th, 2007
Replies: 1
Views: 1,781
Posted By emurf
UInt64 hold integer values ranging from 0 to 18,446,744,073,709,551,615, use System.Convert.ToInt64(VarName) to convert it.
Forum: VB.NET Dec 11th, 2007
Replies: 4
Views: 10,791
Posted By emurf
Are you wanting to enter a username then find what computer that they are logged into and then find the mac, ip etc of that computer?
Forum: VB.NET Dec 11th, 2007
Replies: 3
Views: 979
Posted By emurf
To read the word doc you'll need to add a reference to the Microsoft Word Object Library to your project and create a word app object in your code to access the doc.

To create a pdf file you...
Forum: VB.NET Dec 10th, 2007
Replies: 13
Views: 5,753
Posted By emurf
I was able to make this work on a gif by changing the array to a byte array and readInt16 to readByte. See if that works.


Dim s1 As FileStream 'Load file1
Dim s2 As FileStream 'Load...
Forum: VB.NET Dec 7th, 2007
Replies: 7
Views: 6,467
Posted By emurf
This should work with a Windows Desktop App;
strText = Me.dgvGrid.SelectedCells.Item(0).Value.ToString & ""
Forum: VB.NET Dec 7th, 2007
Replies: 4
Views: 1,539
Posted By emurf
I hope that this helps. I copied it from a working project that I did a year or so ago. The data adapter and dataset are global so that fields from the dataset can be used when designing the report...
Forum: VB.NET Dec 7th, 2007
Replies: 13
Views: 5,753
Posted By emurf
It is possible to use a 2 dimensional array. Before declaring the array you should find the length of the file and use that as the size of the array. Then do something like this.


Dim...
Forum: VB.NET Dec 5th, 2007
Replies: 4
Views: 1,539
Posted By emurf
CR comes with Visual Studio .Net and you should just be able to register it without paying anything extra, that's what I did. Even after that it was a pain to package. This link should help you...
Forum: VB.NET Dec 5th, 2007
Replies: 13
Views: 5,753
Posted By emurf
You would do that with the stream writer object like this, Dim swWriter As New System.IO.StreamWriter("textfile.txt", False). The second parameter is append. If it is false then the file is...
Forum: VB.NET Dec 4th, 2007
Replies: 13
Views: 5,753
Posted By emurf
There are two ways to check the input. One way is to make sure that there is a string in the textbox and the other is to make sure that the filepath exists. The look something like this;


'Make...
Forum: VB.NET Dec 4th, 2007
Replies: 7
Views: 11,171
Posted By emurf
Yes, I know how xml and xsl are related but how would an html document look nested in xml tags?
Forum: VB.NET Dec 3rd, 2007
Replies: 13
Views: 5,753
Posted By emurf
The column1, row1 stuff kind of confusses me but I think that you are wanting to read a val from file1 and another from file2 and put the resulting value into another file. If so you would use a loop...
Forum: VB.NET Dec 3rd, 2007
Replies: 7
Views: 11,171
Posted By emurf
Hey, I think that he is saying that the html is located within xml tags.
Forum: VB.NET Dec 3rd, 2007
Replies: 5
Views: 2,784
Posted By emurf
The first thing that you'll need to do is add a reference to the Microsoft Excel Object Library. In your code you will need to create an Excel application object and excel workbooks. Then you should...
Forum: VB.NET Nov 29th, 2007
Replies: 7
Views: 11,171
Posted By emurf
Do you have an example of the part of the XML file that has the html (I thought that the html tags would cause an error in the XML file)? You may need to read the XML into a dataset and then retrieve...
Forum: VB.NET Nov 28th, 2007
Replies: 13
Views: 5,326
Posted By emurf
It is hard to know for sure when you can't test it yourself but everything looks good as far as I can see.
Forum: VB.NET Nov 27th, 2007
Replies: 13
Views: 5,326
Posted By emurf
It looks good but you always have to give it a try to make sure.
Forum: VB.NET Nov 27th, 2007
Replies: 13
Views: 5,326
Posted By emurf
The code I posted earlier will check two paticular directories for a certain file. If you wanted to loop through each file in a directory you need to use readonly collections and the...
Forum: VB.NET Nov 26th, 2007
Replies: 13
Views: 5,326
Posted By emurf
If I understand the question correctly, this is what I would do;


If System.IO.File.Exists("path\art_file_size_500\an123.xsl") And System.IO.File.Exists("path\art_file_size_1000\an123.xsl") Then...
Forum: VB.NET Nov 26th, 2007
Replies: 13
Views: 5,326
Posted By emurf
I'm guessing that you would be using the shell method in the calling program, if so it will look like this;

iId = Shell("c:\calledprog.exe Hello")


Where Hello is the parameter passed and iId...
Forum: VB.NET Nov 26th, 2007
Replies: 13
Views: 5,326
Posted By emurf
Hello Peluse, say that I have created a public global string var called sParam. In the form load event of your main form put;


Me.sParam = My.Application.CommandLineArgs(0)


This stores the...
Forum: VB.NET Nov 26th, 2007
Replies: 4
Views: 1,075
Posted By emurf
This was written for 2003 but it still applies in 2005, no big differences made in the deployment between the versions. http://msdn2.microsoft.com/en-us/library/k76aht6s(vs.71).aspx
Forum: VB.NET Nov 26th, 2007
Replies: 13
Views: 30,394
Posted By emurf
This link will provide examples of how to deploy a .NET app. http://msdn2.microsoft.com/en-us/library/tw8kdk75(VS.71).aspx
Forum: VB.NET Nov 26th, 2007
Replies: 3
Views: 5,012
Posted By emurf
Is this what you are looking for?

'declare the dataset
Dim ds As New DataSet

'bind to textbox
Me.textbox1.DataBindings.Add(New Binding("Text", ds, "Tablename.ColumnName"))

'bind combo...
Forum: VB.NET Nov 26th, 2007
Replies: 1
Views: 4,414
Posted By emurf
Hey Mahendiran, try this in your code; lbl_newcoll.Text = cmd.ExecuteScalar().toString & ""
Showing results 1 to 37 of 37

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC