|
Hi all, I have e little problem that I hope someone can help me to solve it.
I have a Form in which there is a panel where I draw a graphical diagram using instruction paint, drawline.
The graphical is correctly drawn, but if I Minimize the Form and after I re-Maximize the Form, all contents of Form is maintened but the graphical in the Panel is lost.
What can/must I do to avoid this problem?
I am developing in VB of VS 2008.
Thanks
|
|
|
|
|
Repaint whenever the OnPaint event fires.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks, I will try (I am not expert).
Refresh is the same of Repaint?
|
|
|
|
|
No, he means put all of your painting code in a method that is called by the OnPaint event of the Panel. When Windows tells your app to repaint itself, your painting code should do everything it needs to draw everything on the Panel. You'd be surprised how often your painting code is going to be called.
|
|
|
|
|
Thanks all for help.
Regards
|
|
|
|
|
Is it actually possible for me to make an Windows Explorer but with more features just like Revolutions Pack?
Or will VB6 make this impossible?
Any tips are welcome.
|
|
|
|
|
DutchComputerKid wrote: possible for me
How would you suppose that we can answer that? How could complete strangers on the internet know if something is possible for you to do or not? Sure, if you apply yourself, learn programming, and study, study, study you can probably do just about anything. But for us to tell you that you can sit down and bang this out in the next month? No, we can't tell you any such thing because we don't know you, your skill set or why on earth you would want to use an outdated ancient dead programming language like VB6 to begin with.
|
|
|
|
|
I believe OP is simply asking if it can be done using VB6.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: I believe OP is simply asking
He asked if it were possible for him to do. We have no idea if he can do it or not.
|
|
|
|
|
Yes, you're taking it way too literal.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Dunno what the revolutions pack is supposed to be, but yes, you could write your own Windows Explorer-like application.
DutchComputerKid wrote: Or will VB6 make this impossible? VB6 is dead and buried. Download VB.NET, it is free.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
But will that run on Windows XP x64? I have chosen VB6 to make my software compatible with Windows 98 and 95 but I'll need to leave that behind huh?
VB.NET runs on the .NET framework I assume :P
That requires Windows 2000 right?
|
|
|
|
|
You mean it doesn't run on CP/M? I'm heartbroken and disappointed!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
I did make a LOT of MS-DOS software, ask if you're interested.
|
|
|
|
|
At some point you are going to have to dig yourself and your clients out of the 20th century. You are going to be hard pressed to get any support for VB6 and it not supported on current equipment.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I guess you're right. :/
But Visual _____ is MSDN and that is expensive as hell as far as I remember, + can I use it on Windows XP? All my PC's run it cause of SafeDisc bullsh*t that MS removed from All current versions. I'd really like to try VB.NET out seen that I have experience in QuickBASIC (all versions) and VB6, so piece of cake.
|
|
|
|
|
|
Well yeah, but Vs2015 does not work on XP. Only the runtime for 2015 does. And 2010 is removed from Microsoft's site. Soooo what now? I'm kinda lost here unless I buy an old copy or something I think, right?
|
|
|
|
|
|
SafeDisk? That wasn't a Microsoft product at all. That was bullshit copy protection by Macrovision, IIRC.
XP isn't even supported any more. What are you hanging onto and why?
|
|
|
|
|
I'm a retro person, so SafeDisc is required for all of my games to run. That's why. + my recent software that I made in VB6 runs only on NT4,Win2k and XP. Soooo yeah.
Most of my programs that I use on a day-to-day basis are also extremely buggy on Vista and above.
|
|
|
|
|
DutchComputerKid wrote: I'm a retro person An unsupported 32 bit person in a 64 bit environment.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
He writes MSDOS stuff too, so he's a 16 bit person!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
You're going to find that your very unsupported world is shrinking as there are less and less people in your community still supporting it. The most active people here actively discourage using VB6. Though there are still a few other people who still use it they don't show up very often at all.
|
|
|
|
|
Oh nevermind, it requires Win2K for VB.NEt 2003, but what version are you all talking about, 2010 I assume?
|
|
|
|