Forum: VB.NET 17 Days Ago |
| Replies: 3 Views: 350 for some reason it did a double post. sry |
Forum: VB.NET 17 Days Ago |
| Replies: 3 Views: 350 check out these train videos.
http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#formsoverdata_08
Beth is explaining very well how to do that |
Forum: VB.NET 17 Days Ago |
| Replies: 4 Views: 235 just a small example:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.FileSystem.WriteAllText("myText.txt",... |
Forum: VB.NET 18 Days Ago |
| Replies: 4 Views: 277 yes it is
---------
to the last poster....
it only request secure string if you define the username and password during the process.startinfo.password
Public Shared Function... |
Forum: VB.NET 18 Days Ago |
| Replies: 4 Views: 277 Dim UserName As String = "myusername"
Dim password As String = "mypassword"
Diagnostics.Process.Start("explorer.exe", "ftp://" & UserName & ":" & password & "@microsoft.com/bugs/") |
Forum: VB.NET 19 Days Ago |
| Replies: 4 Views: 235 you can either save it in My.Settings or create a xml/text file to hole the data. |
Forum: VB.NET 19 Days Ago |
| Replies: 3 Views: 156 actually it is possible. not very sexy but possible...
Private Sub box1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles box1.Click, box2.Click, box3.Click
... |
Forum: VB.NET 19 Days Ago |
| Replies: 1 Views: 196 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If ListBox1.SelectedIndex < 0 Then
Return
End If
... |
Forum: VB.NET Oct 16th, 2009 |
| Replies: 2 Views: 264 to require admin privileges add into your app.manifest this line
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
to check for privileges:
if not... |
Forum: VB.NET Oct 16th, 2009 |
| Replies: 3 Views: 475 Dim StrYear As String = "1.1.2007"
Dim YearStart As Date = Convert.ToDateTime(StrYear)
Console.WriteLine(YearStart.Year) |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 12 Views: 612 means the usercontrol is not initialised yet. so do
dim myControl as New myTest
myControl.myFunction |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 12 Views: 612 please give me more details. do u get an error? how looks your code like? |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 2 Views: 435 1. click on the application folder in the filesystem tab and open its properties. change the "Default location" to your needs
2. code your own updater or use the publish function of your... |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 10 Views: 468 not really understandable to be honest.
are the 3 users have to enter their login on the same application running on the same PC to the same time? or they are on different machines?
is it working... |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 3 Views: 266 not sure what you mean with "pages" if its not ASP.NET
but anyway you can do it on two different ways...
1. once the user logged in you can save the user name in My.Settings
go to your Project... |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 28 Views: 1,115 change the
lblError.Text = "Your profile was unable to be updated."
to
lblError.Text = ex.message
then you see the error. |
Forum: VB.NET Oct 14th, 2009 |
| Replies: 28 Views: 1,115 do you get an error or its just not updating? |
Forum: VB.NET Oct 14th, 2009 |
| Replies: 2 Views: 254 well the easiest way to find the games directories is searching in the registry.
alsong you know the path of the reg key (which is same in xp, vista,7) you can get the installation path from there.... |
Forum: VB.NET Oct 7th, 2009 |
| Replies: 4 Views: 5,001 maybe the database is locked? |
Forum: VB.NET Sep 29th, 2009 |
| Replies: 4 Views: 385 if Form1 is still open then you can get the string just like Form1.Textbox1.text
you can also create a overloaded New() procedure in Form2 to hand over the sting like
Public Sub New (byval... |
Forum: VB.NET Sep 29th, 2009 |
| Replies: 1 Views: 283 i dont know how you get the numbers so im doing just an example
for each row as datagridviewrow in datagridview1.rows
textbox1.appendtext(row.cells(0).value & ",")
next |
Forum: VB.NET Sep 26th, 2009 |
| Replies: 12 Views: 612 lets say you have created a usercontrol named myTest then you do this in your module
dim myControl as myTest
myControl.myFunction
functions and Subs you want to call from outside the... |
Forum: VB.NET Sep 26th, 2009 |
| Replies: 18 Views: 578 then please provide su your Update query. the query you posted is a select query. |
Forum: VB.NET Sep 25th, 2009 |
| Replies: 3 Views: 244 how about using a treeview instead? |
Forum: VB.NET Sep 25th, 2009 |
| Replies: 18 Views: 578 if i have to guess i would say the problem is in this line
drNewRow("Price") = txtPrice.Text.Trim
if the Price is declared as money then you have to convert the txtPrice.text
drNewRow("Price") =... |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 8 Views: 302 glad to hear. then please mark this thread as solved. ty =) |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 8 Views: 302 MsgBox(directcast(Me.Controls.Find("txtLetter1", True)(0),textbox).text) |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 517 then please mark this thread as solved. ty =) |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 517 instead of checking all the time the whole text you can use this code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles... |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 8 Views: 302 instead of looping you can use the find function like
Me.Controls.Find("txtLetter1", True)(0)
this ofcourse only works if you assign a name to the control on creation and the control exist. |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 575 if it need to return just a single value then it dont need to be declared as output.
here is an example:
Dim count As Integer
Using myConnection As New... |
Forum: VB.NET Sep 23rd, 2009 |
| Replies: 4 Views: 338 to get this done just reverse the array again
Sub Main()
' text document to array
Dim myarray As String() = File.ReadAllLines("C:\Original.txt")
... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 4 Views: 338 Sub Main()
' text document to array
Dim myarray As String() = File.ReadAllLines("C:\Original.txt")
Array.Reverse(myarray) 'on this way you have the newest entry always as... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 1 Views: 477 read the complete text into a array,clear the textbox, then loop trough this array and if not the search condition is true then append the array item to the textbox.
dim tmpArray() as string =... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 11 Views: 519 the namespace is not really correct.
you can do two things:
remove the namespace
or
change the line to <settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 9 Views: 564 then please mark this thread as solved |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 11 Views: 519 could you please attacht the orginal xml file (as attachment)
to your second question...
there is an easy trick. open the xml in internet explorer, click on the "-" in front of the parents nodes... |
Forum: VB.NET Sep 20th, 2009 |
| Replies: 9 Views: 369 to be honest i would keep the control events in the code file of the form. else you will get into trouble to find the events if you have to edit something.
instead of exporting the whole event why... |
Forum: VB.NET Sep 20th, 2009 |
| Replies: 11 Views: 519 first of all this xml file has an error. to fix that please replace the line:
with:
now to get your information out of this try this code:
Private Sub ReadXmlFile()
Dim... |
Forum: VB.NET Sep 19th, 2009 |
| Replies: 9 Views: 389 Dim ad As New SqlDataAdapter("SELECT * FROM '" & lbListAllTables.SelectedItem.ToString & "'", SQLConn)
i have to agree with TomW. it is very unsafe not to use parameter in sql queries. |