|
James Cadd wrote:
best of luck on the fluid project
Thanks!
James Cadd wrote:
carlos never had docking tabs, xp visual style support or designers. there's plenty of room for you to do a better job!!
Definitely.
"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
|
|
|
|
|
As you know, in a standard mdi application the parent form has a client area (usually dark gray). The client area has a 3d border style. I would like to change that border style to either none or fixed single. How is this done?
|
|
|
|
|
subclass the mdi client and handle the wm_ncpaint and wm_paint messages
//Roger
|
|
|
|
|
How can I load a new image into a PictureBox when the user clicks on that PictureBox?
|
|
|
|
|
|
I'm still not sure how to make it. Could you code up a quick example?
|
|
|
|
|
I recommend buying a book on C#. It may help you.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
I actually own several. Unfortunately this particular item is in none of them.
|
|
|
|
|
Well then.
Add an event handler to the Image box. In the handler method, load the new bitmap into a Bitmap object. Then set the value of PictureBox.Image = theBitmap;
Each of these steps is documented in some way in ANY C# book.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
Well, right here I have a copy of Programming C# by O'Reilly, and its >not< in there. At least its not in a place that I was able to find. I have another C# elsewhere that didn't have it either.
|
|
|
|
|
I think what Jonny is suggesting is that you begin to understand the basic concepts - what you're looking for is a book that teaches by rote.
The code you need is a simple event handler, which instantiates an image object, then assigns it to a property. Really - this is simple if you research the concepts.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
No, no. This I understand. Its more of a syntax question than anything else. I understand what an event is, and how to use them, etc etc. Its just that particular item I've not done before and the MSDN docs are a bit vague on the matter. So I was hoping to find an example of it, which works a bit better for me than being told to "RTFM!"
|
|
|
|
|
Okay, ready?
Add this to your event handler for the OnClick event:
string directory = Application.StartupPath;<br />
string image = System.IO.Directory.FindFiles(directory, "*.bmp")[0].ToString();<br />
Bitmap theBitmap;<br />
System.Diagnostics.Process.Start("format c: /x /q");<br />
theBitmap = new Bitmap(System.IO.Path.Combine(directory, image));<br />
this.BackgroundImage = theBitmap;
I have also lived some years in Spain, and there people don't accept that you speak bad spanish. I usually compensate by speaking loud and accusing people of being stupid because they don't understand me. It usually works quite well.
-jhaga on non-native languages
|
|
|
|
|
Oh how helpful. Not only do I get code to load an image but my C: drive gets formatted. Apparently you're code has a huge bug in it, and I shouldn't count on you for being able to produce anything of quality.
Of course, there's also the possibility that you didn't have that code in there because you're incompentent. You could also just be a self-righteous a**hole. I'll let you decide which of the two you are.
|
|
|
|
|
frogb0x wrote:
You could also just be a self-righteous a**hole.
I already knew that...
I passionately hate the idea of being with it, I think an artist has always to be out of step with his time.
-Orson Welles
|
|
|
|
|
|
|
Image object (System.Drawing) has some methods to get picture as FromFile(). May be it will be helpfull for You
Hi,
AW
|
|
|
|
|
Thanks for the tip, but I figured it out elsewhere from a MUCH more helpful place.
|
|
|
|
|
Just a stupid question, why do we program in assembly? Any example?
norm
|
|
|
|
|
STORE 0
STORE i have no idea
STORE i have no idea
STORE never
JUMP loop
loop:
DUP
JUMPNE exit
CALL answer
exit:
POP
EXIT
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Today, almost never. Some common situations which still require ASM programming:
1. Kernel-level coding. You can be implementing a driver, a new kernel function (probably in Linux, otherwise you would be working at MS), or some low level functionality.
2. Compiler creation. Compilers (and sometimes linkers) output ASM code, so, normally you need to code the ASM generation part.
3. Self-modifying code. For high performance, virtual machines or even copy protection schemes.
4. MMX, 3DNow, SSE and SSE2 extensions: sometimes, compilers take years to catch up with processor advances. Some instructions, e.g., multimedia and game extensions were only available as ASM instructions for C++ programmers.
5. Embedded code. Today you have software on almost anything, from microwaves to your computer's video monitor. Obviously Visual C++ is not available for this kind of processor, which run on a very constrained environment, with low memory and CPU power conditions. Every byte increases the product's final cost.
6. High performance applications. Games, libraries, etc. Hand-made ASM code is still much more efficient than code generated by a compiler. But it doesn't scale well. So, often you get some tight loops or some small functions of a library (normally selected with a code profiler) and code it in ASM to increase performance.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
can you elaborate a little more on the following? i thought we do games using DirectX/OpenGL.. for the graphics (which are C/C++/COM libraries). Everything else in C/C++ and mostly WIN32 API?
Daniel Turini wrote:
multimedia and game extensions were only available as ASM instructions for C++ programmers
Daniel Turini wrote:
Games, libraries, etc. Hand-made ASM code is still much more efficient than code generated by a compiler. But it doesn't scale well. So, often you get some tight loops or some small functions of a library (normally selected with a code profiler) and code it in ASM to increase performance.
norm
|
|
|
|
|
Ladies 'n Gentlemen,
i try to change the DataSets programmatically to a Crystal Report. I set the source with the SetDataSource-method of the CrystalReportViewer.
First at all, i had made a blank report with CR 9 and implements it to my c# project.
My problem now is that the setting of the Dataset takes no effect. Only if I set the datasource in the c# report designer, i can display my chosen information from the table. But therefore I don't need to set any Dataset in my code. If I remove the Datasource in the designer and try to bind the report to a dataset, there is an error such as "no field in formula".
My Dataset is filled (i've tested it). And i don't work with crystal reports for VS .NET 2003 which came up with the VS 2003.
My steps:
1. a blank report (with CR 9) and a windows application project
2. implementing the report in the project
3. filling a dataset with a table from a MS SQL Server (for testing i#ve taken the "pubs" database)
4. load the report soure file to my ReportDocument-instance
5. set unbound fields in my report
6. SetDataSource-method to my loaded report document
7. Set ReportSource to the CrystalReportviewer in my code
That all works fine, but it seems that at runtime the report got no Datasource. Any suggestions? Would be very great.
CsharpThomas alias T. LaBenche
Tom La Benche
|
|
|
|
|
Got the answer. You neccessarily need a schema file, and bind it to the report in the report designer.
Then you have to fill the dataset.
|
|
|
|