|
I have a situation when i have to move to another form in the same application while messageBox is showing.
I do it by using SetForegroundWindow method.
|
|
|
|
|
Yes you can do it programatically, but not manually, as far as I know anyway.
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.”
|
|
|
|
|
If you're showing a MessageBox, then you have a modal window in operation. This needs to be dismissed before your application can receive user input again.
"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
|
|
|
|
|
that is exactly the purpose of a modal dialog: you have to provide some information or consent before the app can continue. That is how most apps force you to answer "Do you want to save your document?"when you click the close box or the exit menuitem while your document holds unsaved data.
Other forms can be shown "modeless" meaning they don't insist on keeping your atention. For forms you choose between Show() and ShowDialog(), the former is modeless, the latter modal. However MessageBox is always modal.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
hi every
i have a report with crystal report that have some unbound field
how can i bind to a table this unbound field
Thanks a lot
|
|
|
|
|
why do not answer my overlord?
|
|
|
|
|
I'm working on windows application.I need to find out the number of bold letters available in the Word document.
I have used name space Microsoft.Office.Interop.Word to read the word document and also tried with some of the properties like Selection,Range to find whether the character is in bold or not but no result.
I have read each character by reading the content of document and checking its format but here while reading the text the character is missing its Format.
I have also tried by converting it into html format and tried by using HTML Element Collection but it is unable to read/recognize the bold tag.
Please give the solution to count the bold letters of word document.
Thanks
|
|
|
|
|
Hope this code helps
Document doc = ac.Documents.Open(ref oldFileName, ref m, ref readOnly,
ref m, ref m, ref m, ref m, ref m, ref m, ref m,
ref m, ref m, ref m, ref m, ref m, ref m);
int count = 0;
for (int i=1;i<= doc.Content.Characters.Count;i++)
{
if (doc.Content.Characters[i].Bold == -1)
{
count++;
}
}
MessageBox.Show(count.ToString());
|
|
|
|
|
Thanks for replying to my post.
It is not working as it is displaying the total no.of characters of the word document.
I think while reading the characters from the word document it is removing the font formatting and then reading the characters with normal font.so unable to find the bold letters.
Please Suggest the solution.
Thank you
|
|
|
|
|
Wow, what a great class assignment!
Tell your teacher that they have my respect for coming up with a great class assignment!
That's a great project. And, one like I would often try to come up with when I was teaching.
Some students are not smart. And, I'd say some are very foolish.
Thankfully, some students are very smart! Those make teaching very satisfying!
Most teachers are pretty smart! Many teachers will check the different forums for posts and answers. Trust me, a student does not want to be caught cheating! If they are lucky, they would get a "D". In many cases/schools, an "F" is a given. Sometimes, an automatic course failure is the result. Ouch!
In some colleges/universities, they will kick the person out of the school! Yikes!
Just my two cents!
_____________
Joe
Taught Engineering for 8 semesters.
modified on Wednesday, July 29, 2009 12:50 AM
|
|
|
|
|
BTW: Besides the type of problem, here's how I know it's a class assignment:
* About Member
Friendly Url http://www.codeproject.com/Members/MadhaviSankoor
Status None. Member No. 6434384
Messages Posted 2 - Poster
Articles Submitted 0 - Browser
Biography None provided
Location India India
Job Title
Company
Member since Tuesday, July 28, 2009
(Less than one month)
|
|
|
|
|
Hi guys,
can you suggest what should I code - to get the list of Active Directory fields of a given domain?
because in one of my Apps I wrote them static (givenname,telephone etc.) - but in target domain such fields are not there or with new names or with other fields. I want dynamically all the list of fields of AD. Please help,
hanks - jeet
|
|
|
|
|
Have you looked through the CodeProject articles? Would this[^] one do it?
|
|
|
|
|
i read that, but does nt fit in my needs...
thanks
jeet
|
|
|
|
|
I am developing an application in C#. I have a data DataSet And I have to send it to SQL table.Here i have to call Stored precedure. Please Help me. Thanks in Advance...
|
|
|
|
|
First you created a dataset from a data adapter, then update the sql table using the update function of the adapter. check how i do it here
Coding an N-Tier Application in C# Without Any Wizard: Part II[^]
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
what is the code to include inputbox
i want it to pop up each time i click a button
This code was posted by me...
|
|
|
|
|
C# doesn't have an input box [bit stupid] but you do have a couple of choices:
0. write one - a simple static method like this[^] was found on a very quick google.
1. Import one. Use the VB one in the Microsoft.VisualBasic.dll assembly.
2. dunno.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
You should never use that VB6 crap, even in VB.NET. Write your own, should take about 5 min.
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.
|
|
|
|
|
Christian Graus wrote: Write your own, should take about 5 min.
Copy from the web, takes 2.78 seconds.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
True, but you'd learn more by writing it.
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.
|
|
|
|
|
Some people could learn a lot from knowing how to use google...
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Yes..
I saw a quote which says something like this :
"I dont have to learn everything, but I have to learn where to find it when required"
Your reply reminds me this.
|
|
|
|
|
In my first job - straight out of uni - my boss was amazed at my leet-skilz. I was the only person stupid/keen/enquiring enough to RTFM!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi everybody
I want develop application with C# that able :
1. Draw ground map.
2. Draw a point or another image to each latitude and longitude.
for example user can enter arbitrary coordinate by latitude and longitude then show point in the map.
If you know good application or method please help me.
Best Regards,
Reza Shojaee
|
|
|
|