|
That is better, but I won't read through all that, at least in the horrible unformatted state.
Put the code inside <pre> tags like this:
<pre>
code here...
</pre>
and format it properly, you know - proper indenting and so on. (If you do the <pre> tags first, and then paste your code in again, it will retain the proper formatting.
Also make it really clear which line is giving the exception. You may have done this already, but I'm not going to search through that lot for it.
It makes my eyes hurt!
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.”
|
|
|
|
|
I second that. Except the part about your eyes, that I don't know.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
I'm developing a Windows Forms application that will be translated to all kinds of languages, including Simplified Chinese. On Windows Vista it works just fine with the Segoe UI font, but on XP all Chinese chars become boxes due to that it falls back to Tahoma.
Does anyone have a suggestion on an alternative font that I can use? Preferably it should be installed by default on Windows XP, it should not be too different from Tahoma or Sagoe UI and finally it should be possible to use for most languages out there, ie have a full Unicode set of characters.
Best regards
Christian
|
|
|
|
|
I don't understand your question. Are you asking us what default fonts are installed on what OS's?
|
|
|
|
|
Sort of... I'm not located in China myself, so I'm not aware of what fonts support the Chinese character set. I have Googled this issue but I wasn't able to find a suitable answer, because I do not want to use different fonts for Chinese, Japanese etc. which is the usually suggested approach. Segoe UI would be the perfect choice, but it's not always available on XP. So question is if there is a similar font on XP?
This problem should be very common, since my program is not the first to be translated into Chinese. Rather than going through hundreds of fonts, which is what I'm planning to do today I popped the question here.
|
|
|
|
|
Sorry, I lost track of this thread, my fault.
Christian Wikander wrote: Segoe UI would be the perfect choice, but it's not always available on XP. So question is if there is a similar font on XP?
Have you considered making the Segoe font part of your installation?
|
|
|
|
|
Yes, I have considered it.
As I understand it I may not distribute it without a separate license from the author. While not impossible to overcome, it adds some extra hassle with my boss.
Secondly my application is distributed through ClickOnce. It seems like an extra hurdle to distribute and use it given that the application has no rights at all in the client system.
At this point I more or less gave up to be able to move on. I wrote some code that change the font to one of the Sim* fonts if needed.
Nevertheless, thanks for the reply.
|
|
|
|
|
i wish to generate a html or chm help file from a application windows forms ,please give me the source code c# for this application.
thank you
|
|
|
|
|
System.IO.TextWriter tw = new System.IO.StreamWriter("C:\\example.html");
tw.WriteLine("<HTML><BODY>");
tw.WriteLine("<P>Hello World :)</P>");
tw.WriteLine("</BODY></HTML>");
tw.Close(); You just wanted the source, so here it is.
Enjoy
I are troll
|
|
|
|
|
I am working on a winforms project with an MDI Parent and some MDI Children. The Child datasets Fill methods use a parameter set by a combobox on the MDI Parent. I can iterate through the active MDI children, but cannot figure out how to refresh the dataset in the children when the parameter changes, which would then update the data being displayed. I tried invoking .refresh method on the child forms, but it does not refresh the dataset. Any ideas would help.
Thanks Paul
|
|
|
|
|
|
Hello Friends..
I have created setup in vb.net windows appliation.
I want to run another .exe file from command prompt at the time of setup
which has been already created during setup.
.exe file is created in my installation folder.
But problem is
How can i find my installation path during installation.?
Thankx in advance...
|
|
|
|
|
That depends on what you are using to do the installation. Some installers let you start a proces by script, others have it completely integrated (where you only set properties) and some don't provide this functionality at all
I are troll
|
|
|
|
|
Thankx Eddy Vluggen.
I am using wizard to install s/w step by step.
One step will ask user to where to install the s/w.
I want to know this path.
Hope See u again..
|
|
|
|
|
Dear All.
i want to raice Esc key(keybord) Event, without pressing the Esc button.
Regards
Rajeesh MP
|
|
|
|
|
Rajeesh MP wrote: i want to raice Esc key(keybord) Event, without pressing the Esc button.
If the event is in your application then you should abstract the functionality elsewhere so it can be called from where it is needed. If you are initiating it against another application then you might want to look at System.Windows.Forms.SendKeys[^]
|
|
|
|
|
AoA
Thanks in advance for help. Please help me if any one have some info about it.
I have made a solution with three projects a web services project , a client windows application project and a class library project.
I made a class in class library. this class library is added as reference in the client and web services project.
Now from client application, when i call some web methods of the web service they work fine.
I have a web method with an object type attribute. that method just cast it to string using ToString() and return that string. Now i made an object of a class in class library.
When i call that web method and pass this object. An InvalidOperationException generated, with error message There was an error generating the XML document.
I can not solve this, i search it on web but no solution found. I can not know how to upload the code here.
Please help me if any one can.
Will wait for reply.
|
|
|
|
|
Well I think You can see right side your project where you can see all class there will be webreference you must to update everytime you make new funcion to execute .
The error you said should be not adding correctly the reference of your webservice to your applicacion.
If you can execute your program in webservie in xml you will see the result with invoke button .
If you write details or send me your application wish could solve your problem ..
regards
jabbar
|
|
|
|
|
I wonder if anyone else has experienced this, or at least can suggest a resolution.
1) I placed a ReportViewer component on a form in my project and it didn't create the Toolbar or the Report area on the form nor did it create the BindingSource component.
I thought my installation might be broken, so to check this I:
2) I opened a different solution, added a ReportViewer to one of the forms and all worked correctly.
The only real difference between the two solutions, is that the solution in 1) already has several ReportViewer Forms in it.
Anyone got any ideas at all.
Pllzzz note this is not urgentzzzz in any way at all.
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.”
|
|
|
|
|
Henry Minute wrote: Pllzzz note this is not urgentzzzz in any way at all.
Great. I have to think about this for a couple of weeks anyway...
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I have the problem with VS2008 on SQL 2008, I have not tried of a project with an existing viewer.
Also I cannot create a datasource so I'm pretty sure my installation is screwed. But hey I'm running on Vista (at home) so that probably explains the problem.
It's a sad day when we accept the environment with these types of bugs b/c it's not critical. I was experimenting with reports about 3 weeks ago and didn't bother following it up.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: I was experimenting with reports
That's pretty much where I'm at.
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.”
|
|
|
|
|
I am drawing a bitmap in my class that has the following things:
1) A base background loaded from a bitmap on disk
2) 6 strings generated programmatically and drawn on the bitmap
3) 25 or 50 numeric strings generated programmatically and then drawn on the bitmap
4) Possibly another bitmap drawn top of the 25 or 50 bitmaps in 3)
This is all a layered effect between 3 and 4.
After drawing these I end up with 1 bitmap that I then display to my users. All of the things above can be done in parallel, so I was wondering what might be a good approach to multithreading this? Such as, creating a thread to do each part of the bitmap, then layering them when done? Or writing them all on the one bitmap?
What might be the fastest execution way to do this? I already have it working, but want to change it to speed up the drawing if possible.
Thanks!
|
|
|
|
|
Hi,
multithreading while sharing data isn't easy to do correctly while still gaining some performance.
Is it worth it? how big is the bitmap, and how often do you need it all? how much area percentage wise is covered by (3) all the strings and (4) the second bitmap?
What is the programming language, and what kind of app is this?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
This is a winforms app in C# using NET 3.5 SP1. The bitmap is about 800x800 in the highest resolution (we support up to 1680 x 1050). The strings cover probably around 50% of the bitmap, with the other bitmap taking around 40% of the total space on the original bitmap.
This gets redrawn at least every 2 seconds, and maybe more depending on the user's preferences.
All the data/strings is known or can be calculated before the actual drawing occurs.
Basically, the way I do it now is:
Store the original disk bitmap in memory for use. Get the data, draw up to 25 or 50 of the other bitmaps, draw the 25 or 50 numeric strings, then draw the other 6 strings. Right now, this is being done through a single backgroundworker so that the rest of the app is still responsive.
Thanks!
|
|
|
|