|
Hey,
Does it shows the Error as System.IO.PathTooLongException error.
Please clarify it.
Regards,
Satips.
|
|
|
|
|
The maximum path supported by Windows is 260 characters. You can kind of get around this with cautious use of CurrentDirectory. But, since this limit also applies to any application, like backup packages, you're better solution is to manage the path length. You can write the code to change the current directory, but you have to be VERY careful in maintaining that path. For example, using the Open/SaveFileDialogs will change the current directory.
|
|
|
|
|
I was wondering if anyone has a Levenberg-Marquardt algorithm written in VB.
I have been knocking my head against this problem for weeks and while my application can fit simple equations to the data it fails at more complicated equations.
Currently it has no problems fitting equations such as
F(x)= a*X^nth + b*X^(n-1)+......
But it fails when fitting equations such as
F(x) = x/a
or
F(x) = a^x*b
(a-z are parameters that the program can vary and x is the independent variable.)
|
|
|
|
|
The 'External links' section has links to implementations of this in various languages including C# and VB. I think the VB implementation is VB6 so you'll need to from C# to VB.NET if it's VB.NET code you want. I believe there are tools to do this.
http://en.wikipedia.org/wiki/Levenberg-Marquardt_algorithm[^]
|
|
|
|
|
How do i make a custom control that has a collection like a listbox or combobox? When i define the property it automatically gives the option to open the collection editor in design view, but upon clicking add, it doesn't work. Error: Constructor on 'System.String' not found.
Posted by The ANZAC
|
|
|
|
|
I have two listboxes and 4 buttons to move values from one list box to another listbox and remove items from second listbox.
I am getting values from datbase to the first listbox
btn1--> for to move all items from first listbox to second listbox
btn2--> to move selected items from first listbox to second listbox
btn3--> to remove selected items from second listbox
btn4--> to remove all items from second listbox
now everything is fine.. i completed all the task..
i have one more button to save second listbox values into database.
if i selected one by one and click save.. it works fine..
but if i selected all button and click save.. it does not save into database.
The code is as follows in btnsave_click
Dim cnt As Integer
Dim num As Integer
cnt = ListBox2.Items.Count
For num = 0 To cnt - 1
Dim cmdAdd As New SqlCommand
Dim insertAdd As String = "insert into JOB(JOBNO,PHASENO,USERS,BUILDNO,REVNO,REF,CUSTNAME) values (@JOBNO,@PHASENO,@USERS,@BUILDNO,@REVNO,@REF,@CUSTNAME)"
Dim sqlcmdAdd As New SqlCommand(insertAdd, con)
sqlcmdAdd.Parameters.Add(New SqlParameter("@JOBNO", SqlDbType.NChar, 20))
If TxtJobNo.Text <> "" Then
sqlcmdAdd.Parameters("@JOBNO").Value = Trim$(TxtJobNo.Text)
End If
If CmbPhase.Text <> "" Then
sqlcmdAdd.Parameters.Add(New SqlParameter("@PHASENO", SqlDbType.NChar, 10))
sqlcmdAdd.Parameters("@PHASENO").Value = Trim$(CmbPhase.Text)
' sqlcmdAdd.Parameters("@PHASENO").Value = 0
' sqlcmdAdd.Parameters("@PHASENO").Value = CmbPhase.Items.ToString
End If
'If ListBox2.Items(num).ToString <> "" Then
sqlcmdAdd.Parameters.Add(New SqlParameter("@USERS", SqlDbType.NChar, 50))
'sqlcmdAdd.Parameters("@USERS").Value = Trim$(ListBox2.SelectedItems.Item(num).Text)
'sqlcmdAdd.Parameters("@USERS").Value = Trim$(ListBox2.Items(num).ToString)
' End If
If CboBldgNo.Text <> "" Then
sqlcmdAdd.Parameters.Add(New SqlParameter("@BUILDNO", SqlDbType.NChar, 10))
sqlcmdAdd.Parameters("@BUILDNO").Value = Trim$(CboBldgNo.Text)
End If
'If (CboRevNo.Text) <> "" Then
sqlcmdAdd.Parameters.Add(New SqlParameter("@REVNO", SqlDbType.NChar, 10))
sqlcmdAdd.Parameters("@REVNO").Value = 0
'End If
sqlcmdAdd.Parameters.Add(New SqlParameter("@REF", SqlDbType.NVarChar, 50))
sqlcmdAdd.Parameters("@REF").Value = ""
sqlcmdAdd.Parameters.Add(New SqlParameter("@CUSTNAME", SqlDbType.NVarChar, 75))
sqlcmdAdd.Parameters("@CUSTNAME").Value = ""
sqlcmdAdd.Connection.Open()
sqlcmdAdd.ExecuteReader()
sqlcmdAdd.Connection.Close()
Next
ListBox2.Items.Clear()
|
|
|
|
|
There's several problems with this. You're creating a new SqlConnection and SqlCommand object, complete with parameters, on every line in your list. Don't. Create all the stuff first, outside the loop, then open the connection, reuse the command and parameters inside the loop, just filling in the parameters and calling .ExecuteNonQuery , NOT ExecuteReader ! Close the connection after the Next in your loop and it's done.
|
|
|
|
|
hi i am trying to do a program with threading and this is the first time i am trying threading
i am using a function on which some of required functionalities will be there i have to pass the addres of that function to the threading object but while giving like
dim thread1 as new thread(addressof <function name="">)
but its not accepting this . is there any sample codes pls guide me
thank you
with regards
Balagurunathan.B
|
|
|
|
|
|
i have a problem in combobox
i try to insert a value in bounded combobox.
when i write command
ComboBox1.Items.Insert(0,"abc") before
ComboBox1.DataSource = ds.Tables("test1")
ComboBox1.DisplayMember = "stor_id"
it does not display abc at top row.
and when i write that command after that
i display err message
Items collection cannot be modified when the DataSource property is set.
can i do it.
ajeet
|
|
|
|
|
The error message explains it all. If the ComboBox is bound to a datasource, you have no choice but to add the new data you want to the datasource, then refresh the binding.
|
|
|
|
|
i want to control outlook express like the
way i'm controlling excel, word etc.
i know there is no automation or object library
and the only way to do it is via api calls.
can anyone help? i want to do this via vb.net
i 've seen other software that do this!
it can be done for sure!
thanks in advance
isidoros
|
|
|
|
|
Outlook Express is a wrapper for the Messaging Application Programming Inferface, or MAPI. Google for "MAPI VB.NET" and you'll find examples of all kinds of uses, problems, and examples.
|
|
|
|
|
System.Diagnosis.Process.Start("mailto:mailaddress.yahoo.com")
This will pop up a Window to send the mail (a very similar to the outlook express.)
|
|
|
|
|
Hello,
i have a problem with the AxMozillaBrowser NewWindow2 Event.
Now that's my Code:
Private Sub AxMozillaBrowser1_NewWindow2(ByVal sender As System.Object, ByVal e As AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event) Handles AxMozillaBrowser1.NewWindow2
Dim a As New Form
Dim ax As New AxMOZILLACONTROLLib.AxMozillaBrowser
ax.Dock = DockStyle.Fill
a.Controls.Add(ax)
ax.Show()
a.Show()
e.ppDisp = ax
End Sub
The problem is, that it doesn't load the page. The window opened but then nothing else happened. What's wrong there or from where do i get the to opened url???
Anybody an idea??
|
|
|
|
|
How are you calling the AxMozillaBrowser1.NewWindow2 event?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Your code creates a new blank form, then a MozillaBrowser object, adds it to the new form and shows it. But nowhere does your code tell the new browser object to nagivate to any URL.
|
|
|
|
|
Yes exactly that WAS the problem, i have no possibility to get any URL from the popup.
i've founded a tutorial for that problem:
http://support.microsoft.com/kb/311282/de[^]
The problem was, that i've said e.ppDisp = ax and not e.ppDisp = ax.Application (and ax.RegisterAsBrowser=True)
But thanks for your help.
|
|
|
|
|
Hi all,
I Have Created a COM+ Serviced Based Application Dot Net
I have installed The Application Proxy In my Client machine when I access the COM+ Service in the Server I Get a error “ Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))”
|
|
|
|
|
sunder vel wrote: I Have Created a COM+ Serviced Based Application Dot Net
Let's see a sample fo the source code. Make sure to check the "Ignore HTML tags" checkbox before you click "Post Message".
Somehow, I think you're missing a bunch of COM decorations from your classes and methods...
|
|
|
|
|
Hello,
I am trying to create an email client however I don't know how to use the pop3 fumctions of vb.net can anyone help me with the parameters or does anyone know somewhere where I can download one ?
Thanks
al968
Avast Antivirus-<url>http://www.avast.com<url>
|
|
|
|
|
|
hi ,
i want to know what is the difference between Debug and Release folder.
any link that specify particular this point ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Hi, do their names suggest nothing to you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Visual Studio provides different build scenarios. There are two build scenarios that are created when for a solution, Debug and Release. As the names suggest, the Debug configuration contains extra information inside the EXE or DLL to allow you to debug the application. The Release is stripped of all of the extra debugging information and is ready to be shipped or released.
|
|
|
|