|
Can i make the entire line got highlighted when go to that line .
e g:
if u click the error line in log window as it is highlighting the entire line .
Thank You
|
|
|
|
|
hiremath71 wrote: Can i make the entire line got highlighted when go to that line .
What do you mean by that? Why type of control are you talking about. There are a number of controls that have a property that allow you to highlight an entire line.
|
|
|
|
|
hi,
i have created a editor a using a RichTextBox Control and i have implemented a go to functionality .
I wanted to highlight a entire line when go to that line.
E g:
when u compile a program if any compilation error occures if u click that line from log window that will take to the corresponding line where the error was occured.
Help me
Thank u
|
|
|
|
|
If you are using a RichTextBox and already moved the SelectionStart to the beginning of the line to be selected then the following should work:
richTextBox.SelectionLength = SelectionLength.Lines[lineNumber].Length;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi,
thank u for u r response but i am not getting after i.e
RchtxtBx.SelectionLength=Selection
After equal sign i am not getting the option of selectionLength.
Thank u
|
|
|
|
|
Ups, I meant:
richTextBox.SelectionLength = richTextBox.Lines[lineNumber].Length;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thank you sir
it is working
With Regards
Prasad
|
|
|
|
|
i downloaded a code snippet from this site...the code snippet was to convert an rgb image to grayscale... i was able to understand the snippet but there is a line that is bothering me ... would any one plz explain it...
int offset=bitmapdata.stride-image.width*3;
i tried it on an image and found out that it returns the same as
int offset=image.width*3;
and yeah if bitmapdata.stride returns the scan width and image.width also returns the scan width then how come bitmapdata.stride-image.width*3 be equal to image.width*3.... plz help and yeah tell what bitmapdata.stride actually does....
haseeb
|
|
|
|
|
It is not the same! Stride is a scan width. If you have bitmap width 49 the bitmap.stride is 150 but your offset is 147. Of course if you use 24bpp colour format.
|
|
|
|
|
hello... sir... thanx for the reply... sir i still have a problem... for 49 width bitmap the scanwidth is 150... how come... it should be 147. how can it be 150? what is actually the offset... plz reply
haseeb
|
|
|
|
|
Sorry, my mistake, the scanwidth of 49 width (in pixles) picture is not a 150 but 148, but still is not a 147. All time we talk about 24bpp format, that means you have 1 byte per each component of RGB system. 3*49 is 147 but 147 is not a multiple of 4, 147 mod 4 is different than 0, the nearest number which is multiple of 4 is 148 (148 mod 4 = 0). I don't know exactly why, but is something with memory alocation.
|
|
|
|
|
i want to use a custom font in rich text box. How i will do that?
|
|
|
|
|
Hi,
I expect rtb.Font to define the default font (used when adding text),
and rtb.SelectionFont to set the font for the current selection (if any).
So if you want your one font for all text in the rtb, set rtb.Font before loading the rtb
with text; otherwise modify the font for (parts of) existing text by selecting and SelectionFont.
Luc Pattyn
|
|
|
|
|
Hello all,
I’m trying to implement a fairly simple bitTorrent client. A library would make my work much easier and until now I can only find FTKernelAPI (link). Do you guys know of any other library?
Thanks in advance,
Naimi
|
|
|
|
|
tmp0 wrote: Do you guys know of any other library?
BTsharp[^]
|
|
|
|
|
|
Thanks Dave,
seems like exactly what I wanted.
|
|
|
|
|
Do you know of any other library?
|
|
|
|
|
If I did, I would have mentioned it.
|
|
|
|
|
Hi,
I have just installed the visual studio 2005 , previously i was using the VS 2003 .. I have some projects that use the sql server database.. How can I use the previously created database in SqlServer Desktop Edition in the Sql Server 2005 Express Edition?
regards.
Q@!$3r
|
|
|
|
|
what is the default login for sql server Express Edition?
Q@!$3r
|
|
|
|
|
i'm not sure what the admin password is but a windows admin on the box should be able to change it.
I don't think the old tools work on the new server version, go and get SQL Server Management Studio Express. You'll soon learn that when it comes to admin tools Newer is not always better if you didn't know that already
I'm not sure how you upgrade from 2k3 to 2k5 but i guess backup from one and restore to the other will work.
Russell
|
|
|
|
|
Hi!
im working on GSMComm library which manages SMS related tasks in GSM mobiles.
im not able to connect to mobile through DKU-5 cable, following execption is ocourred...
"A call to PInvoke function 'RS232!RS232.Rs232::EscapeCommFunction' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature."
plz tell me wats the reason of this error. is it a mobile fault or im missing sumthng...
Thanks
Affan Ahmad Toor
|
|
|
|
|
Hi,
Question... When i get my screensaver process, using getprocessbyname()
and then want to get the MainwindowHandle of it it alwas returns zero.
Anyone any idea why this is? even a screensaver has a form created..as main (for as far i can see in my screensaver code.)
I have found that when UseShellExecution is true, the function is not available and returns zero. And yes it is true, but why?
renaming the extension scr to exe and starting it manually gives the same problem..
thx
Kurt
|
|
|
|
|
hi every body,
me facing an problem in making a form as child form of mdi form.
on the click event of button in mdi form
i am able to create child from using
form1.MdiParent = this;
form1.show();
but me want to make (form2 as) child form on the click event of button in form1(form1 is already child form )
which i m unable to do.
Please help
Regards
rahul saini
|
|
|
|