Click here to Skip to main content
15,882,163 members
Home / Discussions / C#
   

C#

 
Generalcan't receive KeyPress Event in Window Form Pin
zecodela22-Aug-03 15:22
zecodela22-Aug-03 15:22 
GeneralRe: can't receive KeyPress Event in Window Form Pin
MeisterBiber23-Aug-03 8:38
MeisterBiber23-Aug-03 8:38 
GeneralRe: can't receive KeyPress Event in Window Form Pin
Ista23-Aug-03 15:39
Ista23-Aug-03 15:39 
GeneralRe: can't receive KeyPress Event in Window Form Pin
A.Wegierski24-Aug-03 20:07
A.Wegierski24-Aug-03 20:07 
GeneralRe: can't receive KeyPress Event in Window Form Pin
Ista25-Aug-03 3:22
Ista25-Aug-03 3:22 
GeneralDistribute code in separate files Pin
sumeat22-Aug-03 14:01
sumeat22-Aug-03 14:01 
GeneralRe: Distribute code in separate files Pin
J. Dunlap22-Aug-03 14:13
J. Dunlap22-Aug-03 14:13 
GeneralCaret implementation Pin
Lasse Johansen22-Aug-03 11:03
Lasse Johansen22-Aug-03 11:03 
I am making a control, and in that I need to implement a caret. I do have problems with that simple task.

First I just want to be able to place the caret in the end of a custom text. I do like this:

float xpos = gfx.MeasureString(string, font).Width
g.FillRectangle(System.Drawing.Brushes.Black, xpos - 3, 0, 1, this.Font.Height);

There is a problem with this. If I use 333 as the text, it goes fine, but do I use 1111111191, the caret is being placed maybe 5 - 10 pixels from the last 1. It seems to me that the size of 1 is measured larger than it actually is.

What can I do about this problem? Am I attacking this problem from the wrong angle? Is there any implementation already made?

Gooky
GeneralRe: Caret implementation Pin
A.Wegierski24-Aug-03 20:23
A.Wegierski24-Aug-03 20:23 
GeneralRe: Caret implementation Pin
Lasse Johansen26-Aug-03 9:50
Lasse Johansen26-Aug-03 9:50 
QuestionHow to change Back Color of ToolBar Pin
sumeat22-Aug-03 9:39
sumeat22-Aug-03 9:39 
GeneralRemote Object in IIS Pin
Mazdak22-Aug-03 7:23
Mazdak22-Aug-03 7:23 
GeneralRe: Remote Object in IIS Pin
Meysam Mahfouzi22-Aug-03 18:06
Meysam Mahfouzi22-Aug-03 18:06 
GeneralRe: Remote Object in IIS Pin
Mazdak22-Aug-03 19:42
Mazdak22-Aug-03 19:42 
GeneralRe: Remote Object in IIS Pin
Meysam Mahfouzi22-Aug-03 20:05
Meysam Mahfouzi22-Aug-03 20:05 
GeneralRe: Remote Object in IIS Pin
Mazdak22-Aug-03 20:19
Mazdak22-Aug-03 20:19 
GeneralPicture Box Pin
Member 37886922-Aug-03 6:34
Member 37886922-Aug-03 6:34 
GeneralRe: Picture Box Pin
Mazdak22-Aug-03 7:27
Mazdak22-Aug-03 7:27 
GeneralRe: Picture Box Pin
joan_fl22-Aug-03 7:38
joan_fl22-Aug-03 7:38 
GeneralRe: Picture Box Pin
Mazdak22-Aug-03 8:11
Mazdak22-Aug-03 8:11 
GeneralRe: Picture Box Pin
joan_fl22-Aug-03 7:36
joan_fl22-Aug-03 7:36 
GeneralRe: Picture Box Pin
Member 37886924-Aug-03 21:46
Member 37886924-Aug-03 21:46 
GeneralRe: Picture Box Pin
joan_fl25-Aug-03 2:09
joan_fl25-Aug-03 2:09 
GeneralRe: Picture Box Pin
Member 37886924-Aug-03 22:26
Member 37886924-Aug-03 22:26 
QuestionFastest manipulation of numbers(real and integer) in C# ? Pin
Demokritos22-Aug-03 5:19
Demokritos22-Aug-03 5:19 

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.