|
Hi,
I'm a VC++ programmer, and I need now to develop some ActiveX controls in Visual Basic 6.0 for a client. Could you point some good book about this issue ? ( well and another good book to learn Visual Basic ).
Thanks in advance
Braulio
|
|
|
|
|
Mastering Visual Basic 6.0 (by Evangelos Petroutsos) - Sybex press, Is a great VB6 book and I recommend it.
|
|
|
|
|
From where i can download the Source code of that book. (for Free)
|
|
|
|
|
To download the source code for examples of this book go to
www.sybex.com[^]
and search for the title..You'll find a link in the page that directs you where to download code on the CD.
I'm not sure if the book itself is available online.
|
|
|
|
|
Hi,
i have 2 dynamic rectangleF and one string.
Now i want to use the substring to split the text in 2 parts.
If the first rectangle is full, then use the second one.
Is there any way to draw a string inside a polygon ?
If yes, i would use that..... but at the moment i can only fill text
in rectangleF with Drawing.String.
Or know someone how i can see the text.length for the first rectangleF (max. length),
so that i can use substring on it.
Hope someone can help
Darkmoon
|
|
|
|
|
I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?
|
|
|
|
|
When you databind your datagrid with a dataset, you are in fact setting up a "relationship" between the 2 objects. The changes done in the grid will be reflected to the dataset, so all you need to do is retain the dataset in memory.
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
|
|
|
|
|
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
|
|
|
|