449 Posted Topics
Re: use [CODE=vb]Session.Add("tempara1",TextPara1.Text)[/CODE] | |
Re: 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. … | |
Re: 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] | |
Re: 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 … | |
Re: [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 = … | |
Re: 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. | |
Re: "User" is a reserved word in access. You should use [User] instead. About "Status" and "Description" im not sure if they are reserved. | |
Re: [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. | |
Re: 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] | |
Re: The question is: how do you store the courses for students? like does every student have a property list(of courses)? | |
Re: [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 … | |
Re: 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. | |
Re: [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 … | |
Re: 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] | |
Re: 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 … | |
Re: [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 … | |
Re: GetProcess[B][COLOR="Red"]es[/COLOR][/B]ByName should give you the idea that you get an array of processes. | |
Re: 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) | |
Re: check this out... there is a sample code: [url]http://www.codeproject.com/KB/database/VBnet_to_mySQL_Server.aspx?msg=3609851#xx3609851xx[/url] | |
Re: should be: [CODE] WebRequest.Create("http://webaddress.com/test.php?Name=myName&Email=myEmail&Address=myAddress&Phone=myPhone&Member=myMember&Comments=myComments") [/CODE] | |
Re: [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] | |
Re: 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 … | |
Re: Showing a MessageBox normally force the form to update its layout. So whats happen if you do Me.Refresh instead of showing the MessageBox? | |
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 … | |
Re: 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> … | |
Re: Should be: txtstaff_id.Text = dr("staff_id").ToString() j = Convert.ToInt32(txtstaff_id.Text) | |
Re: 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 … | |
Re: 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") … | |
| |
Re: 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. | |
Re: You sure this is your code? Do you know this is the VB.Net section? | |
Re: "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] | |
Re: 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 … | |
Re: 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 … | |
Re: or [CODE=vb]Console.WriteLine(IO.File.ReadAllText("c:\science\test.txt"))[/CODE] | |
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. … | |
Re: 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} … | |
![]() | Re: 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 … |
Re: right-click on the toolbox, click "choose items" and browse to your dll. Click ok and all your controls will be shown. | |
Re: 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. | |
Re: [CODE=vb] Extension.ShowDialog() [/CODE] opens the form in modal mode. | |
Re: 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. | |
Re: check in your Markup file if checkInOutGV have already a DatasourceID set. If so, remove it. | |
Re: 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 … | |
Re: 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) … | |
Re: 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 … | |
Re: change [CODE]TextBox1.Text = strDocumentName & ", " & strDocumentNumber & ", " & strDocumentWorkOrder[/CODE] to [CODE]TextBox1.AppendText(strDocumentName & ", " & strDocumentNumber & ", " & strDocumentWorkOrder & vbnewline)[/CODE] | |
Re: [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] | |
Re: 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. | |
Re: 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] |
The End.