|
|
.NET 2.0 - I need to display a "promptString" with different characters for specific positions in a MaskedTextBox, rather than just the same character repeated (e.g. HH:MM). May need to use TextBox with RegEx validation instead.
Is there an easier way?
|
|
|
|
|
cturn wrote: with different characters for specific positions
cturn wrote: rather than just the same character repeated (e.g. HH:MM).
Isn't HH:MM different characters for specific positions? What are you talking about?
led mike
|
|
|
|
|
Thanks for responding.
The MaskedTextBox control has the PromptChar property that allows the default "_" or any other single character to be used in a prompt string (based on the contents of the Mask property). All that gets displayed is "__ __". I'd like to see "HH:MM". Or in the case of a LAT/LON entry, "##A ###A".
|
|
|
|
|
cturn wrote: All that gets displayed is "__ __"
If I ever used it I would know that!
Did you consider using a tooltip to present the "HH:MM" string. You could include additional explanatory information as well yes?
led mike
|
|
|
|
|
Thanks, but unfortunately the requirement is to display it as the prompt.
|
|
|
|
|
i want to store the datagrid view values into the excel sheet
multiple times
i am using .net 2.0 version
|
|
|
|
|
In order to write to an excel sheet you can use either excel object model or excel oledb provider. There are many articles available on codeproject and on google.
|
|
|
|
|
Hi all,
I’m a C++ developer and a very beginner in both C# (.Net) and Word Programming. What my company wants next is something like this: from different texts to build a Word 2007 document and then open this in the real Word 2007 application to give the user the possibility to change the document as usual with all possibilities (Menüs, Panels, etc.). Well my problem is that the Word 2007 must be embedded in our C# - Application (WinForms).
Knows somebody a solution to do this: embed the Word 2007 application in WinForms or if better maybe in WPF? For any idea thank you in advance.
Best Regards,
Emil
|
|
|
|
|
Your question has already been answered in c# forum
|
|
|
|
|
I need help with the code for making an mdiform transparent
tony-yeyo
|
|
|
|
|
First of all, please don't post the same question twice.
Second, set the backcolor of your form. Then set the transparent key to the same color. You will also have to set the controlbox property to false, and maybe mess with the FormBorderStyle propery.
Hope this helps.
|
|
|
|
|
Can I get some help with the code for making an Mdiform transparent?
tony-yeyo
|
|
|
|
|
how can I make an Mdiform transparent
tony-yeyo
modified on Sunday, February 03, 2008 5:12:08 PM
|
|
|
|
|
If I were you I'd start trying to become myself transparent...
Read the posting guidelines... and post that messasge to the right board...
Put on the flame suit...
![Rose | [Rose]](https://codeproject.freetls.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Ooooh, you need a magic wand for that one.
Alternatively, because the bunnies are loose you could post to the forums of the language of choice...
Just a thought.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
*Elaine hides from the killer bunny rabbits*
|
|
|
|
|
I finally got back online after a near 12 hours of no internet connectivity!
let me say
very reminiscent of the monty python
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Do not post programming questions in the Lounge!
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true.
However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
|
hi all,
i am facing a problem in windows mdi form application.how can we know a child form is exist or not. in mdi form i have taken toolstripmenuitem.in that click event i was trying to show a child form1 when we click that menu item for that i am using show method.but when click second time the new child form1 is created.i want show that child only once.if its already it must be restored.how can restore the child form1 if its already exists .and how can we if child form is exist or not.
thanks in advance
regards
obalesu n
|
|
|
|
|
See an answer for a similar question here:
MDI Form[^]
|
|
|
|
|
thanks for reply,
but i could't understand that code .please send cleary.
regards
obalesu
|
|
|
|
|
you could do something like the following in your clicked_handler.
it goes through all mdi childforms....if the one you are trying
to open is already opened, it activates the windows and returns.
if it's not found, it creates a new mdi childform.
<br />
foreach (Form f in this.MdiChildren)<br />
{<br />
if (f.Name.Equals("mySubForm"))<br />
{<br />
f.Activate();<br />
return;<br />
<br />
}<br />
}<br />
<br />
mySubFormn f= new mySubForm(this);<br />
f.MdiParent = this;<br />
f.Show();<br />
|
|
|
|