|
How can I get the names for all computers which are connected to a LAN(Local Area Network)?
MNG
|
|
|
|
|
Dear Sir
How can I install a .Net FramWork when I make a setup for a program which made by VB.Net?
MYH
|
|
|
|
|
Dear Sir
Can I make setup for a program and run it onto a machine
that has not Visual Studio nor .Net framwork?
|
|
|
|
|
Hi, I need to know the name od the current windows desktop in vb6. I use the following code. l which is the lenght of the string of desktop name, is filled but, the strig s would not be filled.
I would like to ask why this happens, and if there are any other methods to get current desktop name?
Option Explicit
Private Declare Function GetUserObjectInformation Lib "user32" Alias "GetUserObjectInformationA" (ByVal hObj As Long, ByVal nIndex As Long, pvInfo As Any, ByVal nLength As Long, lpnLengthNeeded As Long) As Long
Private Declare Function GetThreadDesktop Lib "user32" (ByVal dwThread As Long) As Long
Private Declare Function GetCurrentThreadId Lib "kernel32" () As Long
Private Const UOI_NAME As Long = 2
Private Function GetCurrentDesktopName() As String
Dim s As String, l As Long
Const MAX As Long = 500
s = String(65355, vbNullChar)
If GetUserObjectInformation(GetThreadDesktop(GetCurrentThreadId), UOI_NAME, VarPtr(s), MAX) Then
GetCurrentDesktopName = Left(s, l - 1)
End If
End Function
Private Sub Command1_Click()
MsgBox GetCurrentDesktopName
End Sub
|
|
|
|
|
|
hello guys
my main problem of my application is that i cannot the load the file which is from ms word 2003..ok to be more understandable first i have a textbox that will get the path of the file like for example "c;\sample.doc" then i have button there that will show the msword.exe the problem is that it doesnt work...can you fix this code...
..Private Sub btnshowfile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnshowfile.Click
Dim fLocation As String = txtfilelocation.Text
Dim fType As String
Dim iOpen As Integer
If txtfilelocation.Text = fLocation Then
End If
fType = Mid(fLocation, Len(fLocation) - 2, 3)
Select Case fType
Case "DOC", "doc"
iOpen = Shell("C:\Program Files\Microsoft Office\Office10\winword.exe " & Chr(34) & fLocation & Chr(34), AppWinStyle.NormalFocus)
end select
end sub..
thats my code...it doesnt load anything in 2003 office
please help....
thanks in advance
|
|
|
|
|
This is one of easy ways
You can open files with there associated applications like this
System.Diagnostics.Process.Start("C:\YourFile.doc")
Chatura Dilan
SC Java Programmer
|
|
|
|
|
Are they automatically cleared/dropped when the user closes his browser?
I sure hope they are...
If not, how to make sure that happens..?
|
|
|
|
|
Yes, It will be cleared after closing the browser.
abc
|
|
|
|
|
thx
|
|
|
|
|
i want to make sql statment that use mod % Div /
i have tow colum
tt | time
---------
1 | 1
2 | 2
3 | 9
i want to make list for all record if (time % 5 = 0)
* how can make this
Palestine
|
|
|
|
|
exactly how youve written it - mod operator in sql is %
so
SELECT * FROM myTableName
WHERE (time % 5) = 0
|
|
|
|
|
hi
could someone tell me why this code is not working, i mean the
insert query
<br />
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="CustomerID"<br />
DataSourceID="SqlDataSource1" AutoGenerateInsertButton="true" Height="50px" Width="184px" AllowPaging="true"><br />
<Fields><br />
<asp:BoundField DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID" /><br />
<asp:BoundField DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName" /><br />
<asp:BoundField DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName" /><br />
<asp:BoundField DataField="ContactTitle" HeaderText="ContactTitle" SortExpression="ContactTitle" /><br />
<asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" /><br />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" /><br />
<asp:BoundField DataField="Region" HeaderText="Region" SortExpression="Region" /><br />
<asp:BoundField DataField="PostalCode" HeaderText="PostalCode" SortExpression="PostalCode" /><br />
<asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" /><br />
<asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" /><br />
<asp:BoundField DataField="Fax" HeaderText="Fax" SortExpression="Fax" /><br />
</Fields><br />
</asp:DetailsView><br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=MOHAMMED-TAMIMI;Initial Catalog=Northwind;Integrated Security=True"<br />
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Customers]" FilterExpression="CustomerID='{0}'"<br />
InsertCommand="INSERT INTO [Customers]([CustomerID], [CompanyName]) VALUES (@custID, @company)" ><br />
<FilterParameters><br />
<asp:ControlParameter ControlID="GridView1" Name="CustomerID" PropertyName="SelectedValue" /> <br />
<br />
</FilterParameters><br />
<InsertParameters><br />
<asp:Parameter Name="custID" Type="String" /><br />
<asp:Parameter Name="company" Type="String" /> <br />
</InsertParameters><br />
</asp:SqlDataSource> <br />
Tamimi - Code
|
|
|
|
|
My Dear Friend,
The problem with this query is that the INSERT Statement is incomplete.
if you say: SelectCommand="SELECT * FROM [Customers]
than you're selecting all the parameter fields from CUSTOMERS which are 11 parameters.
Having said that your INSERT statemetn should have 11 parameter fields.
HOPE this helps you.
Good luck
Amadeo,
|
|
|
|
|
hi
i changed the select command to
"SELECT CustomerID,CompanyName FROM [Customers]" but i got the same
problem.
anyway thank you
Tamimi - Code
|
|
|
|
|
windows can store your logon information for network locations and web sites
in Control panel->user Account->manage my network password->> (Stored User Name and Password)
and you can see this informatin in a list and if you click properties you can see
server name & user name & password.
can add new entry and change them or remove if you want
How can i retreive the list of server name & username for all stored account
(put them in dropdownlist or saved them on DataBase)
using asp.net or vb.net code
can any one help me ????!!!!
Saeed
|
|
|
|
|
How do i find a process which i know the name of and determine if it exists.
e.g. find out if internet explorer is running.
Posted by The ANZAC
|
|
|
|
|
Here are two ways of doing it. Second one uses iteration which may prove to be resource heavy.
1st Method - GetProcessesByName(processname as String)
If Not IsNothing(Process.GetProcessesByName("iexplore")) Then
MessageBox.Show("Explorer is running.")
End If
2nd Method - GetProcess()
Dim objProc As System.Diagnostics.Process
For Each objProc In Process.GetProcesses
If objProc.ProcessName = "iexplore" Then
MessageBox.Show("Explorer is running.")
Exit For
End If
Next
|
|
|
|
|
hi
i have developed an application.i want to deploy it in a client machine,bt the problem is that i dont know how to make the crystal report database login information dynamic.can anybody help me in this regard to make the crystal report dynamic so that it can take the login information from the registry at the time of installation of the setup wizard?
how can i incorporate the microsoft.net framework in the setup along with the project so that it will automatically install the framework at the time of installation of projects?
any queries in this regard will be warmly solicited
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
My goal is to open a URL in the default web browser. The URL is stored in a string variable. I use the following code to launch the browser:
system.Diagnostics.Process.Start(URL_string)
The browser pops up and opens the right site... if I don't use any scandinavian characters (ä, ö, å). If use Mozilla Firefox as my default browser, these characters will be converted to HTML-format (e.g. "ä" --> "%%C3%A4"). Internet Explorer doesn't do this.
How would it be possible to open Firefox so that it doesn't change anything in the string I'm using? The problem is that not all web pages support this kind of HTML-converting (they have a different character encoding) and therefore these pages won't open due to a faulty URL.
|
|
|
|
|
Maybe my question was confusing. I try again:
When I launch the browser with a string that contains URL, the URL-string is somehow changed when it moved to browser address bar. When there is a "ä" in the string, the browser gives %E4. Also the &-characters are converted to some %XX-form. Is there a way to prevent this happening? I would like to paste the URL as it is to browser and not change it at all.
|
|
|
|
|
Hi!
I need to do this for my final year project. Is this possible? If Yes, Then please explain How?
|
|
|
|
|
How can i find the Cdrom drive(e:\ or f:\ or G:\ , etc)
Is there any API function or property do this
MHF
|
|
|
|
|
|
Every task has easy way to do it. Thanks
Chatura Dilan
SC Java Programmer
|
|
|
|