|
Depends on the request that the client made. You might want to read this[^] to understand the various requests and responses possible.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Dear All,
Please Help
Iam new to developing bilingual applications,now iam trying to develop a windows bilingual application English And Telugu.Iam facing a big problem with digits and date, I want to display the digits in native language by using culture info,but nothing will happen!if I change the setting in control panel digits change in native lang.How can i do this with out changing setting from control Panel.
|
|
|
|
|
Hi,
I'm currently downloading whole e-mails from a POP3 mail server. To do this procedure I'm using commands found in:
http://pages.prodigy.net/michael_santovec/pop3telnet.htm
Is there a way to extract ONLY the e-mail body from a whole mail using Regular Expressions or another method using C#?
Thanks.
|
|
|
|
|
hi,
i am developing a multimedia web site using asp.net and C#. i need to play a song on the web without downloading or buffering it in the client side.it will be real time streaming and playing. there will be some buttons like "play", "Next" and a progress bar below the song list with real time interactivity.
can any body help me in this regard giving detail guideline, links and sorce code if possible. i will be very greatful to u.
Thanx
Shafiq
|
|
|
|
|
Hello.
I made a class that inherits from Form and then when a user presses a button several Labels will be added. I also want to draw some lines and stuff to be included with the labels. I want to save it as filename.bmp on C drive, open and print out. How do I go about doing that?
I tried the following but to no avail:
Bitmap bm = new Bitmap("picslabel.bmp");
bm.Save(@"C:\picslabel.bmp", ImageFormat.Bmp);
I don´t get any error messages when I compile but the computer does not write what I created on C drive.
Is there some way I can accomplish this?
Thanks,
F
rfger
|
|
|
|
|
What exactly do you want to do? Save the form as a bmp?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks for helping me.
My idea was to let the program create some labels when a user presses a button, draw some shapes and then save the labels and what was drawn in a document that can be opened in Paint (.bmp). After the user presses the button he/she can close the program and open a file (bmp) on C drive created by the program and print out the results.
I have been unable to make this happen
Regards,
Friðjón
F
|
|
|
|
|
So essentially you want a screenshot of the application? I'm afraid you can't do that using just C#, you'd have to write some MC++ code for it. This[^] might help you get started.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
if you only want the contents of the program to be displayed, then it is possible using only C#.. you should try making a compromise and declaring the labels as picture boxes.. anyway i don't understand why you don't create a print function right inside the program.. ex File>>Print toolbar.. it would be much easier and you could forget about the bitmap part because the Form.Print() function prints everything currently displayed in the program...
Ravenash
|
|
|
|
|
The code below works for me.
Bitmap bmp = new Bitmap(w,h,PixelFormat.Format24bppRgb);<br />
float res = 300f;
bmp.SetResolution(res,res);<br />
bmp.MakeTransparent(Color.White);<br />
Graphics G = Graphics.FromImage(bmp);<br />
G.PageUnit = GraphicsUnit.Pixel;<br />
G.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;<br />
G.CompositingQuality = CompositingQuality.HighQuality;<br />
G.CompositingMode = CompositingMode.SourceCopy;<br />
G.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit;<br />
G.InterpolationMode = InterpolationMode.High;<br />
G.Clear(Color.White);<br />
G.DrawRectangle(new Pen(Color.Black,2),0,0,w-2,h-2);<br />
....<br />
...<br />
G.Dispose();<br />
bmp.Save(imagefilePath,ImageFormat.Bmp);<br />
bmp.Dispose();
Note: the trick here is to create the bitmap in memory first, using PixelFormat.Format24bppRgb,
then create the graphics surface from it using Graphics.FromImage(). Then anything drawn on the graphics will also be drawn on the bitmap. When done, dispose the graphics and save the bitmap to a file using Image.Save(), then dispose the bitmap.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
-- modified at 12:09 Sunday 23rd October, 2005
|
|
|
|
|
Thanks for the help. I tried part of your code and it solves my problem. However, I still can´t get my program to write the labels and lines I want it to write to the .bmp file that the program makes. At the moment all it does is to make a blank .bmp file.
Thanks,
FJ
|
|
|
|
|
Thanks for the help. I tried part of your code and it solves my problem. However, I still can´t get my program to write the labels and lines I want it to write to the .bmp file that the program makes. At the moment all it does is to make a blank .bmp file. How do fix that?
Thanks,
FJ
|
|
|
|
|
Hi all,
i include some dll's in my project
and when i build the exe i have to include those dlls with the
exe. for the deployment
Now i dont want to give the dlls that were included by me
i just want to give the exe.
how can this be done.
Thanks & Regards,
Pramod Yadav
|
|
|
|
|
Not sure if you want this, but you can package them all into one .exe.
Regards.
-- modified at 3:08 Sunday 23rd October, 2005
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Look for ILMerge on the Microsoft website.
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
when excuting "this.axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_HIDETOOLBARS,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref refmissing,ref refmissing);" will have a wrong message"no regedit control,how to deal with the question?
thanks!
|
|
|
|
|
Hello,
i didnt really know where to post this.
Soo hope it is okay that i have posted it here.
I hope that someone can help me with this regular expression which is giving me a lot of trouble.
It should match +-:._ "space" a-z A-Z 0-9 in any given order or combination.
There have to be at least one of the following characters a-z A-Z 0-9 though.
Spaces are accepted but not as the start or end character.
Also there can not be 2 spaces just after eachother.
Right now i have the following regular expression which does all of it except there can be more than 1 spaces in a row:
^(?! )[ \+\.\-:\w]*(?=[a-zA-Z0-9]+)[ \+\.\-:\w]*(?
|
|
|
|
|
Handle the spaces as a complement to the characters. Each character (except the first) can optionally be preceded by a single space.
^[0-9A-Za-z0-9]( [\w+\-:\.])*$
Less is more.
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
less might be more
but your regular expression seems to be incorrect.
It only accepts if there is 1 space between each character, soo etc. "My Name" is not true, which it should be.
Also it requires the first character to be 0-9 A-Z or a-z even though any character should be accepted.
Spaces are allowed but not nessecary, as long as there is not 2 just after eachother or in the start or end.
Also i think it might be a typo that there is 0-9 2 times in the first block ?
and the + is not escaped ?
It should be used for defining Usernames
Anyway... any of the characters in any combination or order (At least one a-z A-Z 0-9 somewhere), as long as there is not 2 spaces directly after eachoter or spaces in the start or the end.
"-: Whatever :-" <- true
" wha e ver" <- false
"My name ' ' is" <- false
"My name is" <- true
"__- What ever -__" <- true
"A B C D E F G : + - _" <- true
"_-: :-_" <- false (Should be at least 1x a-z A-Z or 0-9)
"_-: T :-_" <- true
Thanks for trying
Martin
-- modified at 14:18 Sunday 23rd October, 2005
|
|
|
|
|
I can't blame Guffa; even after reading your original post and this reply, I still can't figure out exactly what you want. Maybe you should provide a list of user names that are acceptable and a separate list that are not.
By the way, if your requirements for names are pretty standard, you can just google for "regular expression cookbook" or "user name regular expression" or the something similar and you will probably find what you are looking for.
Matt Gerrans
|
|
|
|
|
Hmmm...
i cant really figure out how to describe it then.
Characters that are accepted are a-z A-Z 0-9 and +-:_ and spaces ...
The characters can be in any combination you can think of, as long as spaces are not the first or the last or 2 spaces just after eachother.
Also at least 1 letter or number (a-zA-Z0-9) should present.
Soo ...
"::: - - :::" <- false because there is no letter or number in it
"Hello # Hello" <- false because # is not allowed
" Hello" <- false because first character is a space
"Hello " <- false because last character is a space
"Hello space space Hello" <- false 2 spaces just after eachother (space is = " " just cannot write it here)
"My name is" <- true
"_.-My Name Is-._" <- true
"..... R ...." <- true
Martin
Characters: a-z A-Z 0-9 +-:_
Rules: A space " " cannot be the first or the last character. Also there cannot be a space directly after another space.
At least one letter (a-zA-Z) or a number (0-9) should be in the string
|
|
|
|
|
Yes, the regular expression I wrote is not correct. I forgot the ? after the space to make it optional, for one.
So, forget the regular expression and just read what I said.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello,
thanks for the reply.
It looks good. Ill try it out.
At the moment i am using - The Regex Coach
Martin
|
|
|
|
|
i have usercontrols contained in tabs and
these tabs are contained in a windows form.
Upon clicking the next button from the windows form, i set some validation of data against
entries in my user control.
How do I set the focus back to the user control and prevent the user from moving to the next tab page (next user control)?
Thank you. =)
|
|
|
|