Search Results

Showing results 1 to 40 of 225
Search took 0.02 seconds.
Search: Posts Made By: GeekByChoiCe
Forum: VB.NET 17 Days Ago
Replies: 3
Views: 350
Posted By GeekByChoiCe
for some reason it did a double post. sry
Forum: VB.NET 17 Days Ago
Replies: 3
Views: 350
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
do you get an error or its just not updating?
Forum: VB.NET Oct 14th, 2009
Replies: 2
Views: 254
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
maybe the database is locked?
Forum: VB.NET Sep 29th, 2009
Replies: 4
Views: 385
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
how about using a treeview instead?
Forum: VB.NET Sep 25th, 2009
Replies: 18
Views: 578
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
glad to hear. then please mark this thread as solved. ty =)
Forum: VB.NET Sep 24th, 2009
Replies: 8
Views: 302
Posted By GeekByChoiCe
MsgBox(directcast(Me.Controls.Find("txtLetter1", True)(0),textbox).text)
Forum: VB.NET Sep 24th, 2009
Replies: 4
Views: 517
Posted By GeekByChoiCe
then please mark this thread as solved. ty =)
Forum: VB.NET Sep 24th, 2009
Replies: 4
Views: 517
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
then please mark this thread as solved
Forum: VB.NET Sep 22nd, 2009
Replies: 11
Views: 519
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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
Posted By GeekByChoiCe
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.
Showing results 1 to 40 of 225

 


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

©2003 - 2009 DaniWeb® LLC