449 Posted Topics

Member Avatar for mahmoud209

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.

Member Avatar for GeekByChoiCe
0
276
Member Avatar for orlando ramirez

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)

Member Avatar for orlando ramirez
0
222
Member Avatar for leoeroy

[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

Member Avatar for RipperJT
0
187
Member Avatar for chbichib

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.

Member Avatar for kvprajapati
0
157
Member Avatar for swathys

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

Member Avatar for swathys
0
70
Member Avatar for mangesh5588

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 = …

Member Avatar for GeekByChoiCe
0
599
Member Avatar for napkinbob

[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 …

Member Avatar for the_carpenter
1
257
Member Avatar for planem997

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

Member Avatar for G_Waddell
0
162
Member Avatar for herit02
Member Avatar for GeekByChoiCe
0
135
Member Avatar for Darkicon

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" />

Member Avatar for bbman
0
149
Member Avatar for Dorayaki

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.

Member Avatar for codeorder
0
107
Member Avatar for perryg30313

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.

Member Avatar for perryg30313
0
129
Member Avatar for VB 2012
Re: Dll

mibby this link helps: [url]http://support.microsoft.com/kb/319291/en-us[/url]

Member Avatar for GeekByChoiCe
0
96
Member Avatar for nore

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]

Member Avatar for nore
0
117
Member Avatar for Derkus

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 …

Member Avatar for trpsjt2008
0
161
Member Avatar for tariqi

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 …

Member Avatar for GeekByChoiCe
0
141
Member Avatar for cege

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 …

Member Avatar for GeekByChoiCe
0
88
Member Avatar for needhelp123

please show us your code that you have so far. We are willing to help you but not writing the complete code for you.

Member Avatar for GeekByChoiCe
0
88
Member Avatar for perryg30313

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.

Member Avatar for GeekByChoiCe
0
156
Member Avatar for wb4whd

[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]

Member Avatar for GeekByChoiCe
0
179
Member Avatar for Naveed_786

i assume you have defined IsAdminUser as a global variable in this module. so change GlobalStuff.IsAdminUser to IsAdminUser

Member Avatar for GeekByChoiCe
0
111
Member Avatar for mysybet

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).

Member Avatar for rajeevbhatt17
0
134
Member Avatar for bninja

[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]

Member Avatar for pritesh2010
0
1K
Member Avatar for BobbieJean

[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 …

Member Avatar for GeekByChoiCe
0
300
Member Avatar for perryg30313

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 …

Member Avatar for perryg30313
0
194
Member Avatar for dsul

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]

Member Avatar for PsychoCoder
0
206
Member Avatar for pmardle
Member Avatar for jonniebl

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 …

Member Avatar for jonniebl
0
186
Member Avatar for mustoora
Member Avatar for codeorder
-4
140
Member Avatar for VB2008beginner

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.

Member Avatar for GeekByChoiCe
0
70
Member Avatar for p@rse

[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]

Member Avatar for GeekByChoiCe
0
154
Member Avatar for gmanisha95

i guess there is a reason why this design template is NOT open source. How about creating a design by yourself?

Member Avatar for GeekByChoiCe
0
44
Member Avatar for TwijoO

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 …

Member Avatar for GeekByChoiCe
0
687
Member Avatar for siddhc

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 …

Member Avatar for GeekByChoiCe
0
153
Member Avatar for Pundia

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", …

Member Avatar for Oxiegen
0
219
Member Avatar for starlight849

[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]

Member Avatar for starlight849
0
161
Member Avatar for kevin025

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 …

Member Avatar for kevin025
0
113
Member Avatar for techdaya

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.

Member Avatar for GeekByChoiCe
0
37
Member Avatar for kingofnothing

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 …

Member Avatar for GeekByChoiCe
0
150
Member Avatar for jamesvick

[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]

Member Avatar for GeekByChoiCe
0
113
Member Avatar for GigsD4X
Member Avatar for murid

"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.

Member Avatar for MindFreaks
0
316
Member Avatar for yogesh21

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.

Member Avatar for pkpbmt
1
133
Member Avatar for xfrolox

[url]http://www.daniweb.com/forums/post1276428.html#post1276428[/url] << answer to the same question

Member Avatar for xfrolox
0
303
Member Avatar for arch_mah

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

Member Avatar for nick.crane
0
318
Member Avatar for leahrose87

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")

Member Avatar for Oxiegen
0
2K
Member Avatar for GrimR7529

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 …

Member Avatar for GrimR7529
0
90
Member Avatar for starlight849

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]

Member Avatar for GeekByChoiCe
0
294
Member Avatar for Awah Mohamed

easy... think about a application that you really need and start coding it. free resources? google is your friend!

Member Avatar for Nikon70
0
112
Member Avatar for p3p3p3

Show us the code you have done so far plz. Or you expecting us to write you the whole code? show some effort plz!

Member Avatar for p3p3p3
0
103

The End.