publicpartialclass Templates_Default : System.Web.UI.Page
protectedvoid Page_Load(object sender, EventArgs e)
Bitmap myBitmap = new Bitmap("D:\\WebSite1\\image\\egy111.jpg");
Graphics g = Graphics.FromImage(myBitmap);
g.DrawString("My\nText", new Font("Tahoma", 1000), Brushes.Red, new PointF(340,500));
why this code don't work in web application
I´m looking for a implementantion or a code or even a Tip to implement one Autocomplete (intellisense) like visual studio. For example:
If you tipe DT in caps letters in visual Studio they suggest DateTime and any other item wich contains D in begining and T in the middle. in capital letter. It´s amazing, I really want to put this in a WindowsForms application.
Sorry no, but it's just a question of using the interop features to read and rewrite the file, while removing or changing certain information. You could try a Google search for articles on the subject.
One of these days I'm going to think of a really clever signature.
I have a textbox with autocomplete set to suggest.
I want to execute my code in the Textbox_KeyDown event on the enter key,
but enter key is also invoked when I select an item from the text box autocomplete items.
That is not what I want.
I want the selected item in the textbox and then execute my code.
privatevoid opdrverwTextbox_KeyDown(object sender, KeyEventArgs e)
if (e.KeyData == (Keys.Enter) && !string.IsNullOrEmpty(opdrverwTextbox.Text))
//here is the problem. In debugging if I select from dropdown// with mouse click: e.KeyData = LButton | MButton | Back
e.Handled = true;
a lot of other code........;
opdrverwTextbox.Visible = false;
opdrverwLabel.Visible = false;
I don't want to set autocomplete to suggest-append.
is there a workaround for this?
I am developing an c# application and
it uses many .net assemblies. For some
reason i need to move a dll to program
files folder and that dll depends on
many other assembly present in the
application folder and this makes me to copy all dependent dlls to programfiles
folder. This will cause duplication of dll
in both application and programfiles
directory. I know that moving
dependent assembly to GAC will resolve
this issue but i shound not put many assembly in GAC. So please suggest a
way to make .Net dll to reference its
I am not sure whether i have confused.
Lets put that again, during deployment of my application i need install a particular dll to program files sub directory (eg. C:\program files\test). But my application will be in different directory. Since the dll Installed away from application directory and it uses/references many dlls present in application directory. How do i make that dll to pick dependent dlls from application directory. I dont want to move to GAC. Hope its clear.