|
Form2 lobjNewForm = new Form2();
lobjNewForm.ShowInTaskbar = false;
lobjNewForm.Show();
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i having a picture box control that contains a 32 bit image
i want to convert it in to 16 bit image and save it to other location
how i convert it plz help me
|
|
|
|
|
By using Google, that's how.
Here[^] is what I found by googling for convert 32bit image to 16bit
Hope that helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear Readers,
At our university we are faced with a problem in our automatic procedure that supplies a new student with a University e-Mail address. Student registration has changed over the years and we are now confronted with a large array of special characters like the character "ǿ". Our e-mail format is based on the first and lastname of the students, but e-mail addresses can only contain the most basic Alphabet. Now we have a translation table that visually changes characters like éèë to the character e, etc. So the "ǿ" would be changed to a "o". We know this is not correct (phonetically) but is the best what we could do with all kinds of nationalities we have at the university.
But my question is, is there a international standard how to deal with those special characters in e-Mail addresses?
Best regards and thanks,
Rémy Samulski (Maastricht University, The Netherlands)
|
|
|
|
|
Not as far as I know. I can't imagine turning "ǿ" into any other character but "o"
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Thanks for your help but this is not the same problem. Our problem is how do I program a routine that automatically converts "Rémy" to "Remy" and "Höfland" to "Hofland" without keeping a translation table up to date for all possible special characters.
|
|
|
|
|
Greetings to UniMaas
LiQuick wrote: how do I program a routine that automatically converts "Rémy" to "Remy" and "Höfland" to "Hofland"
You want to convert it to ASCII[^]? That might introduce new problems[^] as well.
The solution of my own ISP isn't that cool either; they just strip any diacritic and add a number in case of collision
|
|
|
|
|
Thanks Eddy! Do you know UniMaas personally by the way?
Your links gave me the idea/solution I needed. It doesn't work for all characters but it's nifty enough to get most of it out of our system:
public static string RipDiacritics(string Text)
{
string New = "";
string Temp = "";
foreach (char C in Text)
{
Temp = C.ToString().Normalize(System.Text.NormalizationForm.FormKD);
if (Temp.Length > 1)
{
Temp = Temp.ToCharArray()[0].ToString();
}
New += Temp;
}
return New;
}
The string.Normalize(System.Text.NormalizationForm.FormKD) code changes the string "é" to "e'". It seperates the letter from it's accent. Characters that won't work (and I don't know if they are valid for an E-Mail address) are things like "Ø", "œ" and "ß". But we will cover most of them in a translation table till we find a solution to that problem as well.
EDIT: Colleague found an article on Codeproject doing the same as here above: Stripping Accents from Latin Characters: A Foray into Unicode Normalization[^]
modified on Monday, July 27, 2009 4:38 PM
|
|
|
|
|
Email-addresses are valid when they are in ASCII, and no ASCII-control characters are used (everything > 31 and < 127)
Not personal, I just live in the vicinity
|
|
|
|
|
You can always use a variant of iconv to accomplish this. Here's[^] a version that you could probably hack about for your own needs.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi all,
I need help from u all. I'm using datagridview in windows application. I need to display row headers for the datagridview.plz help me with a sample code.
Thanks in advance.......
Elizabeth...
|
|
|
|
|
All you need is setting the RowHeaderVisible property of the DataGridView to true.
|
|
|
|
|
|
Well, the reason for the redirect is presumably to choose a server that's free. I don't see how you can hope to find that, without some sort of web service offered by the website.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ITNOG - Hi
Thank you , but this link was a sample , Some site use this form link but the file is in their hos , anybody know how download managers find the original download link . or Firefox ?
thanks.
|
|
|
|
|
Hi. Is it possible to add some custom location items in the location drop own list of the outlook 2007 appointments through AddIn in C#?
|
|
|
|
|
Hello, How would I go about catching the keypress with the application hidden.
|
|
|
|
|
you would need to write a system wide keyboard hook, as when your app is not visible, it's not catching any input
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi I am using Visual Studio 2005.
I want to layout my Form automatically when I restore or maximize form window. The controls on the form like groupbox containing many other controls should adjust according to size of form.
Question:
1. How I can implement this? What is best way?
2. Should I do it using code. That is by changing locations of controls?
I used Anchor property but it doesn't worked for me.
Please tell.
Thanks
|
|
|
|
|
The Anchor and Dock properties are how it's done. otherwise, you need to write a ton of code in the form resized event to do it manually.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Depends on what you want to do. If you want your controls to change size based on the size and resolution of the screen then there used to be a number of articles around but they were all a kludge. I believe WPF may be the too; for this sort of thing.
What I usually do is have 2 classes of form, fixedtoolwindow and sizeabletoolwindow. Fixed is for any dialog without a datalist, it does not make sense for the user to change from my setup. Sizeable is for any form with a list control. I use a combination of panels, docking and anchor to achieve a form where the list control is docked to fill and therefore expans when the use changes the form layout.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Put the controls in the TableLayoutPanel cells. Set the column and row dimensions for the TableLayoutPanel in "%" (You can also give absolute values wherever suitable). Anchor the TableLayoutPanel to all the sides of the form. And all the controls to all four sides of the cell they are in. This will give resizing effect to the controls when the form is resized.
Hope this helps.
|
|
|
|
|
I have a c# .net 2.0 application that I created. What I need to know is how do I create a true
".exe" embedable code. I have a gizmo that I want to program. I must confess that I am beyond
my realm with this but thats how we learn. I understand how the .net framework works and how it
passes the assemblys to the "JIT" and the JIT the converts it to true machine code that the processer executes. do other platforms like borland create true ".exe's"? Or do I need to learn
Assembly language? I hope not as I am getting good with C# It is pretty straight forward. Maybe there is a compiler that will do what I need.
Thanks in advance.
Regards
Rick Osburn
p.s.
I am famillar with windows ce but I dont want to mess with the licensing fees just want to burn
it into a Eprom.
|
|
|
|
|
The only way to write a .NET app is using MSIL, or to buy an expensive compiler that goes to native code. Your other option is to learn C++.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|