Click here to Skip to main content
15,888,454 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Progress Window for long mainThread operation, Windows Forms Pin
maksim31030-Jun-08 13:08
maksim31030-Jun-08 13:08 
AnswerRe: Progress Window for long mainThread operation, Windows Forms Pin
Dave Kreskowiak30-Jun-08 16:59
mveDave Kreskowiak30-Jun-08 16:59 
QuestionRe: Progress Window for long mainThread operation, Windows Forms Pin
maksim31030-Jun-08 18:51
maksim31030-Jun-08 18:51 
AnswerRe: Progress Window for long mainThread operation, Windows Forms Pin
Guffa1-Jul-08 4:08
Guffa1-Jul-08 4:08 
QuestionTablebuilder Pin
Kahuna30-Jun-08 4:10
Kahuna30-Jun-08 4:10 
AnswerRe: Tablebuilder Pin
Kahuna30-Jun-08 4:39
Kahuna30-Jun-08 4:39 
QuestionHow to get IP Addresses of all the Subdomains in a Domain ? [modified] Pin
Chaitanya kumar CVSS30-Jun-08 0:21
Chaitanya kumar CVSS30-Jun-08 0:21 
AnswerRe: How to get IP Addresses of all the Subdomains in a Domain ? Pin
Dharmchand Dhingra30-Jun-08 2:09
Dharmchand Dhingra30-Jun-08 2:09 
Hello
i read ur question and i want to know some more details of ur question. R u want IP address for local Domain or for particular site....

i m sending u code which is used to find Work group/Domain in ur LAN. and check that which is pc is Active in that LAN and will also show the IP Address...


'---------------------------------------------------
'Method for Finding Domain/WorkGruop



Public Function GetDomain() As String
Dim WGroup As String = ""
Dim query As New SelectQuery("Win32_ComputerSystem")
Dim searcher As New ManagementObjectSearcher(query)
For Each mo As ManagementObject In searcher.Get()
WGroup = mo("Domain")
'MsgBox(WGroup)
Next
Return WGroup
End Function
'---------------------------------------------------



'---------------------------------------------------
'Method for Finding IP Address of and node no which are Active in LAN

Public Sub ListComputers(ByVal TView As TreeView, ByVal WorkGroup As String)
Try
TView.Nodes.Clear()
Dim AllComp As New TreeNode
AllComp.Text = Form1.groupname
AllComp.ImageIndex = 1
AllComp.SelectedImageIndex = 1
TView.Nodes.Add(AllComp)

If WorkGroup.Trim() = "" Then
MessageBox.Show("Please provide a Domain Name.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End If

Dim DomainEntry As New DirectoryEntry("WinNT://" & WorkGroup.Trim())
DomainEntry.Children.SchemaFilter.Add("computer")
For Each Machine As DirectoryEntry In DomainEntry.Children
Dim CompNode As New TreeNode(), CompInfo(1) As String
CompInfo(0) = Machine.Name
Dim Tempaddr As System.Net.IPHostEntry = Nothing
Try
Tempaddr = DirectCast(Dns.GetHostByName(Machine.Name), System.Net.IPHostEntry)
Dim TempAd As System.Net.IPAddress() = Tempaddr.AddressList, str As String = ""
For Each TempA As IPAddress In TempAd
CompInfo(1) = TempA.ToString()
Form1.ListBox1.Items.Add(TempA)
Next

Catch ex As Exception
CompInfo(1) = ""
End Try
CompNode.Text = CompInfo(0)
CompNode.ToolTipText = CompInfo(1)
CompNode.ImageIndex = 0
CompNode.SelectedImageIndex = 0
AllComp.Nodes.Add(CompNode)

Next
TView.ExpandAll()
Catch ex As Exception

End Try


End Sub

'---------------------------------------------------
GeneralRe: How to get IP Addresses of all the Subdomains in a Domain ? Pin
Chaitanya kumar CVSS30-Jun-08 2:56
Chaitanya kumar CVSS30-Jun-08 2:56 
QuestionProblem with button in mdi form Pin
SamRST29-Jun-08 23:12
SamRST29-Jun-08 23:12 
AnswerRe: Problem with button in mdi form Pin
dan!sh 29-Jun-08 23:37
professional dan!sh 29-Jun-08 23:37 
GeneralRe: Problem with button in mdi form Pin
SamRST29-Jun-08 23:57
SamRST29-Jun-08 23:57 
AnswerCross Post Pin
Thomas Stockwell30-Jun-08 11:16
professionalThomas Stockwell30-Jun-08 11:16 
QuestionChanging the inputarea-size of the textbox-control Pin
Christian Sachse29-Jun-08 22:45
Christian Sachse29-Jun-08 22:45 
AnswerRe: Changing the inputarea-size of the textbox-control Pin
Christian Graus29-Jun-08 22:47
protectorChristian Graus29-Jun-08 22:47 
QuestionRe: Changing the inputarea-size of the textbox-control Pin
Christian Sachse30-Jun-08 3:50
Christian Sachse30-Jun-08 3:50 
Questionconvert string to byte Pin
shee_dee8629-Jun-08 21:51
shee_dee8629-Jun-08 21:51 
AnswerRe: convert string to byte Pin
Christian Graus29-Jun-08 22:10
protectorChristian Graus29-Jun-08 22:10 
AnswerRe: convert string to byte Pin
Gideon Engelberth30-Jun-08 5:34
Gideon Engelberth30-Jun-08 5:34 
QuestionStatic / Shared block Pin
divyesh143229-Jun-08 20:20
divyesh143229-Jun-08 20:20 
AnswerRe: Static / Shared block Pin
Christian Graus29-Jun-08 20:28
protectorChristian Graus29-Jun-08 20:28 
GeneralRe: Static / Shared block Pin
divyesh143230-Jun-08 18:51
divyesh143230-Jun-08 18:51 
AnswerRe: Static / Shared block Pin
Dave Doknjas30-Jun-08 15:17
Dave Doknjas30-Jun-08 15:17 
GeneralRe: Static / Shared block Pin
divyesh143230-Jun-08 18:51
divyesh143230-Jun-08 18:51 
QuestionProbs Saving Data to Database Pin
KrisnNala29-Jun-08 6:28
KrisnNala29-Jun-08 6:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.