Hi, I'am trying 2 create a textbox dynamically in a windowsform application... I want a textbox 2 b created while clicking a button in the form...And it has 2 b loaded thru code rather than thru design ... I tried but was not able 2 create the control...Cud u pleez get me the code 4 this one..??? Thanx n Regards, MMX
mmxguy
Posts
-
Creating a textbox dynamically!!! -
Mouse pointer got arrestedHi, I'am developing an image viewer in which i got an image inside a picture box.On top of the image i'am drawing a rectangle.But once delete the rectangle drawn on the image the mouse pointer is getting arrested to the boundaries of the image.This problem comes when i delete the image using the context menu...The code i use 4 it is given below... foreach (Shape s in SelectedShapes) { Shapes.Remove(s); } SelectedShapes.Clear();//Clear the arraylist Invalidate(); This is not happening when i'am deleting the shape using the keyboard.But what is confusing me is that i have clled the same code as given above inside that also..The only diff is 'am checking whether the key press is DELETE or not. This problem also gets solved when i click once on the image after deleting the shape .. Kindly help me MMX
-
How to retrieve a graphics object from an image object????Then how do u retrieve the graphics handle of an image object which is having an indexed pixel format!!!! Regards, Mmx
-
How to retrieve a graphics object from an image object????I'am trying to retrieve a graphics object from an image object using the piece of code given below Graphics GDC = Graphics.Getimage(objImage) But it is throwing the exception...graphics cannot b retrieved from an image having INDEXED PIXEL FORMAT.Cud u tell me the reason y??? Nature of my work: I'am trying 2 draw some shapes on 2 an image in a picturebox control.After drawing the image i need 2 rotate the image.While rotating i need my drawings also 2 b rotated. I have tried it with all sort of transformations and then also itz not working.So i thought of retrieving the graphics object from the image and draw the shape(rectangle) using that so that while i'am rotating the image the drawing is also rotated. Pleez help me as i'm less xperienced in C# Regards, MMX
-
Image Rotation in C#Drawing on the image is not the issue...That is done using the graphics object only...But while the image is rotated the drawings position is not changed or rotated.It lies in the same place...while image is rotated... Also while creating graphics from image an exception is popping 'coz it is saying "creating graphics object from image that has indexed pixel format is not possible " I need some mapping modes equivalent to MM_HIENGLISH,MM_HIMETRIC in VC++ in C#.NET...Also help me a bit with code... Kindly help me out Barry... Regards, MMX
-
Image Rotation in C#Dear Sir/Madam, I'am trying to rotate an image in a picture box control in C#.Along with that i'am drawing a rectangle on to the image for highlighting certain parts of the image.While rotating the image is getting rotated properly but the drawing which i have made on the image is not getting rotated.I have tried with rotate and rotateat methods but they just rotate the drawing but not with respect to the image. My requirement is that while i'am rotating the image, the drawn rectangle highlighting certain parts also should get rotated and highlight the very same area in the rotated form. Kindly help me, Regards, mmx
-
How to highlight text as hyperlink by searching for itHI, I'm developing a search engine which should provide search based on the string input. I have to search all the pages in my site and highlight the matching string as a hyperlink. so that if i click on the hyperlink i can move to the corresponding page. More precisely a search as if google is providing. Only difference is google is searching through out www but i want to search just in my site..Please send me the code or some ideas based on this. regards Mijo Thomas
-
How to replace a string while retrieving data from an access database in ASP. NETHi, How to replace a string while retrieving data from an access database in ASP. NET. I wrote the query as Select replace(empname,"tt","mm") from employeetable; but its giving the error as undefined function pls do reply for this regards mijo thomas