Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralChanging the paper size at run time Pin
Yaron K.29-Dec-03 19:32
Yaron K.29-Dec-03 19:32 
GeneralRe: Changing the paper size at run time Pin
Mazdak29-Dec-03 23:42
Mazdak29-Dec-03 23:42 
GeneralRe: Changing the paper size at run time Pin
Mehdi Moshtaghi30-Dec-03 0:27
Mehdi Moshtaghi30-Dec-03 0:27 
GeneralRe: Changing the paper size at run time Pin
Yaron K.30-Dec-03 2:25
Yaron K.30-Dec-03 2:25 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart30-Dec-03 5:35
protectorHeath Stewart30-Dec-03 5:35 
GeneralRe: Changing the paper size at run time Pin
IntegraSoft31-Dec-03 9:37
IntegraSoft31-Dec-03 9:37 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart31-Dec-03 9:40
protectorHeath Stewart31-Dec-03 9:40 
GeneralRe: Changing the paper size at run time Pin
IntegraSoft31-Dec-03 9:46
IntegraSoft31-Dec-03 9:46 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart31-Dec-03 11:04
protectorHeath Stewart31-Dec-03 11:04 
GeneralRe: Changing the paper size at run time Pin
IntegraSoft1-Jan-04 7:50
IntegraSoft1-Jan-04 7:50 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart1-Jan-04 9:29
protectorHeath Stewart1-Jan-04 9:29 
GeneralRe: Changing the paper size at run time Pin
Mazdak30-Dec-03 6:26
Mazdak30-Dec-03 6:26 
Generalinterop - array of structs with embedded strings Pin
lavinder29-Dec-03 17:45
lavinder29-Dec-03 17:45 
GeneralRe: interop - array of structs with embedded strings Pin
Heath Stewart30-Dec-03 5:26
protectorHeath Stewart30-Dec-03 5:26 
Generalserial por comunications Pin
pedropj29-Dec-03 17:00
pedropj29-Dec-03 17:00 
GeneralRe: serial por comunications Pin
Heath Stewart30-Dec-03 5:16
protectorHeath Stewart30-Dec-03 5:16 
GeneralNavigation in multiple forms Pin
Hayat29-Dec-03 16:51
Hayat29-Dec-03 16:51 
GeneralRe: Navigation in multiple forms Pin
Mehdi Moshtaghi30-Dec-03 0:37
Mehdi Moshtaghi30-Dec-03 0:37 
GeneralRe: Navigation in multiple forms Pin
Heath Stewart30-Dec-03 5:10
protectorHeath Stewart30-Dec-03 5:10 
GeneralRe: Navigation in multiple forms Pin
Hayat31-Dec-03 16:12
Hayat31-Dec-03 16:12 
GeneralRe: Navigation in multiple forms Pin
Mehdi Moshtaghi31-Dec-03 21:52
Mehdi Moshtaghi31-Dec-03 21:52 
GeneralThis is probably a silly question, Pin
Nick Seng29-Dec-03 16:41
Nick Seng29-Dec-03 16:41 
GeneralCut, Copy, Paste Event needed. Pin
Nicholas Cardi29-Dec-03 12:00
Nicholas Cardi29-Dec-03 12:00 
GeneralRe: Cut, Copy, Paste Event needed. Pin
je_gonzalez29-Dec-03 13:33
je_gonzalez29-Dec-03 13:33 
I ran into this and solved it in a funny way...

Instead of using the TextBox control, I subclassed the RichTextBox to mimic an "Enhanced" TextBox.

In the subclass set the Multiline property to false, and the height to 20. This essentialy makes the RichTextBox look like TextBox.

Now you can hook into the SelectionChanged event and check the Can<xxx> properties to enable/disable your buttons. Call the SelectionChanged handler from the Enter event for the object to handle the initial setup.
GeneralRe: Cut, Copy, Paste Event needed. Pin
Heath Stewart30-Dec-03 5:03
protectorHeath Stewart30-Dec-03 5:03 

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.