449 Posted Topics

Member Avatar for imslala
Member Avatar for pfm200586

its a guessing game. Where is the mouse picture. 4 rows with pictureboxes one image shows a Mouse one image shows a Cross (stop image) click start (eventually shuffle the images) click images until you hit the Mouse image. If you hit the Cross before the Mouse, the game stops. …

Member Avatar for GeekByChoiCe
0
328
Member Avatar for dannydc

I would suggest to use a FileSystemWatcher and listen to the "Changed" event. [CODE=vb] Dim watcher As New FileSystemWatcher with {.Path="C:\Logs",.NotifyFilter=NotifyFilters.LastWrite,.Filter="log.cvs",.EnableRaisingEvents = True} AddHandler watcher.Changed, AddressOf OnChanged ''' Event handler Private Sub OnChanged(source As Object, e As FileSystemEventArgs) 'check CVS value and send mail End Sub [/CODE]

Member Avatar for dannydc
0
163
Member Avatar for compulove

Are you sure that the "userID" column holds the user name? instead of string sql = "SELECT userID from from user_verification WHERE userID = '" + username; do string sql = "SELECT userID from from user_verification WHERE userID = '" + username.text; instead of [CODE=csharp]if (username.Text == "userID") { Output.Text …

Member Avatar for compulove
0
242
Member Avatar for MB1711

[CODE=vb] Public Class Student Public Property Name As String End Class Public Class Teacher Public Property Name As String End Class Public Class ClassRoom Public Property ThisTeacher As Teacher Public Property Students As List(Of Student) Public Sub New() End Sub Public Sub New(teacher As Teacher, students() As Student) Me.ThisTeacher = …

Member Avatar for MB1711
0
422
Member Avatar for swathys

The questions are: where do you get the data from? Are you trying to add something to the xml, or editing exsiting nodes, or writing the whole xml? Please provide some more details.

Member Avatar for swathys
0
203
Member Avatar for AquaNut

"User" is a reserved word in access. You should use [User] instead. About "Status" and "Description" im not sure if they are reserved.

Member Avatar for Naveed_786
0
305
Member Avatar for fhau013

[QUOTE]but the problem was the line #30[/QUOTE] And what comes before line 30? excatly, line 27 and 28!. You creating a new dataset. every time. You should work with the one you already filled in your form_load event.

Member Avatar for fhau013
0
115
Member Avatar for justMarshall

try this: [CODE=vb] For Each cntl As Control In Me.Controls If (TypeOf cntl Is MyUserControl) AndAlso CType(cntl,MyUserControl).MyCustomProperty = "ABC" Then ''Do some stuff End If Next [/CODE]

Member Avatar for justMarshall
0
228
Member Avatar for mike_cao

The question is: how do you store the courses for students? like does every student have a property list(of courses)?

Member Avatar for Netcode
0
272
Member Avatar for casey_sunako

[CODE=vb] Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork startConversion() End Sub [/CODE] Wehere is your "startConversion" function? I assume the REAL conversation happens on btnConvert_Click, so you have to put all that code in to the "startConversion" function. Also keep in mind that on updating …

Member Avatar for GeekByChoiCe
0
358
Member Avatar for raaif

the exception is thrown on this line: My.Computer.FileSystem.RenameFile(filepath, fname) So you better check out the values of filepath and fname. Set a breakpoint on the renaming part and check out the exception details and its innerexception.

Member Avatar for lolafuertes
0
1K
Member Avatar for kylelendo

[QUOTE]You can't convert a file being an exe to be a .bat or a .msi[/QUOTE] kylelendo, you really should READ the replies. You can NOT convert one type of application in to another one. Neither you or any converter-application. Open a .bat file in notepad and then open a .exe …

Member Avatar for kylelendo
0
165
Member Avatar for FoxSpirit

Using the forum search is still a mystery... Check this out => [URL="http://www.daniweb.com/software-development/vbnet/threads/303547"]Download Folder From FTP Server[/URL]

Member Avatar for GeekByChoiCe
0
59
Member Avatar for khentz

Module normally contain methods that are project wide available. So lets say you have this module: [CODE=vb] Module Helper Public function Blubb(byval x as integer, byval y as integer) as integer Return x + y End function End Module [/CODE] You then can use this function in your forms like …

Member Avatar for codeorder
0
2K
Member Avatar for QuickBooksDev

[QUOTE]The 1st form load does not even start..[/QUOTE] Means there is either something wrong in the application.vb (startup event) Or, which i could bet on, there is a problem in the initializing of the form. So, have you tried to view the startup form in the designer? This should already …

Member Avatar for lolafuertes
0
850
Member Avatar for kylelendo

GetProcess[B][COLOR="Red"]es[/COLOR][/B]ByName should give you the idea that you get an array of processes.

Member Avatar for kylelendo
0
1K
Member Avatar for vb.net_beginner

CDec(("Number_of_sharesTextBox")) <<< you are trying to convert the string "Number_of_sharesTextBox" to decimal. This wont work out. Maybe you tell us what Number_of_sharesTextBox is. a Textbox? if so then it sould be: CDec(Number_of_sharesTextBox.Text)

Member Avatar for vb.net_beginner
0
152
Member Avatar for BleepyE

check this out... there is a sample code: [url]http://www.codeproject.com/KB/database/VBnet_to_mySQL_Server.aspx?msg=3609851#xx3609851xx[/url]

Member Avatar for farooqpathan
0
211
Member Avatar for countycowpoke

should be: [CODE] WebRequest.Create("http://webaddress.com/test.php?Name=myName&Email=myEmail&Address=myAddress&Phone=myPhone&Member=myMember&Comments=myComments") [/CODE]

Member Avatar for countycowpoke
0
397
Member Avatar for khentz

[CODE=vb] Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load For Each contr As Control In Me.Controls If TypeOf contr Is LinkLabel Then AddHandler CType(contr, LinkLabel).LinkClicked, AddressOf LinkLabel_LinkClicked End If Next End Sub Private Sub LinkLabel_LinkClicked(sender As System.Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) MsgBox(String.Format("linkLabel clicked! Name: {0}",CType(sender,LinkLabel).Name)) End Sub [/CODE]

Member Avatar for GeekByChoiCe
0
196
Member Avatar for mishphar

This is just a wild shot, so please don't nail me on it. But could it be that the datagrid is expecting the column names in the first row? So you could try to add in the very first line the column names and see what is going on. OR …

Member Avatar for Phasma
0
597
Member Avatar for bklynman01

Showing a MessageBox normally force the form to update its layout. So whats happen if you do Me.Refresh instead of showing the MessageBox?

Member Avatar for bklynman01
0
363
Member Avatar for GeekByChoiCe

Heya guys, I have a very small snippet that drives me crazy right now. [CODE=csharp] int arg1; int expr1 = arg1 = 16; [/CODE] That silly online translators giving me the following output [CODE=vb] Dim arg1 As Integer Dim expr1 As Integer = InlineAssignHelper(arg1, 16) [/CODE] Great but what should …

Member Avatar for GeekByChoiCe
0
269
Member Avatar for jwelsh

Did you take a look in to the generated user.config? It is usually stored somewhere like: C:\Users\<username>\AppData\Local\<company name>\<application name>.vshos_Url_<some random string>\1.0.0.0 Taking a look in to this file after calling the method updateLayoutFromTable shows this: [CODE=xml] <?xml version="1.0" encoding="utf-8"?> <configuration> <userSettings> <WindowsApplication1.My.MySettings> <setting name="defaultLayout" serializeAs="Xml"> <value /> </setting> </WindowsApplication1.My.MySettings> </userSettings> …

Member Avatar for jwelsh
0
526
Member Avatar for shivya jain

Should be: txtstaff_id.Text = dr("staff_id").ToString() j = Convert.ToInt32(txtstaff_id.Text)

Member Avatar for lolafuertes
0
272
Member Avatar for Man1919

ok, first of all: change [CODE]Private Sub Combo1_TextChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Combo1.TextChanged[/CODE] to [CODE]Private Sub Combo1_SelectedIndexChanged( sender As System.Object, e As System.EventArgs) Handles Combo1.SelectedIndexChanged[/CODE] then remove all [CODE]Dim None As Object[/CODE] replace [CODE]comm.Handshaking = None[/CODE] with [CODE]comm.Handshake = IO.Ports.Handshake.None[/CODE] change [CODE]Private Sub Form_Terminate_Renamed()[/CODE] to [CODE]Private …

Member Avatar for Man1919
0
2K
Member Avatar for ntagrafix

does it have to be a regular expression? this code will do its job too and you can tell the user which "number" is wrong though [CODE=vb] For Each s As String In TextBox1.Text.Split(",") Dim d As Double If Not Double.TryParse(s, d) Then MsgBox(s & " is not a double") …

Member Avatar for ntagrafix
0
217
Member Avatar for Jake.20
Member Avatar for jigarsangoi

take a look at your code.... [CODE] ElseIf String.IsNullOrEmpty(Me.TextBox5.Text.ToString()) = True Then MessageBox.Show("Enter Mob.") cmd.ExecuteNonQuery() [/CODE] You only execute that query if Me.TextBox5.Text is empty.... You should return after each string.empty check. and after the If statement executing that query.

Member Avatar for debasisdas
0
132
Member Avatar for Junzification
Member Avatar for GeekByChoiCe
-3
146
Member Avatar for SANJAY26

"password" is a protected variable in SQL. Try this instead: [CODE]oOLE = "Insert into UserMast(userid,username,[password],rpassword) values (@userid,@username,@password,@rpassword)"[/CODE]

Member Avatar for SANJAY26
0
112
Member Avatar for kheijhei

And now you are expecting us to write you all the code or are you going to show us what you already got (IF you already have coded some stuff)? This forum is not for requesting code, it is for requesting help on where some people stick on. Please show …

Member Avatar for GeekByChoiCe
0
468
Member Avatar for Dactech

Why don't you create a User Class? something like this: [CODE=vb] public class User public property ForeName as string public property LastName as string public property AssignedFunctions as List(of string) sub New() AssignedFunctions = new List(of string) end sub end class [/CODE] Then on getting the DB stuff you simply …

Member Avatar for GeekByChoiCe
0
83
Member Avatar for zoraster01
Member Avatar for GeekByChoiCe

Not quite sure if im in the right section but lets try ... In my project i want to use a "Local Database Cache" and sync it with my online MYSQL server. Problem here is, the MySQL data-provider is not showing up when doing the wizzard for the Server/Client properties. …

0
74
Member Avatar for Mike Bishop

If you dont mind that my solution is a Select Statement instead then here you go: [CODE=vb] Dim x As Double = CDbl(row.Cells("Yield").Value) Select Case x Case Is < 89 Console.WriteLine("{0} is smaller than 90",x) Case 90 To 94 Console.WriteLine("{0} is between 90 and 95",x) Case Is > 94 Console.WriteLine("{0} …

Member Avatar for Mike Bishop
0
99
Member Avatar for Derren

If its just for holding the personal data of the user then i would suggest XML for it. Since you can use XML Files as datasource and easy to bind then. If you want to save a lot of data then i would suggest a real database (SQLEXPRESS, ACCESS or …

Member Avatar for Netcode
0
89
Member Avatar for Oneryavuz

right-click on the toolbox, click "choose items" and browse to your dll. Click ok and all your controls will be shown.

Member Avatar for Oneryavuz
0
93
Member Avatar for TeresaTa

put a TryCatch block around your Update function and see what the exact error is. "not working" is not a valid error description and we are not able to help you then.

Member Avatar for GeekByChoiCe
0
95
Member Avatar for VIPER5646
Member Avatar for VIPER5646
0
168
Member Avatar for kylelendo

If you use Visual Studio then go to: View in the menu and click "Object Browser" Type i. e. "TextBox" in the search field and press ENTER. Then choose the system. windows.forms.textbox It will then display all functions and properties of that control.

Member Avatar for kylelendo
-1
184
Member Avatar for StevenSchaffner
Member Avatar for VB_Magic

Thing is, if you are behind a router then you have always a network available. try this instead: [CODE=vb] Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Int32, ByVal dwReserved As Int32) As Boolean Public Shared Function IsConnectedToInternet() As Boolean Dim Desc As Int32 Return InternetGetConnectedState(Desc, 0) End Function …

Member Avatar for GeekByChoiCe
0
211
Member Avatar for bob12321

I dont think String manipulation is the way to go here. Also the example string of the poster is not very well formed. But here is a working example: [CODE=vb] Sub Main() Dim testString() As String = {"{""status"":""OK"",""data"":[", "{""service"":""hotfile"",""sid"":""alcva"",""filename"":""Cash.2008.x264.utkuemre.part1.rar""},", "{""service"":""hotfile"",""sid"":""AApCR"",""filename"":""Cash.2008.x264.utkuemre.part2.rar""},", "{""service"":""hotfile"",""sid"":""SG6E1"",""filename"":""Cash.2008.x264.utkuemre.part3.rar""},", "{""service"":""hotfile"",""sid"":""hu4Ue"",""filename"":""Cash.2008.x264.utkuemre.part4.rar""}", "]}"} Dim finalString As String = String.Join(vbNewLine, testString) …

Member Avatar for GeekByChoiCe
0
152
Member Avatar for dmarente

a very simple example: [CODE=vb] Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click If lv.SelectedItems.Count = 0 Then Return 'nothing selected End If If lv.SelectedItems.Count = 1 Then Dim lstviewitm As ListViewItem = lv.SelectedItems(0) MsgBox(lstviewitm.Text) Else 'more than one item selected For Each _item As ListViewItem In lv.SelectedItems …

Member Avatar for GeekByChoiCe
0
168
Member Avatar for VNexus

change [CODE]TextBox1.Text = strDocumentName & ", " & strDocumentNumber & ", " & strDocumentWorkOrder[/CODE] to [CODE]TextBox1.AppendText(strDocumentName & ", " & strDocumentNumber & ", " & strDocumentWorkOrder & vbnewline)[/CODE]

Member Avatar for VNexus
0
181
Member Avatar for bluehangook629

[CODE] Private Sub btnHome_ItemClick(sender As System.Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnHome.ItemClick For Each frm In My.Application.OpenForms If TypeOf frm Is frmHome Then 'form is already open frm.show Exit Sub End If Next Dim MDI_Home As New frmHome() With {.MdiParent = Me} MDI_Home.Show() MDI_Home.MaximizeBox = True End Sub [/CODE]

Member Avatar for bluehangook629
0
138
Member Avatar for monaiz

and you have done so far? Show us your code and mark where you have problems, so we can help you. But dont expect us to write your program.

Member Avatar for Netcode
0
159
Member Avatar for matthewr545

Int is is not initialised. add the following line just above the function "Form6_Load" [CODE]Private Int As Integer[/CODE] and replace "Int = Int() - 1" with [CODE]Int = Int - 1[/CODE]

Member Avatar for matthewr545
0
364

The End.