|
Hello,
All I am trying to do is run simple programs that I learn from a book
every time I "Start without Debugging" it gives me a messageBox with "there were build erors"
Now this seems to happen when I rename the ".vb" file and rename the "Module" (I am in the beggining of the book and were are just on simple modules). Also under the build error 'Task List' it says "Sub Main was not found in 'ConsoleApplication1.Module1
Help. I am a rookie and i need help fast
|
|
|
|
|
It seems like you need to set the startup object in the project properties. TO access the project properties, you can either:
1. Click Project on the Menu Bar and select Properties, or
2. Right-click on your project in the Solution Explorer and select properties
On your project property dialog, you will see a combo box labelled "Startup Object". Navigate your combo box and select a startup object, which is usually a Sub Main method.
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
hi.. i have a problem regarding change some status frquently.
i m aorking a application of Port updateing and ports are updateing very-very frequently...i m collecting this information thru a event of a DLL. ..and when-ever status of any port will change the event genrates and give me the port no with the current status...then i should have run a function to changethe status....
now the problem is how can i update this information...thru therading or any easy way is for that? i m using vb.net and vb6...
regards
anand
|
|
|
|
|
vb6 is not strong in multithreading
but you can use an ActiveX EXE to do multithreading (but better to use APIs if you want some synchronization)
in .NET multithreading is supported.
|
|
|
|
|
Explorer Style
can we made a tree view or list view or any other control with style like title bar with close button...just like a outlook exp. or windows expl or internet exlorer's left hand panels....in these applications..we can close the tree view by CLOSE button...and make appear by menu..
i want to made same treeBox...
anand...
__________________
|
|
|
|
|
Make a custom control that contains a TreeView, leaving room at the Top to draw your own Button control. If you want to detect whether the button was Clicked, do it one of two ways:
1.) Determine if the MouseDown position falls within the Bounds of where you drew the Close Button. Use the code below to draw the button.
2.) Create a very simple separate control called "CloseButton" and all it does on the "OnPaint" event is the following code:
Dim g As Graphics = Me.CreateGraphics
ControlPaint.DrawCaptionButton(g, New Rectangle(50, 50, 50, 50), CaptionButton.Close, ButtonState.Flat)
g.Dispose() : g = Nothing
|
|
|
|
|
I'm obviously new to VB and I'd like to write a program that would have buttons on the left that, when clicked, will change the content on the right. I figured out that I can use a splitter control to seperate the form, but what control do I use for the left and right "frames"? I'd like it to work like a web page that has a frame on the left that stays consistent while on the right it would load other "forms" to add an item to inventory, or if another button is clicked a form would appear to view employees or something similar.
Can anyone tell me what controls would best allow me to do this? I'm using VB.NET.
Thanks...Brent
"It has become appallingly obvious that our technology has exceeded our humanity."
- Albert Einstein (1879-1955)
"I think there is a world market for maybe five computers."
- Thomas Watson (1874-1956), Chairman of IBM, 1943
"640K ought to be enough for anybody."
- Bill Gates (1955-), in 1981
"Half this game is ninety percent mental."
- Yogi Berra
|
|
|
|
|
Have you been to Myrtle Beach Computers's site? They have lots of really neat quotes there (including 3 of the 4 quotes in your sig).
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
You need www.dotnetmagic.com
|
|
|
|
|
|
Could anyone help me on how to attach a calendar in a text box whereby when we click on that text box, a calendar will appear. Then if we click on the date on the calendar, it will input inside the text box.
Thanks.
|
|
|
|
|
Have you tried the DatePicker control that comes with VB6?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Yes, I've just tried that. Thanks for your response.
Rgds.
|
|
|
|
|
How do I pass a buffer of samples in the DirectSoundBuffer.WriteBuffer method under vb.net?
In the docs, the following is OK, but under vb.net the compiler complains that buf(0) can't be converted to a System.IntPtr
ds.writebuffer(0,0,buf(0),flags)
How do I write the buffer of raw samples to the directsoundsecondarybuffer8 under vb.net?
Thanks
|
|
|
|
|
The MS docs for DirectSoundBuffer.WriteBuffer say tht a typical call looks like:
dsBuf.WriteBuffer(0, 0, buf(0), CONST_DSBLOCKFLAGS.DSBLOCK_ENTIREBUFFER)
where buf(0) is the first element of an array of bytes. However, this fails the .net compiler which says the third parameter must be a System.IntPtr, and that it can't convert a value of type BYTE to a IntPtr.
What is happing here? This is for a DirectSound8 app.
-Davivd
|
|
|
|
|
Convert the third parameter to Intptr using CType
as follows
dsBuf.WriteBuffer(0, 0, buf(0),CType(CONST_DSBLOCKFLAGS.DSBLOCK_ENTIREBUFFER,System.IntPtr))
|
|
|
|
|
Where to find the icons used in the IE 6.0 toolbar?
|
|
|
|
|
www.vbaccelerator.com and check out the icons section
|
|
|
|
|
How can you detect Windows events like when Windows shuts down?
|
|
|
|
|
Here's one possible starting point:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsubscribingtoandconsumingmanagementevents.asp
|
|
|
|
|
I've got a bunch of check boxes that all do the same piece of code except for one word. If the check box is checked they run:
command = "net send " checkbox.caption & txtBox.text
the checkbox.caption needs to equal the caption of the check box if it's checked.
I was thinking about using control arrays and doing something like this:
For Each value In Checkbox(x)
command = "net send " checkbox.caption & txtBox.text
Next
HELP
|
|
|
|
|
If you absolutely have to store your commands in the Caption property of your checkboxes, you could do something like this:
For i = 1 To Check1().UBound + 1
Debug.Print Check1(i - 1).Caption & ":" & CStr(Check1(i - 1).Value)
If Check1(i -1).Value = 1 Then
commandLine = "net send " & Check1(i - 1).Caption
End If
Next
|
|
|
|
|
I have a VB.net Application ,whenever i click on the EXE a new instance of the application runs .But i want one instance to run at a time .That means if the exe is already running by clicking on it it should show the message that it is already running.
Similar case for loading forms.suppose i have a button ,clicking on it a form is comes up ,if i click on the button several instance of the same form is running ,how to get rid of this that means there must be one instance of a form at a time.
Please help me its urgent
|
|
|
|
|
Use a Mutex - so you are going to have to look at the Win32 API.
Have a look at CreateMutex - to make a named Mutex. You can only create a Mutex once across processes, so the if a second instance launches and tries to create it, there will be an error, which can be caught. So you would put this routine in the start up code.
Shameless Plug - Distributed Database Transactions in .NET using COM+
|
|
|
|
|
See my reply to the original message. There is a System.Threading.Mutex class available in the Fx.
|
|
|
|