|
Mika Wendelius wrote: You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.
Beat me to it!
|
|
|
|
|
I guess the server I was directed to, was having a lower workload thus performing faster.
|
|
|
|
|
That's like the third time in 3 days I was beaten to it! Once was by a few seconds, I hate it! Grrrrr
|
|
|
|
|
So doesn't it mean that if you've posted, say 30 messages during last 3 days, you have replied just before someone else in 90% of cases and only in 10% someone else has done that. That wouldn't be bad at all.
|
|
|
|
|
I have to develop an application/tool, in which one part of the form should contain web browser.(i have used web browser component ) amd other is a application like visual studio. when i press enter. i should fit inside the second half of the form.
the code which i have used simple shoots up an application and it runs a separate one.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
System.Diagnostics.Process.Start("C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe")
End Sub
can some one please tell me how to open the application inside my form and all the pop up should be within the frame..
thanks in advance..
|
|
|
|
|
The Process class has a MainWindowHandle property that you can use to set the Parent window to your hosting control, which should normally be a Panel control. Get the MainWindowHandle property of the Process object you just started, then you can call the Win32 function SetParent[^] to make the application window a child of the Panel window.
WARNING! Not all applications will tolerate this technique! You can run into painting problems with the application that you host!
Also, you cannot force any popup windows that the hosted application shows to show up inside your application.
|
|
|
|
|
can vb 6 application access web service ..
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
ghumman63 wrote: can vb 6 application access web service ..
Yes.
|
|
|
|
|
Hi!
I am having problem getting a textbox value once the user clicks a 'add button' below are my codes
Protected Sub dgProdList_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgProdList.ItemCommand
If e.CommandName = "Add" Then
Dim tbox As TextBox = CType(e.Item.FindControl("txtQty"), TextBox)
in above tbox is empty and I dont know why its empty
please help
|
|
|
|
|
Well i'm gonna assume here....
i think this is because you may have forgot about the headers in your gridview/datagrid etc..
so you need to do this...
If e.Item.ItemType <> ListItemType.Header Then
Dim tbox As TextBox = CType(e.Item.FindControl("txtQty"), TextBox)
End if
Hope this helps!
Andy
|
|
|
|
|
sorry the fix was putting the ispostback on page load for databinding
|
|
|
|
|
My application working properly in English (United state), but when i am change the language Greek in Regional settings it's not working.
If any possible to set the language dynamically in English using VB 6.0. without restarting the computer.
Thanks...
modified on Tuesday, January 6, 2009 7:18 AM
|
|
|
|
|
|
He's using VB6, not VB.NET.
|
|
|
|
|
Yep, that info was his modification after the reply.
|
|
|
|
|
Ah! I'm comming in late to the game.
|
|
|
|
|
Don't worry, lot's of effective play-time left
|
|
|
|
|
You shouldn't try to set the regional settings off the pc instead set the thread's culture setting to US language (as Mike suggested).
To do this you need to add the code to the application startupevent or before the initializecomponent methode of your main form otherwise parts off your program will not have the right setting.
System.Threading.Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("language goes here")
System.Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("language goes here")
the "language goes here" part is most likely to be "en-US" for you but I'm not sure about that.
|
|
|
|
|
Hi Tom
Thank You, I need help for VB 6.0.
Thanks
|
|
|
|
|
I don't program in vb6.0 so I can't help you with that.
I don't think you can do something like setting the threads culture in vb6.0 so you'll probably have to manipulate the computer regionals settings, but don't know how you would do that.
|
|
|
|
|
Changing the system settings to do this is extrodinarily bad practice.
If you're looking to localize your application, have a look at this[^]. VB6 is very limited when it comes to localization. I would suggest moving up to VB.NET if at all possible.
|
|
|
|
|
I'm performing a sweep of my network by checking the AD and pinging machine listed. I'll be doing a lot more with this later, but for now I'm trying to see if a PC is disabled in the AD so I wont waste time pinging it. I've done a bit of work with writing scripts to query the AD, but VB is different enough to confuse me in a few places.
This is what I have so far. I have the spot marked where I need help.
Private Sub Sweep()
Dim dlgres As String
dlgres = MessageBox.Show("Do you wish to continue?", _
"Continue?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If dlgres = DialogResult.Yes Then
lbComputers.Items.Clear()
Dim DirEntry As New DirectoryEntry("LDAP://" & tbDomain.Text)
Dim DirSearch As New DirectorySearcher(DirEntry)
Dim strPcName As String
Dim strPcOutput As String
Dim strPcStatus As String
Dim intcounter As Integer
DirSearch.Filter = "(objectClass=computer)"
intcounter = 0
For Each sr As SearchResult In DirSearch.FindAll
intcounter += 1
strPcName = sr.GetDirectoryEntry.Name.ToString.Substring(3)
*********************************************************************************
This is where I want to see if a PC is Disabled. I can add the If routine later.
strPcStatus = (Code to determine if disabled)
(maybe some form of sr.GetDirectoryEntry.something...?)
**********************************************************************************
(If Not Disabled)
Try
If My.Computer.Network.Ping(strPcName, 100) Then
'If You Can Ping The PC
strPcOutput = String.Concat(strPcName, " <--- Active")
lbComputers.Items.Add(strPcOutput)
'MessageBox.Show(strPcOutput)
Else
'If You Can't Ping The PC
strPcOutput = String.Concat(strPcName, " <--- Not Active")
lbComputers.Items.Add(strPcOutput)
'MessageBox.Show(strPcOutput)
End If
Catch
'If You Can't Resolve The IP To Ping The PC
strPcOutput = String.Concat(strPcName, " <--- Cannot Resolve")
lbComputers.Items.Add(strPcOutput)
End Try
pbProgress.Value = ((intcounter / intNumPCs) * 100)
Next
lbComputers.SelectedIndex = 0
intNumPCs = lbComputers.Items.Count
lblNumPCs.Text = "# of PC's in AD = " & intNumPCs
End If
End Sub
I'm sure it's simple.
|
|
|
|
|
Well, I don't have any code to show you, but you need to check the "User-Account-Control" property of the Computer account to see if a flag is set. This means doing some math to see if a certain bit is set, specifically, the AccountDisabled bit is &h00000010, or in decimal, 2. If the UAC value you get back is, say, 511, you can do this to find out if the AccountDisabled bit is set:
Dim disabled As Integer = uacValue And &H00000010
If disabled = 2 Then
' The account is disabled
End If
|
|
|
|
|
Hi All,
I need code or way so I can insert any text or number into textbox and convert it to barcode format. any help plz
Regards
|
|
|
|
|
Search the forums, there are lots of posts like this and fonts that will do the job
Searching[^] will help you come up with a lot of answers, code39 is the most popular from a quick search of the forums[^]
|
|
|
|