blah blah blah is here! blah blah » Close

0
votes
1 answers

newkirk: Use of unassigned local variable 'frnSkt'

You never instantiate your arrays so they are unassigned: int[] myArray = new int[6]; then you can assign values to your array myArray[0] = 10; if you don't know the size of your array beforehand you should be using ArrayLists. ArrayLi ...

0
votes
1 answers

Taking Screnshots

Any ideas on how I can take screenshots of applications running in Windows XPs "Command Prompt" in full screen - I've tried using the following interops: [DllImport("user32.dll", CharSet=CharSet.Ansi, ExactSpelling=tr ...

0
votes
1 answers

Window not modal when called with ShowDialog?

I've got a window that I'm opening with ShowDialog( parentRefernce ) and its not modal for some reason. I can move the parent form around, click buttonss on the parent. Execution of code on the parent stops until I close the new window, b ...

0
votes
1 answers

Designer support for Enums

How do I get the designer to reckognise the existence of an Enum that is used to set a property of a class. Right now I define the enum in the class, do I need to stick the definition elsewhere?

0
votes
1 answers

ListBox's OnPaint

I'm trying to override a ListBox's OnPaint event so I can do some work with the controls borders. I've successfully overriden many other controls paint events, but for some reason the ListBox's OnPaint doesn't seem to do anything, and I ca ...

0
votes
1 answers

Can't "find" a refence, but still compiles.

Visual Studio keeps telling me that: An exception occurred while trying to create an instance of NS.Message. The exception was "File or assembly name Tools, or one of its dependencies, was not found.". However the reference is t ...

0
votes
1 answers

Embedded Fonts and Textboxes

I'm trying to use an embedded font in an application using a method almost exactly like this: http://www.cs.arizona.edu/classes/cs386/spring03/handouts/30.html It works great except for TextBox controls. I can set the font to some other ...

0
votes
1 answers

Error starting process

I've got a process I'm trying to start that has just started giving me the following exception: An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll Additional information: Access is denied This is ...

0
votes
1 answers

Problem adding user control

I have a user control that I've placed on a form using the designer, however when I try and run the application and load that form the application freezes trying to add the control. I have the control on other forms and those work fine and ...

0
votes
1 answers

Control Border's Cursor

Is it possible to change what cursor is displayed when you are over a controls border? What I mean is that when you set a custom cursor for a form and a control if that control has a border (like a listbox, or a textbox) then the cursor re ...

0
votes
1 answers

Creating a Cursor from Bitmap

I've managed to create a new cursor from a bitmap with the following code: Bitmap b = new Bitmap( "image.png" ); this.Cursor = new Cursor( b.GetHicon() ); However the cursor image is centered on the mouse location. I'd l ...

0
votes
1 answers

Designer support for a Private Font Collection

Is it possible to set the font for a control to a font family in a private font collection through the designer? Or will I need to set up some kind of init function that goes through and changes to fonts of all my controls?

0
votes
1 answers

Need help with Hook

Well, I think my Alt Tab trap needs to be accomplished with a keyboard hook. However I'm not as well versed in hooks as I should be and I can't figure out how to identify when the key combination I want has occured. Here's what I have so ...

0
votes
1 answers

Capture Alt Tab

I'm trying to capture a user pressing Alt Tab so I can do my own event processing before the OS moves to the next application, I've looked at overriding several of the Process events but haven't found one that works. Any thoughts?

0
votes
1 answers

Focus Issue

I've got a user control I need to have focus in order to catch key stroke events. When the control is added I give it focus and everything works. However, when I hit a button on the user control the ProcessDialogChar event never fires, I' ...

Feedback