|
I wonder if anyone can help me.
I am trying to display my network domain name and IP address of a PC. I have Visual Studio 2003 and running on Windows 2003 server. I am running .Net Framework 1.1
There is a new object isn .NET Framework version 2.0 that is
Imports System.Net.NetworkInformation which runs
Dim ipproperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
But with .Net Framework 1.1 does not.
Couple of questions
1. Do I install .Net Framework 2.0 on the user PC etc remembering that I have VS 2003
2. How was this done with version 1.1 and VS 2003
|
|
|
|
|
directred wrote: 1. Do I install .Net Framework 2.0 on the user PC etc remembering that I have VS 2003
You could, but your application will not use any of the .NET 2.0 classes. You're restricted to using only .NET 1.0 and 1.1 classes if you compile under .NET 1.1.
If you're talking about getting the DNS domain name, you can get the fully qualified DNS name of the local machine using the System.Net.Dns class as it's GetHostName() method. You can then parse the string to get everything after the first period to get the domain name.
If you're talking about getting the Windows domain name, you can get the domain of the currently logged in user from the System.Environment class and it's .UserDomainName property.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi,
i have to read each data from a dataset
and check each value in an IF Condition
can u help me
thanks in advance
|
|
|
|
|
A DataSet is nothing more than a collection of DataTable objects, which are collections of DataRow and DataColumn objects.
As with any collection, you can enumerate them this way:
For Each dt As DataTable In myDataSet
Console.WriteLine("Table name: " & dt.Name)
For Each dr As DataRow In dt
Console.WriteLine(" Row field value: " & dr("tableFieldName") )
Next
Next
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks .
it helped me verymuch
|
|
|
|
|
Hi,
Hi frndz. please any body can give FAqs information for me. I urgently need them
NareshT
|
|
|
|
|
FAQ's on what?
You do realise the FAQ stands for Frequently Asked Questions don't you? Hence, there can be an FAQ on anything from .NET all the way through to the Art of Fly Swatting. Please be more specific.
|
|
|
|
|
I"m sorry, your question makes no sense. Why do you urgently need them ? What do you expect 'them' to be ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
I have a datagrid with 4 columns and i want that only 1 column can be "EDITABLE" whereas the remaining 3 cann't be editable.
|
|
|
|
|
Set the other columns to 'ReadOnly'.
Steve
|
|
|
|
|
Or set the visible of the columns to false.
|
|
|
|
|
Hii All
How can i count the dulplicate values stored in the particular column of the table in database, through windows application.
For e.g. If incase i want to display no. of books with same title from the title column in the text box.
In the window form named multiple books which has a datagrid connected to the book entry database should display only the records which are multiple. And as datagrid row is clicked the information of no. of books available should be displayed in the textbox on same form.
Suppose there are five books on Title (Gone with the winds) the datagrid will display the book details in one row as one book. And as user clicks the particular row the textbox1.text should display the no. 5 .
Please try to solute
Thanks
Nikhil Bandekar
Mumbai,
India
|
|
|
|
|
hi
try to excute this query :
SELECT Count(*) AS boos_count, book_title
FROM books_table
GROUP BY books_table.book_title
Tamimi - Code
|
|
|
|
|
<b>Hai!
I struck up badly in displaying group header even though dont have records in detal section (Using Crystal Reports 8.5).
Actually, I've a ProductId Group header in which i'm showing opening balances.
In detail section I'm showing the detail records of that productid which is in group header.
It's working when I've detail recrods to show. But its not showing the even the group header which contains opening balances when there is no records in detail section to show.
pls pls pls give any suggetion or recmondations
thanking you lt;/b>
M. YASEEN
Software Engineer
MN Textiles
Karachi
|
|
|
|
|
Hi,
Use This query in The Add Command Instead of adding Tables
SELECT *
FROM PdMaster Left Outer JOIN
Pdetails ON PdMaster.PId = Pdetails.Pid
Thanks and Regards
Anu
|
|
|
|
|
Hi,
i want to merge 2 cells in excel when i am Exporting data from datagrid to cells. how can i do that .please send me a reply.
i am using code like this to export data
Dim XlApp As Excel.Application
Dim XlBk As Excel.Workbook
Dim XlSht As Excel.Worksheet
Dim r As Excel.Range
XlApp = CreateObject("Excel.Application")
XlBk = XlApp.Workbooks.Add
XlSht = XlBk.Worksheets(1)
XlApp.Visible = True
XlApp.Cells(1, 2).Font.Name = "Arial"
XlApp.Cells(1,2).Font.Bold = True
XlApp.Cells(1, 2).Font.Size = 9
XlApp.Cells(1, 2).value = "Mode Of Shipment"
r = XlApp.Cells(1, 2)
r.ColumnWidth = "Mode Of Shipment".ToString.Length * 1.5
XlApp.Cells(2, 2).Font.Name = "Arial"
XlApp.Cells(2, 2).Font.Bold = False
XlApp.Cells(2, 2).Font.Size = 9
XlApp.Cells(2, 2).value = DtGenReport.Rows(0)("Item").
if the heading is large i want to merge 2 cells.
Thanks and Rgards
Anu
|
|
|
|
|
Hello,
I am using a datepicker control VS 2005.
I have looked at the properties and cannot find any thing that allows me to display this in UK format. The default seems to be US. Is there any way to change the format so that is displays the date in UK format.
Thanks in advance,
Steve
|
|
|
|
|
It will use the locale set on the thread.
|
|
|
|
|
Have you tried using the CustomFormat property? Also, set the Format property to "Custom"
|
|
|
|
|
hi,
Everyone know how to convert this vb6 code
" ListView1.listitem(i + 1).subitem(j + 1).add" to vb.net??
Please help!
charleslau2855
|
|
|
|
|
ListView1.Items(i+1) is how you access the item. I assume it has a SubItems property.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
If you want to add an item to a listview...
If i understand your question right
'Single Entry at the end of the list
<code>Dim _ListViewItem AS ListviewItem = New ListViewItem(New String() {Column1Data, Column2Data, ...ColumnXData}, -1)
_ListView.Items.Add(ListViewItem)</code>
'Multible Entry
<code>Dim _ListViewItems(X) as ListViewItem
Dim _ListViewItem AS ListviewItem</code>
' The loading loop
<code>_ListViewItem = New ListViewItem(New String() {Column1Data, Column2Data, ...ColumnXData}, -1)
_ListViewItems(_ListViewItems.Lengt-1) = ListViewItem </code>
'Loop ends
<code>_ListView.Items.AddRange(ListViewItems</code>)
This is A easy why to add items to a listview...
VB6 =
|
|
|
|
|
I don't think you can add SubItems by index.
However, you can retrieve SubItems by index.
You will probably need to use an array to insert the value at the appropriate index and then rebuild the ListView using your array.
Steve
|
|
|
|
|
Hello.
Can anybody tell me how to create a virtual network interface with the .Net Framework and VB.NET?
Do I have to write a driver in general or is the .net framework able to do this?
thx,
Martin.
|
|
|
|