i create an application that user can change design forms at run time.
how can i save a C# form at run time
Are you saying you want the form's controls to have the same values the next time the user opens your app? You can save the data to a file or the registry when you exit, and simply read them when you start again.
Let me try that piece out... Looks interesting. It has something to do with the number of bytes in a character. The "old" ASCII uses 7 bits, while UTF8, you guessed it uses 8 bits. But it doesn't really explain why you get the weird character at the beginning.
Have you tried looking up some info about text encoding on google?
when you create a stream or file in UTF8 or in Unicode, it will start with a 2-byte
indication of the encoding; in your case it is 0xFE 0xBB. Only then will appear the
first "real" character (0x3C for <).
If you write to file, then open the file in a text editor, both cases work just fine,
because the editor consumes the optional 2-byte to understand how it needs to interpret
Your reading code however does not discover the encoding, it has that information baked
into the code, so it treats the 0xFE oxBB as real characters and since they are not
really printable (above 0x7E), it turns them into a single question mark.
it doesn't have any special algorithm. you can use .net methods (antialiasing enabled) to do it.
simply create a panel and on paint event use e.Graphics.DrawImage() method to draw your image in your panel that larged according the zoom when e.i. + key pressed.
Hi, thanks a lot for your reply. Actually I am using the same method as you have described but it is bit slow and getting complex. Because I have to draw the whole drawing again. Have u seen such kind of code or any sample. Plz let me know I will be very thankful to you.
I encountered some authentification issue.I have a window application in C#, having program which is calling web services, but I receive a log file said "Error Message: The remote server returned an error: (401) Unauthorized.". What I need to do is to pass credential of NT Login ID and password, then only I am able to access the websservice. Can anyone walk through my coding, any line or command is missing? How i can pass the credential along?
Thanks for reply. The content of the link is talking about the using Client Certification. But over my side, I am using service account (NT Login Account) for the credential. My NT login is known by the opposite server. So when I run the web service, remote server knows my present to the service. But bad news is I am not sure how to make my code carry along with the credential.
Error: 80045901 Initializing SQL Server Reconciler failed. Minor error: 29045.
This is what I recieve when trying to sync with the SQL
server from my Pocket PC emulator. I register sscerp20.dll by using regsvr32 "C:\Program Files\Microsoft SQL Server CE 2.0\Server\sscerp20.dll. That hasn't
helped. Has anyone else seen this issue
or perhaps,found a solution for it?
Please help me