|
Size should be Int32, not Int16 (BTW, it may be that the Bitmap truncates it, not the Size struct). However, I think the graph should be kept as numbers, not a bitmap. Re-draw it from the numbers every time the PictureBox is painted.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Size seems to be masquerading as a System.Int32 struct. Try, in the VS properties, sizing the width of a button to >Int16 (33,000, for example). Boom, silent truncation, utterly undocumented (well, as far as I know; MSDN is *huge*
If I understand your reply correctly, it sounds very like a description of the approach I originally took with this control, before rewriting. I had buttons that did a scroll-left, scroll-right, and so on, and kept track, based on zoom and so on, of what the leftmost and rightmost points had to be, redrawing only that section. The problems with that approach (for me) turned out to be:
1. Speed: I'm writing for a rather slow target platform ...
2. I want to use the built-in scroll bars, rather than rolling my own.
3. I want smooth scrolling (back to number 1 here, no?). I get that from the picture-box, but at the expense of showing only 32767 pixels worth of points.
Thanks,
Ben
|
|
|
|
|
Ben-hadad wrote:
1. Speed: I'm writing for a rather slow target platform ...
Draw it on a bitmap only the size of the visible area of the picture box, then draw the bitmap onto the picture box using DrawImageUnscaled(). This will speed things up considerably.
Ben-hadad wrote:
2. I want to use the built-in scroll bars, rather than rolling my own.
That's easy - just set the AutoScrollMinSize to the size of the graph.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
|
I was trying to install a program onto another computer, but the setup was aborted because the target computer did not have the .NET framework.
During deployment, there was a warning that said
"WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup."
I've located that dotnetfx.exe on the component CD, but DOES ANY COMPUTER THAT I WISH TO INSTALL MY APPLICATION REQUIRE THE INSTALLATION OF THE .NET FRAMEWORK?
If so, what is the proper procedure on including that file into my setup?
also, is there anyway around installing the .Net Framework.
Thank you for your time.
The Jazz Master 6000
DJ Badknees
Parma Grind Crew - www.geocities.com/parmagrindcrew
|
|
|
|
|
The way to work around the dotnetfx.exe install is to not use .NET.
Of course the Framework has to be on each client you want to run your code on.
|
|
|
|
|
So...Would I have to include just the .exe file? Or would you have to actually include the whole cd as well?
The Jazz Master 6000
DJ Badknees
Parma Grind Crew - www.geocities.com/parmagrindcrew
|
|
|
|
|
In order to run a .NET application on a computer, the framework must be installed. Microsoft offers a reditributable form of the .NET framework on their website (search for framework redistributable). Also, the framework redistributable can be incorporated into your setup file if you created it with VS.NET. Just look around for an option to include the framework redistrib.
-- Adam
"If you can't beat your computer in chess, try kickboxing"
|
|
|
|
|
I was wondering if there is any way to customize the debugger tooltip that pops up when you hover over a variable in the ide. An example of this is the length property of an array. I am pretty sure I have seen this before. I just can't remember where. Or is the debugger just hardcoded for this on simple types and certain complex types?
Thanks,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Nathan Blomquist wrote:
Or is the debugger just hardcoded for this on simple types and certain complex types?
I think it is hardcoded as I have searched long and far for a solution to this "problem". You would think some Attribute would allow you to set it, but NO. Lame.
leppie::AllocCPArticle(Generic DFA State Machine for .NET);
|
|
|
|
|
Chris or someone from Microsoft.
Can we get any feedback / indication on whether the .net framework library 2.x is going to contain a lightweight 21st century gui subsystem ???
you know with interfaces and oo design, MVC paradigm, extendable, threadsafe, basic html / rtf rendering for all controls.
you know like java/swing but better
|
|
|
|
|
Nice oxymorons.
Anonymous wrote:
lightweight
Anonymous wrote:
you know with interfaces and oo design, MVC paradigm, extendable, threadsafe, basic html / rtf rendering for all controls.
And
Anonymous wrote:
java/swing
Anonymous wrote:
21st century gui
while (!sorted)
;
|
|
|
|
|
I am not suggesting that java/swing is good just that it is way ahead of the 1980's windows api's being regurgitated to us yet again in .NET
|
|
|
|
|
What you want will be on Longhorn, not on .net framework
|
|
|
|
|
So in 2 years time we all abandon .net and start coding to a new api but only on longhorn. Or do we wait another 2 years (lets see that would be 2007) until .net wraps the new longhorn aero api. Give me a break. Why would / should anyone put up with this.
My original question still stands.
|
|
|
|
|
Hi all
OK , after various plugin install uninstalls, VS.NET is pretty much wasted. I dont feel like trying a "repair" as it takes the same time (2hrs??) and that might not even work. Anysuggestions just to reset the VS.NET registry entries?
CHeers
leppie::AllocCPArticle(Generic DFA State Machine for .NET);
|
|
|
|
|
Have you used a registry cleaner before? Something like : jv16 PowerTools [^] might do the trick.
-Nick Parker
|
|
|
|
|
Nick Parker wrote:
Have you used a registry cleaner before?
The problem really is things (such as class wizards) were reset by this one add-in and since uninstalling the app, now wizards work, except custom ones. Maybe ill dump all the CD on HD and let it install overnite.
leppie::AllocCPArticle(Generic DFA State Machine for .NET);
|
|
|
|
|
I have to convert a beautifully laid out VC++ 6.0 application with many .dsp and lots of support folders for each, to dot-net. Is there a way to easily do the entire app as a whole or do I need to open each and every .dsp, one at a time, into a blank solution and then include all the support folders somehow?
Perhaps there is a tutorial somewhere on how to do the conversion properly?
Thanks
Jonmart
|
|
|
|
|
If you open a dsp/dsw, VS.Net will ask you to automatically convert it.
So open your main workspace file with all the projects and say "Yes to all" and that should be it.
|
|
|
|
|
How can I install the compact framewoek to a different directory on CE (not /windows which is read only)
.Confused
|
|
|
|
|
Hi,
Can anyone please tell me a link to some kind of documentation on how to use the Regex class? How to make the pattern, group names and the other stuff?
Thanks
|
|
|
|
|
|
I want to let my app support XP theme,since I use .Net 1.1 so I and the Application.EnableVisualStyles();
like this
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}
but after that,my Treeview lost the item image!
Why?
Thank you!
//I've got it.
Someone in MSDN Newsgroup to do this:
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new Form1());
It works. But I still don't know why.
Anyone can help?
|
|
|
|
|
Is there a Delphi like Application.ProcessMessages in .Net Framework.
Which in a very long loop, the Application.ProcessMessages can process the Messages in the queue. So it is a easier way to respond to the user without having to use multi-thread.
Thank you!
|
|
|
|