|
Hi Dave,
Thanks a lot. This is the function i'm looking for and it return the result i want.
Heng
|
|
|
|
|
Hi, trying to learn how to interpret information from WinDbg and ProcessExplorer (from www.sysinternals.com). So, I wrote a simple Win32 console app in VB.NET (could have been anything else really):
Imports TestDebugger
Module Module1
Sub Main()
Functions.SubA(1000, 100)
Functions.SubB(1000, 100)
Functions.SubC(1000, 100)
Return
End Sub
End Module
Imports System.Threading
Public Class Functions
Public Shared Sub SubA(ByVal max As Int32, ByVal sleep As Int32)
For i As Int32 = 1 To max Step 1
Thread.CurrentThread.Sleep(sleep)
Console.WriteLine("SubA: " + CStr(i))
Next i
Return
End Sub
Public Shared Sub SubB(ByVal max As Int32, ByVal sleep As Int32)
For i As Int32 = 1 To max Step 1
Thread.CurrentThread.Sleep(sleep)
Console.WriteLine("SubB: " + CStr(i))
Next i
Return
End Sub
Public Shared Sub SubC(ByVal max As Int32, ByVal sleep As Int32)
For i As Int32 = 1 To max Step 1
Thread.CurrentThread.Sleep(sleep)
Console.WriteLine("SubC: " + CStr(i))
Next i
Return
End Sub
End Class
Now comes the questions:
1. WndDbg - how can I set breakpoint in WndDbg to break at TestDebugger.exe calls to Functions.SubA?
2. ProcessExplorer: Hey I located "TestDebugger.exe", double click and page to "Threads" tab and I couldn't see any calls to .NET Functions.SubA??? how come? Thanks in advance.
I captured the screenshots of information I got running WndDbg and ProcessExplorer.
Norman Fung
|
|
|
|
|
Hi, everybody, I want to make an application in the server that will also run in all clients' background, the application that I want to make it somewhat like a reminder that will load on startup, but is hidden for them, so if the client is scheduled to do something, the applicaton will show pop-up message box, so the client will be alerted, can anyone help me ????
|
|
|
|
|
I have a program, whereby i wish only authorised person can install it. Therefore, i tried to add serial number while i make the installer using Vb.net, however, i cant find the way to add the serial number in... Can anyone please help me to figure out? Thanks a lot..
|
|
|
|
|
NET Installer classes do not execute until the end of the setup sequence, and are not particularly useful for this kind of task. You need to use a custom action DLL that runs during the UI sequence instead.
See here:
http://www.thecodeproject.com/dotnet/msinetserial.asp[^]
|
|
|
|
|
Thanks... your information is so useful.. =)
|
|
|
|
|
now i would like to program the log-in part of the pocket pc, so i should create a database for ppc...right? so how and what codes can be used to create this part?...
thanx
go ahead...do best on my works....
|
|
|
|
|
Hi,
I want to draw formated text obtained from a RichTextBox onto a usercontrol using GDI+. The text from the RTB has more than one font styles while the Graphics.DrawString function from GDI+ can only pass one font-style on each call.
Is there anyone has done it before or has ideas to solve it? please help.
cheers,
Mank
|
|
|
|
|
I want a vb code for testing the printer trays.
vb Program has to find the installed printers, paper formats and the trays on the pc of each printer. It has to find all type of printers (HP, Lexmark, brothers,..)
Example: print some text on paper from a specific tray
\\server\printer1 - has 2 trays.
- tray 1 : A4
- tray 2 : A6
I want to print a text from tray 1:A4 and tray2:A6.
To find the printer and tray, program uses the SystemPrinters dll. But i cannot find a way to make this programm. Any help is excellent.
Rommel
|
|
|
|
|
I need desperate help. I have a status bar with 4 panels and four labels above and outside of the status bar each above a panel. When the panel grows/shrinks with text - need for the labels to resize accordingly with the panels.
This is what I am trying now:
Private Sub ChkPause(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Checkpau.CheckedChanged
If Checkpau.Checked = True Then
'TxtFil_na.Text = "Program Paused " & vbCrLf & "Double Click Here to Start"
TxtFil_na.BackColor = Color.Red
StatusBar.Panels(1).Text = "Program Paused"
Else
TxtFil_na.BackColor = Color.LightGreen
'TxtFil_na.Text = "Program Running "
StatusBar.Panels(1).Text = "Program Runningggggg"
End If
End Sub
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
Dim panelWidth As Integer = Me.StatusBar.Size.Width / 4
lblsz.Width = StatusBar.Panels(0).Width
lblsts.Width = StatusBar.Panels(1).Width
lblFil_na.Width = StatusBar.Panels(2).Width
lblerr.Width = StatusBar.Panels(3).Width
StatusBar.Panels(1).AutoSize = StatusBarPanelAutoSize.Contents
End Sub
|
|
|
|
|
The problem is that you are changing the width of the labels, rather than the position of the label. What you want is for each label to change it's position as the panels resize. When panel(0) gets bigger, panels 1-3 move to the right to make room for it. This is not how the labels work, however. Each label has a Left property. As panel(0) gets bigger, you want the labels for panels 1-3 to change their Left property, so that they move to the right. Perhaps something like this:
<br />
lblsts.Left = StatusBar.Panels(0).Width + 3<br />
lblFil_na.Left = StatusBar.Panels(0).Width + StatusBar.Panels(1).Width + 3<br />
lblerr.Left = StatusBar.Panels(0).Width + StatusBar.Panels(1).Width + StatusBar.Panels(2).Width + 3
Roy.
|
|
|
|
|
I am a beginner to programing and have a project where I want to select a file for output. Currently I have it set up to mannually type in the path, what I need to know is how can I code a button to be able to navigate to a directory and provide a file name and pass that back to my input box? Thanks in advanced.
|
|
|
|
|
|
In the dialog meanu there should be an open file dialog. Add one of those to your form.
On your buttons click event, ( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click), add this code (assuming name of open file dialog is openfiledialog1)
<br />
Dim FilePath As String<br />
Dim Input As String<br />
OpenFileDialog1.ShowDialog()<br />
FilePath = OpenFileDialog1.FileName<br />
'Filenames means multi-select; to open more than one<br />
Input = InputBox("Something", "Title", FilePath)<br />
You get to select the path from a dialog, and you use a string to pass it on to the input box, no error handling included.
Inputbox has optional sections, and default and title are included. So you can optionally add a default input.
|
|
|
|
|
thanks that was perfect!!
|
|
|
|
|
NEED: .NET multi-table master-detail type customizable forms and datagrid generator or at least easy-to-follow idiot-proof instruction. ASPMaker.net ain't got it. ASPRunner.net ain't got it. Those tools are great for quick easy creation of add, display, edit, copy, delete, search database connectivity and functionality but for only one table!! I need to do all these quickly using data from three Oracle database tables (will also need to consider furture use for MS Access tables). Any intelligent leads appreciated. My database is small with only about two dozen total fields and only two master-detail relationships - not that big of a deal, it would seem. But my search has turned up nothing usable so far. Grateful for any and all good ideas. Programmers, freelancers, all responders/responses welcome. I just need to get it done in a hurry!!!
Thanks all!!
Scott
|
|
|
|
|
Can anyone suggest a good third party combobox? The combobox needs to be able to do the following:
Automatically fills the text at the cursor with the value of its dropdown values list. As characters are typed, the ComboBox finds the closest matching item from the list and automatically fills in the remaining characters. Appended characters are highlighted so that they are replaced by any further typing.
Any help would be appreciated.
|
|
|
|
|
Searching CodeProject is a good idea: Clickety[^]
|
|
|
|
|
how to save records in a database using checkboxes in the datagrid
i am facing problem when inserting data using muliple selection. it gave me the err that object reference not set to an instance of an object
My code was:-
for i=0 to mygrid.items.count-1
dim chk as CheckBox=ctype(mygrid.items(i).findcontrol("CheckBox"),CheckBox)
if (chk.Checked) then
'i was fetching id form other table according to the name in the datagrid and then inserting the id in another table where it is foreign key, this is giving me the above err
Nirali Pare
|
|
|
|
|
Hi there,
i need a little help.
I want to create a properties-window, just like the properties window in VS-Net... i got a dockable tool-window working, but i simply lack the last idea of how to create a window working/lookin like the one in VS... I thought about using the datagrid-control, but it's not the right one... i think... maybe u can help me...
Thanks
Nadine
|
|
|
|
|
it is an owner-drawn control, which means that you'll have to drawn yourself the control, define its behavior, etc...
moreover, i doubt that Visual Studio were made with VB...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
well shame on me....
i posted this question and only half a minute later i found this article:
http://www.codeproject.com/vb/net/using_propertygrid.asp
it's about exactly what i searched... i will work through it and hope it will work for me...
Thanks for viewing, sorry for posting...
|
|
|
|
|
I have a application which creates a Guest Badge Card
This Card has the Name , Address & the BarCode with GuestID
Now I have to print this badge card.
IS it possoble to print all the details on badge card (Barcode & Name etc )with the BarCode Printer.
Now if this badge card is printed through a Normal Laser Printer Then That Barcode (on Badge Card) can be readable through the Bar Code Scanner
I am Stuck with this very big confusion
Plz Help me to resolve this
Thanks for this kind help
Hema Chaudhry
-- modified at 7:03 Wednesday 14th December, 2005
|
|
|
|
|
with laser printer u need to print in high resolution at least 300dpi.
print it and test, it will work fine
|
|
|
|
|
hi guys,
id like some one to show me how you create a database transaction that enable you to save changes (new entries) to multiple tables at once.
all tables heve a non-null primary key
thanks
(ps: am new to vb.net)
|
|
|
|