449 Posted Topics
Re: you could store a php file on the server which returns the list of files which are in a given directory and requesting that list with your application. | |
Re: Just a wild guess... Do you close your database connection at any time? i see moConexion = New clsConexion(Me.HileraConexion) but nowhere moConexion.Close Did u also check the current state of the database (like blocking transactions, all transactions and so on) | |
Re: [CODE=vb] For m = 0 To 5 Dim currentName() as string=anArrayList(m).split(","c) Console.WriteLine(String.Format("{0} {1}",currentName(1).trim,currentName(0).trim)) m = m + 1 Next [/CODE] But you should ofc check if the input is correct before starting the loops | |
Re: a wild guess... your field "nom" is the primary key and set as identifier. If so, then u you shouldnt update this field. Also you try to update the field "poid" which you use in your where clause. | |
Re: normally this error only pops up when you do step through debugging and trying to debug third party assemblies. You can try to enable/disable managed code debugging. Go to your project properties -> Debug -> Enable unmanaged code debugging | |
Re: the problem lays in dgv1.CurrentRow if u do [CODE=vb] if dgv1.CurrentRow is nothing then msgbox "nothing" end if[/CODE] im sure the messagebox will popup. use this code instead: [CODE=vb] If dgv.SelectedRows.Count > 0 Then With dgv.SelectedRows(0) frmUpdate.txtFirst.Text = .Cells(0).Value.ToString frmUpdate.txtLast.Text = .Cells(1).Value.ToString frmUpdate.txtAddress.Text = .Cells(2).Value.ToString frmUpdate.txtCity.Text = .Cells(3).Value.ToString frmUpdate.txtZip.Text = … | |
Re: [CODE=vb] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Debug.WriteLine(CType(ListBox1.SelectedItem, myFunctions).ID) End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ListBox1.DisplayMember = "FunctionName" 'to show the function name 'i don't know how you fill your listbox so i added some sample … | |
Re: the Inherits statement have to be in a new line or delimited by a : so either Public Class Form1 : Inherits System.Windows.Forms.Form or Public Class Form1 Inherits System.Windows.Forms.Form | |
Re: Could you post some example lines? I think you were on the right track with regular expressions. | |
Re: Did you try already to run your App as Admin? If you don't get that error while running as Admin then open the app.manifest and set the requestedExecutionLevel to: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> | |
Re: can you please post your sample config.ini? it looks like you overwrite the array on each line reading and last line is maybe not the format you looking for. | |
Re: im a bit confused about your code ... you try to call frmNewAdjustment.SetReceive(CurrentUser) but you set first time CurrentUser IN the SetReceive function. So by calling the SetReceive function CurrentUser is nothing. | |
Re: mibby this link helps: [url]http://support.microsoft.com/kb/319291/en-us[/url] | |
Re: The "Enter" Event on TextBoxes get fired when the textbox becomes the active control (got focus). Try instead this: [CODE=vb] Private Sub TextBox1_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode = Keys.Enter Then MsgBox("you just pressed ENTER") End If End Sub [/CODE] | |
Re: i hope i understood your problem right... Put your imageBoxes into a Panel (in my example it will have the name "PicPanel" [CODE=vb] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim rand As New Random CType(PicPanel.Controls.Find("pBox" & rand.Next(1, 5), False).First, PictureBox).Image = New Bitmap("path to … | |
Re: Put the query in a seperate thread and invoke the result like so: [CODE=vb] Private Delegate Sub TextDelegate(ByVal s As String) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim th As New System.Threading.Thread(AddressOf RunQuery) With {.IsBackground = True} th.Start() End Sub Private Sub SetText(ByVal txt … | |
Re: As you want to store the calendar entries permanent you should first decide how you wanna save the entries. if you wanna use a database, xml or just storing it in the my.settings. I would suggest xml for you project as it is easy to learn ([URL="http://msdn.microsoft.com/en-US/library/system.xml.linq.xdocument.aspx"]examle here[/URL]) here is … | |
Re: please show us your code that you have so far. We are willing to help you but not writing the complete code for you. | |
Re: Can you please post your code for the function: frmNewAdjustment.SetReceive(CurrentUser) ? The code you posted is fine. so guess this error is thrown in the setReceive function. | |
Re: [CODE=vb]doc.Save("C:Dictaphone\Study.xml")[/CODE] this path does not exist! You forgot the \ do [CODE=vb]doc.Save("C:\Dictaphone\Study.xml")[/CODE] | |
Re: i assume you have defined IsAdminUser as a global variable in this module. so change GlobalStuff.IsAdminUser to IsAdminUser | |
Re: What smtp port u use? 25 or 587? i remember i had a similar problem once and solved it by using port 587 (because some of the email provider just blocking port 25). | |
Re: [CODE=vb] Sub Main() Dim aByte() As Byte = Text.Encoding.Default.GetBytes("FirstString") Dim bByte() As Byte = Text.Encoding.Default.GetBytes("SecondString") Dim mergedByte(aByte.Length + bByte.Length) As Byte aByte.CopyTo(mergedByte, 0) bByte.CopyTo(mergedByte, aByte.Length) Console.WriteLine(System.Text.Encoding.Default.GetString(mergedByte)) Console.Read() End Sub [/CODE] | |
Re: [CODE=vb] Public Class Form1 Dim guessCounter As Integer Dim correctAccumulator As Integer Dim totalAccumulator As Integer Dim answer As Integer Dim guesses As Integer Dim guess As Integer Dim lastGuess As Integer Private Sub mainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Randomize() Dim randomNum As New Random … | |
Re: You shouldnt call the Load event at all to be honest. Calling the load event at runtime will have sometimes very bad side effects. Put your code for filling the datagrid in a seperate function and call this function in the load event of FormA and from FormB u call … | |
Re: two options you have: 1. you change the working directory [CODE=vb] IO.Directory.SetCurrentDirectory("C:\MyFolder") Shell("ProcessText file1 file2") [/CODE] 2. you specify the complete path to the application [CODE=vb]Shell("C:\MyFolder\ProcessText file1 file2")[/CODE] | |
Re: change Dim Ary(0) As String to Dim Ary(6) As String | |
Re: smtp.Send(mail) doeasn't mean the mail sending is already done. Try this: [CODE=vb] Dim smtp As New SmtpClient("XXX.XXX") AddHandler smtp.SendCompleted, AddressOf Send_Completed 'catch up when the mail is completed smtp.Port = 25 smtp.EnableSsl = True smtp.Credentials = New System.Net.NetworkCredential("XXX", "XXX") smtp.Send(mail) [/CODE] and add this [CODE=vb] Private Sub Send_Completed(ByVal sender As … | |
| |
Re: the MsgBox is Auto sized.... If you want to change the layout then you better consider to create your own messagebox by adding a new form which you show modal. | |
Re: [CODE=vb] Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged TextBox1.Text = IO.Path.GetDirectoryName(CType(ListBox1.SelectedItem, Process).MainModule.FileName) End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ListBox1.DisplayMember = "ProcessName" Dim p() As Process = Process.GetProcesses ListBox1.Items.AddRange(p) End Sub [/CODE] | |
Re: i guess there is a reason why this design template is NOT open source. How about creating a design by yourself? | |
Re: 3 different ways you have... 1. You could use a third party assembly from [url]http://www.enterprisedt.com/[/url] to get this done 2. Use commandline 3. use the WebRequestMethods.Ftp example here [url]http://msdn.microsoft.com/en-us/library/ms229716.aspx[/url] to option 2... create a ftp.ftp file via code. content: [CODE] MyUserName MyPassword cd /Path/on/server/ binary prompt n mget *.* bye … | |
Re: i wasn'T sure what this "While (1)" is ... anyway here is a working code... [CODE=vb] Imports System.Threading.Thread Public Class Form1 Private Delegate Function getCurrent(ByVal txtBox As TextBox) As Integer Private Delegate Sub setCurrent(ByVal txtBox As TextBox, ByVal i As Integer, ByVal increase As Boolean) '------------------------------------------------------------- Private Sub Form1_Load(ByVal sender … | |
Re: here a short example... [CODE=vb] Sub Main() Dim msc As New MySubClass For i = 0 To 1000 ' A long for statement If radiobutton1.checked = True Then CallByName(msc, "Methode1", CallType.Method, New Object() {var1, var2}) ElseIf radiobutton2.checked = True Then CallByName(msc, "Methode2", CallType.Method, New Object() {var1, var2}) Else CallByName(msc, "Methode3", … | |
Re: [CODE=vb] Dim strPath As String = "C:\Users\GeekByChoiCe\Desktop\" IO.File.WriteAllLines("C:\Users\GeekByChoiCe\Desktop\test.txt", IO.Directory.GetFiles(strPath, "*.txt")) [/CODE] | |
Re: should be: [CODE=vb] Dim l = (From Users In DataClass.Users _ Where (Function(x) x.UserName = txtUserName.Text _ And x.Password = txtPassword.Text)).ToList [/CODE] but you can simplify this... [CODE=vb] Dim l = (From Users In DataClass.Users _ Where Users.UserName = txtUserName.Text _ And Users.Password = txtPassword.Text).ToList [/CODE] Line 7 im not … | |
Re: yes. Since Windows 7 .NET 3.5 is installed by default already. Also if you create WPF applications you can set the project to .NET 4.0 Clientprofile, which is provided by the windows 7 updates aswell. Don't know if this property also exist for WinForms. | |
Re: i assume its ASP.NET you can set these properties in the web.config: [CODE=xml] <system.web> ... <membership defaultProvider="mgsSqlMembershipProvider"> <providers> <clear /> <add name="mySqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" /> </providers> </membership> <profile> <properties> <add name="FriendlyName" /> <add name="MomsName" /> </properties> </profile> </system.web> [/CODE] For the user porofile … | |
Re: [CODE=vb] Dim reg As New Regex(stringWithTextIn, RegularExpressions.RegexOptions.IgnoreCase Or RegularExpressions.RegexOptions.Singleline) Dim _match As MatchCollection = reg.Matches("my loaded text comes here") If _match.Count = 0 Then Return For Each match As Match In _match 'call ReplaceMatch or whatever you want Next [/CODE] | |
Re: "can't move at all" means that it doesnt change the position on resizing the form? if so then set the anchor property of the label. | |
Re: add a new project to your current project. choose "setup" as type of the new project. then you go to this project and change it to your needs. make sure you add the "primary output" in the applications folder in this project. | |
Re: [url]http://www.daniweb.com/forums/post1276428.html#post1276428[/url] << answer to the same question | |
Re: FileNotFoundException says everything do: Debug.Writeline(System.IO.Path.Combine(str, k)) and check what the path is and compare it to the one you expected. im sure they are different | |
Re: create a module and add following sub into it... [CODE=vb] Friend Sub MinimizeForms(ByVal frm As String) Dim var = From g In My.Application.OpenForms Where CType(g, Form).Name = frm For Each f As Form In var f.WindowState = FormWindowState.Minimized Next End Sub[/CODE] call this sub from where ever you want: MinimizeForms("Form1") | |
Re: reason is the following lines... sr.Dispose() sr.Close() you try to close the stream AFTER you dispose it (it doesnt exist then anymore) beside that you dont even need that streamreader as you use System.IO.File.ReadAllLines for reading anyway. below is a untested code that should work. [CODE=vb] Private Sub cmdRemoveLocation_Click(ByVal sender … | |
Re: not sure if i got your question right... if you want to show the same text as in textbox1 while typing you can use [CODE=vb] Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged TextBox2.Text = TextBox1.Text End Sub [/CODE] | |
Re: easy... think about a application that you really need and start coding it. free resources? google is your friend! | |
Re: Show us the code you have done so far plz. Or you expecting us to write you the whole code? show some effort plz! |
The End.