Click here to Skip to main content
15,925,062 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSetting font properties for printing Pin
jhoga6-Apr-06 4:28
jhoga6-Apr-06 4:28 
AnswerRe: Setting font properties for printing Pin
Dave Kreskowiak6-Apr-06 14:05
mveDave Kreskowiak6-Apr-06 14:05 
GeneralRe: Setting font properties for printing Pin
jhoga7-Apr-06 3:07
jhoga7-Apr-06 3:07 
QuestionProblem in Command.ExecuteNonQuery Pin
Amit Agarrwal6-Apr-06 4:02
Amit Agarrwal6-Apr-06 4:02 
AnswerRe: Problem in Command.ExecuteNonQuery Pin
Guffa6-Apr-06 6:56
Guffa6-Apr-06 6:56 
GeneralRe: Problem in Command.ExecuteNonQuery Pin
Amit Agarrwal6-Apr-06 18:31
Amit Agarrwal6-Apr-06 18:31 
QuestionConvert C# to VB.NET 2005 Pin
FloatingPointCode6-Apr-06 3:37
FloatingPointCode6-Apr-06 3:37 
AnswerRe: Convert C# to VB.NET 2005 Pin
Dave Doknjas6-Apr-06 12:42
Dave Doknjas6-Apr-06 12:42 
Our Instant VB C# to VB.NET converter produces:

Private Sub ButDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Try

Me.Status.Text = "Collecting Information..."

If Me.TxtWorkGroup.Text.Trim() = "" Then
MessageBox.Show("The Work Group name Should Not be Empty")
Return
End If


' Use Your work Group WinNT://&&&&(Work Group Name)
Dim DomainEntry As DirectoryEntry = New DirectoryEntry("WinNT://" & Me.TxtWorkGroup.Text.Trim())
DomainEntry.Children.SchemaFilter.Add("computer")


' To Get all the System names And Display with the Ip Address
For Each machine As DirectoryEntry In DomainEntry.Children
Dim Ipaddr As String() = New String(2){}
Ipaddr(0) = machine.Name

Dim Tempaddr As System.Net.IPHostEntry = Nothing

Try
Tempaddr = CType(Dns.GetHostByName(machine.Name), System.Net.IPHostEntry)
Catch ex As Exception
MessageBox.Show("Unable to connect woth the system :" & machine.Name)
Continue For
End Try
Dim TempAd As System.Net.IPAddress() = Tempaddr.AddressList
For Each TempA As IPAddress In TempAd
Ipaddr(1) = TempA.ToString()

Dim ab As Byte() = New Byte(5){}
Dim len As Integer = ab.Length

' This Function Used to Get The Physical Address
Dim r As Integer = SendARP(CInt(TempA.Address), 0, ab, len)
Dim mac As String = BitConverter.ToString(ab, 0, 6)

Ipaddr(2) = mac
Next TempA

Dim TempItem As System.Windows.Forms.ListViewItem = New ListViewItem(Ipaddr)

Me.ListHostIP.Items.Add(TempItem)
Next machine

Me.Status.Text = "Displayed"
Catch ex As Exception
MessageBox.Show(ex.Message,"Error",System.Windows.Forms.MessageBoxButtons.OK)
Application.Exit()
End Try

End Sub




David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
Questionreading excel file Pin
sudharsong6-Apr-06 2:11
sudharsong6-Apr-06 2:11 
AnswerRe: reading excel file Pin
Mekong River6-Apr-06 17:00
Mekong River6-Apr-06 17:00 
Questionhow to set parent window Pin
bony_baba6-Apr-06 1:14
bony_baba6-Apr-06 1:14 
AnswerRe: how to set parent window Pin
Dave Kreskowiak6-Apr-06 10:38
mveDave Kreskowiak6-Apr-06 10:38 
QuestionRe: how to set parent window Pin
bony_baba6-Apr-06 23:12
bony_baba6-Apr-06 23:12 
AnswerRe: how to set parent window Pin
Dave Kreskowiak7-Apr-06 2:55
mveDave Kreskowiak7-Apr-06 2:55 
QuestionRe: how to set parent window Pin
bony_baba7-Apr-06 18:26
bony_baba7-Apr-06 18:26 
AnswerRe: how to set parent window Pin
Dave Kreskowiak8-Apr-06 2:52
mveDave Kreskowiak8-Apr-06 2:52 
QuestionReuse DB connection Pin
alwinSCH6-Apr-06 1:09
alwinSCH6-Apr-06 1:09 
AnswerRe: Reuse DB connection Pin
ToddHileHoffer6-Apr-06 2:24
ToddHileHoffer6-Apr-06 2:24 
GeneralRe: Reuse DB connection Pin
alwinSCH6-Apr-06 2:51
alwinSCH6-Apr-06 2:51 
GeneralRe: Reuse DB connection Pin
Dave Kreskowiak6-Apr-06 10:37
mveDave Kreskowiak6-Apr-06 10:37 
QuestionHelp with Dynamic Casting Pin
hertz_j6-Apr-06 0:40
hertz_j6-Apr-06 0:40 
AnswerRe: Help with Dynamic Casting Pin
Dave Kreskowiak6-Apr-06 9:36
mveDave Kreskowiak6-Apr-06 9:36 
GeneralRe: Help with Dynamic Casting Pin
hertz_j6-Apr-06 23:15
hertz_j6-Apr-06 23:15 
GeneralRe: Help with Dynamic Casting Pin
Dave Kreskowiak7-Apr-06 2:50
mveDave Kreskowiak7-Apr-06 2:50 
GeneralRe: Help with Dynamic Casting Pin
hertz_j9-Apr-06 22:24
hertz_j9-Apr-06 22:24 

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.