|
|
Ahhh! Perfect!
Obrigado!
------------
|
|
|
|
|
Contente por poder ajudar!
|
|
|
|
|
IIS is hosting those asp.net objects, execute them in its hosted appdomain,
then get their output back to IIS.
For another example, future SQL server will execute a method in compiled .net stored procedure object and get its result back.
Calling method in hosted object is OK, with IDispatch.
But how can we implement the process of getting result back from hosted objects?
|
|
|
|
|
Hi
I need to bind (or dock) a window to the right side of the screen. Also, no other window (from my or another application) show be able to go over it, maximized or not.
How can i do this ?
Thanks
Heelios
|
|
|
|
|
|
I used BitBlt in a c# program
when I set the Form as the Source
a Bitmap as the destination
It works
but when I set Form as th destination
whatever the bitmap is
It just show as black
why?
|
|
|
|
|
I remember when I did some drawing, it came out black if the bitmaps were of incompatible format. (Maybe the form is 256 colours and bitmap is 32bit? Then 256 colours -> 32bit conversion is easy, but 32bit -> 256 is not. I'm not sure if it converts like that, but it's possible)
|
|
|
|
|
The reason for this is stated in this Knowledge Base article[^].
Using GDI on a GDI+ Graphics Object Backed by a Bitmap
When Graphics::GetHDC() is called for a Graphics object that is backed by a bitmap rather than the screen, a memory HDC is created and a new HBITMAP is created and selected into the memory HDC. This new memory bitmap is not initialized with the original bitmap's image but rather with a sentinel pattern, which allows GDI+ to track changes to the bitmap. Any changes that are made to the memory bitmap through the use of GDI code become apparent in changes to the sentinel pattern. When Graphics::ReleaseHDC() is called, those changes are copied back to the original bitmap. Because the memory bitmap is not initialized with the bitmap's image, an HDC that is obtained in this way should be considered "write only" and is therefore not suitable for use with ROPs, the use of which requires the ability to read the target, like R2_XOR. Also, there is a performance cost to this approach because GDI+ must copy the changes back to the original bitmap.
"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
|
|
|
|
|
Hi,
I want to know something about remote installation of a .NET project(C#). I want my setup files(.exe,.msi etc) to reside on the webserver and when a certain user goes to a certain url that points to the location of the installation files, the online installation starts. If ever u would have come across the online installation of yahoo messenger, well that is what i want to achieve. How can that be done. Does .NET provide any means to do this or there is some java script for this? Please tell me step wise.
|
|
|
|
|
Hi
Is it possible to place normal buttons on the main menu in a form?
We have a form with a std. main menu aligned left. Aligned right we would like to have approx. 10 colored buttons.
So the top of the form should look something like this:
---------------------------------------------------
MenuItem1 MenuItem2 Btn1 Btn2 Btn3
---------------------------------------------------
The best option would be if it is possible to limit the width menu in some way (i.e. so it only fills e.g. half of the width of the form).
I know that such a thing can be done with toolbars using panels, but it doesn't seem possible to limit menu width using panels.
Any ideas if this is possible, and how it can be done?
Thanks, Mads
|
|
|
|
|
|
Yes, but how do I rightalign the menuitems that looks like buttons, when the rest of the menuitems (i.e. the standard text ones) are left aligned?
Thanks for your reply.
Mads
|
|
|
|
|
Is there any way to create help files using .net ? Similar like help workshop tool provided in VC++ IDE 6.0?
VikramS
|
|
|
|
|
I don't know Help Workshop tool, but for creating help files .NET you use "HTML Help" 1.3 or 2.
Mads
|
|
|
|
|
Looking for workarounds ...
Tried to set a picture to larger (wider) than Int16 (i.e., 32,767 pixels), via simple assignment. Value is silently truncated to Int16 size, though it's documented as Int32. Why in the world, you might ask, would anyone want a picture box this big? Do I have the best monitor ever? I have a strip chart (a long graph, like an EKG) to display, in a scrolled panel, and it easily overruns the available space.
.NET Framework v1.1, VStudio 2003. It's for sure a bug (I've tested the heck out of it in VC# and VB).
|
|
|
|
|
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?
|
|
|
|