Click here to Skip to main content
15,887,379 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Three Package and Deployment Questions... Pin
Robert Rohde19-Jan-05 19:54
Robert Rohde19-Jan-05 19:54 
GeneralRe: Three Package and Deployment Questions... Pin
rwestgraham1-Feb-05 11:34
rwestgraham1-Feb-05 11:34 
GeneralFormatting problem in a CRichEditView Pin
Isomorphism16-Jan-05 8:41
Isomorphism16-Jan-05 8:41 
GeneralConfused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
no_spoon15-Jan-05 5:29
no_spoon15-Jan-05 5:29 
GeneralRe: Confused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
Robert Rohde15-Jan-05 19:25
Robert Rohde15-Jan-05 19:25 
GeneralRe: Confused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
no_spoon16-Jan-05 10:52
no_spoon16-Jan-05 10:52 
QuestionHow to rotate button text 90 degrees? Pin
pyanfur14-Jan-05 8:57
pyanfur14-Jan-05 8:57 
GeneralProblem drawing outline of Regions. Pin
Morrgan14-Jan-05 3:07
Morrgan14-Jan-05 3:07 
Hi,

I have a couple of Region objects which I want to draw the outline of on top of a picture which resides inside a picture box.

In the event handler for the picture box I perform the following code:

Graphics g = e.Graphics;

foreach (Region region in regions)
{
IntPtr hdc = g.GetHdc();
IntPtr hBrush = CreateSolidBrush(ColorTranslator.ToOle(Color.Black));

FrameRgn(hdc, region.GetHrgn(g), hBrush, 1, 1);

DeleteObject(hBrush);
e.Graphics.ReleaseHdc(hdc);
}

When calling FrameRgn I receive the following error message:

'System.InvalidOperationException'
The object is currently in use elsewhere.

Any help would be greatly appreciated!

GeneralHelp pls with CScrollView and CMetaFileDC Pin
Dimitris Vikeloudas14-Jan-05 0:45
Dimitris Vikeloudas14-Jan-05 0:45 
GeneralCalling CDialog C++ code from C# Pin
gabnicu13-Jan-05 23:49
gabnicu13-Jan-05 23:49 
GeneralTypes system in .NET Pin
Paul Selormey13-Jan-05 18:58
Paul Selormey13-Jan-05 18:58 
GeneralWeb service causes WinForm design mode problems Pin
Jon Rista13-Jan-05 15:52
Jon Rista13-Jan-05 15:52 
GeneralStrange problem with open/save file dialogs Pin
satorical13-Jan-05 12:13
satorical13-Jan-05 12:13 
GeneralRe: Strange problem with open/save file dialogs Pin
JoshWilliams5-Jan-23 10:42
JoshWilliams5-Jan-23 10:42 
QuestionMake windows go standby? Pin
Søren Alsbjerg Hørup13-Jan-05 8:39
Søren Alsbjerg Hørup13-Jan-05 8:39 
AnswerRe: Make windows go standby? Pin
Colin Angus Mackay15-Jan-05 12:05
Colin Angus Mackay15-Jan-05 12:05 
Generalhelp on openwith dialog Pin
deepakskumar12-Jan-05 21:20
deepakskumar12-Jan-05 21:20 
Generalmultiple frames in VS Pin
brian5512-Jan-05 16:55
brian5512-Jan-05 16:55 
General.NET 2.0 Socket.SupportsIPv6 Pin
Matt Newman11-Jan-05 11:28
Matt Newman11-Jan-05 11:28 
GeneralRe: .NET 2.0 Socket.SupportsIPv6 Pin
Mike Dimmick12-Jan-05 12:01
Mike Dimmick12-Jan-05 12:01 
QuestionConfused: Bytes Instead of float or Int? Pin
bigals11-Jan-05 11:27
bigals11-Jan-05 11:27 
AnswerRe: Confused: Bytes Instead of float or Int? Pin
Robert Rohde11-Jan-05 19:06
Robert Rohde11-Jan-05 19:06 
GeneralRe: Confused: Bytes Instead of float or Int? Pin
bigals12-Jan-05 11:08
bigals12-Jan-05 11:08 
GeneralProtecting DLL's Pin
bigals11-Jan-05 9:18
bigals11-Jan-05 9:18 
GeneralPropertyGrid Control - Displaying Name property. Pin
Nigel Savidge11-Jan-05 1:17
Nigel Savidge11-Jan-05 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.