|
ACtually, the libraries in VB.NET2005 are doing that very thing for you. Just because you CAN do it in VB.NET, doesn't mean you SHOULD be doing it.
Any VB6 project run through the Upgrade Wizard in VS.NET 2002, 2003, or 2005, will do the same thing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I noticed that when I run some Dotnet programs the icons in the background (XP desktop) flicker regularly.
I tried to find out what is happening and I managed to reproduce the problem with five lines of codes.
I hopesomeone will be kind enough to test that on their machine and tell me if they reproduce it or not.
You just need to
1 - create a new Windows Forms application.
2 - add a numericupdown control in the middle of the form
3 - set the numericupdown1 maximum to 1000
4 - Add this code:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
For i As Integer = 1 To NumericUpDown1.Value
e.Graphics.DrawLine(Pens.Red, 10 + i, 10, 10 + i, 10 + i)
Next
End Sub
Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged
Me.Invalidate()
End Sub
Then when you click on the NumericDown control and reach 150 (on my machine) the icons on the background are starting to refresh...
Do you reproduce that ?
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Very strange. But, no, I couldn't reproduce the problem on my machines.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Pals
I am working on vb.net 2005 windows forms.
I want to display an image using directx control. I have the documentation too of directx sdk but it describes all usage through c# interface. So cant understand anything basically.
So If anyone can give me some example to display an image using directx direct3d functionality then that would be really very helpfull to me.
Thanks in advance.
MAP Tiger
|
|
|
|
|
i have a mdi application, and on the main mdi container, i have a menu strip that i want to add icons to. how do i go abt it? thanx in advance.
Regards,
Kuda.
|
|
|
|
|
If you are using VB 2005 didn't you notice the Image property.
If you are using VB 2003 there are many articles in CP
Chatura from Pearl of the Indian Ocean
|
|
|
|
|
Hie Chataura,
am using VB 2003 and dont seem to find what you said. So may you please clarify.
Regards,
Kuda.
|
|
|
|
|
Hi
Im using Crystal Reports to produce Summary Reports from my Database
( Fields - Task, Date, Duration). The Report is showing a list of my data held in my database with the headings Task, Date and Duration.
I'm trying to get the Crystal Report Expert to have a Total Duration at the end of the report. This would need to accumalate all the durations which are in the format of 00:00:00 (hrs:mins:secs).
How can I use the Crystal Report to produce a Total of all the durations? Is there a formula I need to use?
Regards
ensuvari
|
|
|
|
|
Hello!
I started getting an error message when I try to save the image under a directory. The error message is
EXTERNAL EXCEPTION WAS UNHANDLED
A GENERIC ERROR OCCURED IN GDI+
The message is point to following statement.
Picturebox1.image.save ("c:\abcd.jpg", ImageFormat.jpg)
if you enlight me about the solution I would really appreciate it...
Thanks..
|
|
|
|
|
Whatever account your application is running under doesn't have write permissions to C:\.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave!
Whenever the application copies files from CD or any other driver to local hardisk, I haven't met with any type of permission problems. They are working fine. I am able to save the pictures files under a directoy on my local hard disk as a file.
Why do you think whenever picturebox1.image.save is used cause such a problem.
Thanks!
|
|
|
|
|
Based on the infom you've given, you might also want to try checking out this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I finally detected the proplem... One sub directory name was missing in the path.. Now it is working... Thanks for the URL.
|
|
|
|
|
I kind figured it had to be something filesystem related...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am using datareader to simulate the records.(First , Previous , Last , Next)Buttons . I had not used sqldataadapter for add , delete , update buttons.I want to continue with the sqldatareader for first , previous , last , next buttons.Can somebody send me any code or link.
Thanks
|
|
|
|
|
You can't use a DataReader for Forward/Backward navigation. It's a forward-only reader.
You'll have to use a DataAdapter and DataSet for this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok, Can you send me any link for that?
Thanks
|
|
|
|
|
All you have to do is search the articles...
Here[^], this article explains the concepts quite well, though the code is in C#, it's easily convertible to VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi.
You can not use DataReader for backward reading. You can use disconnected DB.
To use that you can use DataSets and DataAdapters.
Here is a quick and simple tutorial:
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson05.aspx
The tutorial is in C# but the syntax is similar to VB.NET.
Have fun.
HL
|
|
|
|
|
when a sentence is written in text box with space in every word ,, how to break the sentence for each (space event)word and send it to the next texbox followed in VB application ?
dinu
|
|
|
|
|
if im getting ur question right u can do this in following way:
>> keypress event of text box1
if chr(keyascii) = " " then
text2.setfocus
end if
write the same code in key press event of each textbox and set focus to next text box
Noshaba
|
|
|
|
|
Your question is difficult to understand. You can split your senesce like this
Dim words() As String = Split(TextBox1.Text, " ")
and get each word like this
Textbox2.Text = words(0)<br />
Textbox2.Text = words(1)
Chatura from Pearl of the Indian Ocean
|
|
|
|
|
Dear friends,
How can I zip a folder from my vb6 program. so that I can attach it to the mail which I am sending through the program. Please give me the sample code how can I send a folder which content a lot of picture by email through the vb6 program.
Your quick response will be highly appreciated.
Thanks
Murtuza Patel.
|
|
|
|
|
If you want code handed to you, a little Google goes a long way...
http://www.codeguru.com/vb/gen/vb_graphics/fileformats/article.php/c6743/[^]
VB6 doesn't have anything in it that will do this natively, so you have to have some kind of library to di it for you, or implement your own. Using someone elses library would be FAR quicker.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 9:03 Saturday 18th March, 2006
|
|
|
|