|
How i can know the state of the communication of winsock control in VB.NET ?
Thanks'
|
|
|
|
|
VB.NET has made significant changes to the way these things work, and basically you shouldn't use the WinSock control in .net.... take a look at the System.Net and System.Net.Sockets namespaces instead.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
If we create a dataset then it allocates some meomory . How to deaalocate that memory, if needed?
|
|
|
|
|
Call Dispose on the DataSet object.
myDataSet.Dispose()
|
|
|
|
|
Hello every one
I am using a datagridview to make a billing application
What I am trying to do is on leave event of any cell, multiply amount and quantity cells of the current row and display it in total cell
The issue I am facing is
- it dose not happens as desired when I change any of amount or quantity and move to some other cell
- It works when I change the cell for the second time
Can any one tell me y is it working this way…
|
|
|
|
|
I have a project that sounds similar, and i use the CellValueChanged event of the grid. If that doesn't work for you, try posting your code so we can see what you are doing to help you.
Hope this helps.
|
|
|
|
|
I don't have any idea, may I have some links?
|
|
|
|
|
Consult the great oracle that is Google[^]
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hi friends,
How can I use this namespace System.Net.networkinformation in .net 1.1.I cannot get this in 1.1. Tell me the alternate namespace.
Thanks in Advance
|
|
|
|
|
Hariharan wrote: How can I use this namespace System.Net.networkinformation in .net 1.1.
You can't. It's new in framework 2.0.
Hariharan wrote: I cannot get this in 1.1.
Correct.
Hariharan wrote: Tell me the alternate namespace.
There isn't one. You have to use windows API calls to do something like that in framework 1.1.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi,
I am creating a reporting tool, and some reports are running for a longer time (2 to 6 minutes). I now want to run them on the background and add a cancel button. I have tried to get this to work with the backgroundworker control, but failed as I want to update a textbox while the enumeration is running. How can I create a seperated thread where the report is created, update a textbox and add a cancel button.
Here is my code sofar with, the thread does not seem to work as the form freezes when I change somethis (tying to select another report, etc.)
Private Sub cmSelectReport_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles cmSelectReport.ItemClicked
'MsgBox(e.ClickedItem.Text & " " & Me.tvSelectReport.SelectedNode.Text)
Dim bThread As New Threading.Thread(AddressOf rptRun)
bThread.IsBackground = True
TextBox1.Clear()
bThread.Start(LCase(SelectedNodeText))
End Sub
Public Delegate Sub rptRunDelegate(ByVal j As String)
Public Sub rptRun(ByVal j As Object)
Select Case j
Case LCase("RootDSE objects")
Dim objADObject As New DirectoryEntry("LDAP://dc=samp,dc=dev")
DisplayChildren(objADObject, " ")
End Select
End Sub
Public Delegate Sub DisplayChilderenDelegate(ByVal objADObject As DirectoryEntry, _
ByVal strSpaces As String)
Sub DisplayChildren(ByVal objADObject As DirectoryEntry, _
ByVal strSpaces As String)
If Me.TextBox1.InvokeRequired = True Then
Dim t As New DisplayChilderenDelegate(AddressOf DisplayChildren)
Me.Invoke(t, New Object() {objADObject, strSpaces})
Else
TextBox1.AppendText(strSpaces & objADObject.Name)
End If
Dim objChild As New DirectoryEntry()
For Each objChild In objADObject.Children
DisplayChildren(objChild, strSpaces)
Next objChild
End Sub
|
|
|
|
|
Hi all,
I have created a project under vb.net. How should I deploy it in other computers which are not having .net framework. In brief how to create setup or exe and execute it on other systems.
|
|
|
|
|
The setup wizard is a go place to start. Click File, Add, New project. Once created right click the project name in the explorer to make the .net framework a prerequisit.
|
|
|
|
|
This is my code to get the LAN connection status.
LBox.Items.Clear()
Dim childEntry As DirectoryEntry
Dim ParentEntry As New DirectoryEntry
Try
ParentEntry.Path = "WinNT:"
For Each childEntry In ParentEntry.Children
Select Case childEntry.SchemaClassName
Case "Domain"
Dim SubChildEntry As DirectoryEntry
Dim SubParentEntry As New DirectoryEntry
SubParentEntry.Path = "WinNT://" & childEntry.Name
For Each SubChildEntry In SubParentEntry.Children
Select Case SubChildEntry.SchemaClassName
Case "Computer"
LBox.Items.Add(SubChildEntry.Name)
End Select
Next
End Select
Next
Catch Excep As Exception
MsgBox("Error While Reading Directories")
Finally
ParentEntry = Nothing
End Try
End Sub
i use this code to get all Machines on the Local Area network .
here one problem occured
when i SWITCH ON my server,i get the list of machines name whatever, connected in Local Area network.after 5 min again i run the application
i didn't get antything
plz give the solution
|
|
|
|
|
can anybody tell me what are the equivalent of VB code in C#
"vorep As CRAXDRT.REPORT"--- what to do for this one means what assembly i need to add.
Set m_voApp = CreateObject("CrystalRuntime.Application")--- how to create the object for this...
and what is the use of this...
please help me...
vikas da
|
|
|
|
|
use the following link
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
|
|
|
|
|
But this is not working .. means converted code...
can u please tell me what is the use of above codes present in my first post...
vikas da
|
|
|
|
|
Hi all,
i am developing a windows application in which i want to give authentication for the user to login.
Please help me how to give authentication in windows application.
Regatds,
Mohan
|
|
|
|
|
i have three text box and a command button.initially button enable is false.i want if user input the values in textbox.and no textbox is blank then button enable is automatically true. and if any textbox is blank then button enable gets automatically false.
please help
sumit
|
|
|
|
|
Hi Sumit,
I would suggest you to write the following code on the change event of each textbox.
BEGIN CODE
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If Len(Me.TextBox1.Text) = 0 Then
Me.Button1.Enabled = False
Else
Me.Button1.Enabled = True
End If
End Sub
END CODE
I hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
hiiii
thank you for the suggestion but your code work for only one textbox.i have three textboxes and have to do the same for three textbox and a command button.when a user enter text on any textbox it should check for other textbox also
|
|
|
|
|
Presumably the button is to save the data?
A couple of issues with your design.
is enabled bsed on the values in ALL the text boxes - you are testing only 1 at a time.
Try this.
btnSave stats disabled.
you have 1 event called SaveOn which is used for each textbox ontextchange event. Here is one I used
Private Sub SaveON(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtUserID.TextChanged, txtEmail.TextChanged, txtPWD.TextChanged, txtUserID.TextChanged, txtUserName.TextChanged, txtUserNo.TextChanged, chkDisabled.CheckedChanged, chkPWDExpireFlag.CheckedChanged, dtePWDExpire.ValueChanged<br />
btnSave.Enabled = True<br />
End Sub
Note the Handles for the different objects and events
In the save event you disable the save button
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a loop for adding rows of value to DataGridView Control with fixed size. The scroll bar appeared after row number is more than what DataGridView can display. The question is:
How can I implement auto-scroll so that the bottom row always visible after adding new row?
|
|
|
|
|
Count your rows using:
<br />
dim rows as integer<br />
rows = DataGridView1.Rows.Count<br />
Then see how many rows are visible,
let say 10.
Then use:
<br />
DataGridView1.FirstDisplayedScrollingRowIndex = rows - 10<br />
Good Luck.
|
|
|
|
|
Hi, Scubapro:
Thank you very much!
|
|
|
|