|
can any body tell me about something about Encoding class
|
|
|
|
|
Such as? We'll need a bit more clarifcation about what you want. You've just asked a question like "Can someone tell me something about a car?"
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
In waht aspect do you want to know about Encoding?
Regards.
|
|
|
|
|
Is there a easy way to remove the black border around a Forms.Button when it is set to a FlatStyle of Flat? The button has a bitmap image on it and there doesn't seem to be a way to get rid of the black border around the button when it is selected or not selected.
I would think there would be a property to set it on or off but I don't see any. Does anyone know?
|
|
|
|
|
Set its FlatAppearance.BorderSize to 0.
--
I've killed again, haven't I?
|
|
|
|
|
you may change the forecolor to your interface color.
this.button3.ForeColor = System.Drawing.SystemColors.Control;
|
|
|
|
|
Hi everyone!
I have a webpage that allows a user to upload a file for storage in a database. However, I am having a problem when users try to upload a bigger file (usually 3MB+). I am assuming that this is because I am trying to send the entire file to the server at once How can I get around this?
Any help is greatly appreciated
|
|
|
|
|
could it be that since the file is so large/connection is so slow, the operation times out?
as to get around it, you could have the file rar'ed (like a zip) which will zip it up into pieces and then send the pieces bit by bit. Also, try compressing the file so that it gets smaller.
If not, use FTP connection instead of form based.
|
|
|
|
|
jeweladdict wrote: could it be that since the file is so large/connection is so slow, the operation times out?
I am assuming so.
Adding a rar or zip to the file might help but it is not something that i really want to do. Is there a way that you know of that I can send the file to the server in pieces?
Thanks
|
|
|
|
|
ftping would be the best bet.
|
|
|
|
|
Ok thanks i'll give that a try
I also have a another question... Is it better to save the file to a database on the server or right on the disk?
|
|
|
|
|
That depends on how you are going to use the file.
---
b { font-weight: normal; }
|
|
|
|
|
There's a limit on the size of a request, I believe it's 4 MiB by default. Could it be that? Then you can change the limit in web.config.
---
b { font-weight: normal; }
|
|
|
|
|
Thats news to me How would I make those changes?
Thanks
|
|
|
|
|
Look up MaxRequestLength.
---
b { font-weight: normal; }
|
|
|
|
|
|
I've got a half dozenish identical copies of an imagelist in different forms of my app. To avoid having to make changes to each of them if it was modified I want to move them into a single location and share it between all the forms. To have design time support for the data I derived the wrapper class from System.ComponentModel.Component. I then copied the ImageList from one of the existing forms. The images, and the related data in the class is all global/shared so I made the class static and made the neccesary type changes to the declaration and InitializeComponent().
Initially everything worked great, prior to checking the source in however I renamed the imagelist to something more appropriate for general use (old name was targeted at the form I copied from). At that point, VS zapped the imagelist and it's contents into oblivion. I did a bit of experimenting afterwards, and found that any component I add to the design page and then make static is removed after the next build.
Is there any way to make VS leave the static components alone? If not, I can add a static SetImageList(...) method, keep the imagelist in the class with my Main() method, and have it's constructor do the initialization, but this feels like a kluge and I'd prefer a more graceful approach if possible.
|
|
|
|
|
I have a form with 20+ text boxes and other controls that get configured by the user at startup. Is there anyway to save the state that every control is in, including the text in the text boxes so that the user can load them later? I was messing around with serialization of the form, but I can't seem to get that to work.
Thanks!
|
|
|
|
|
Why don't you save your values to a xml file or a database and then retrive them from there?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
wouldnt that be the same as writing it to a text file? What benefits are there to the xml file, and is there an easy way of doing it?
I know with datagrids you can do the writeXML command, is there soemthign similar?
|
|
|
|
|
Search this site for XML tutorials. It is quite simple once you get a hang of it...
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I guess what I'm looking for is a function that will let me do a
foreach( control in form )
{
save all properties of control to file
}
or a Save state of form function
|
|
|
|
|
Hi,
Are there any ways to get Event Log information from a remote box other than with the EventLog class? EventLog dumps the entire collection of entries, for the specified log, as soon as it's opened. There is no way to throttle it, Read Next, or filter on anything besides "Source". The buffer size appears to be set at 40,000 and I don't see any way to change that (not that I'd want to). Everything was going great until I tried to get a a rather large log. And of course, the solution has to be entirely from the client side and I have no control over the size of the remote server logs.
Any suggestions would be appreciated.
Will
|
|
|
|
|
Hi All,
First I must say that I know absolutely nothing about coding in C#, I come from a C++ background which makes life a little easier. Now I am trying to implement a .net dll into a C++ project. It is a sourceforge project wich can be found here[^], v1.1.6 . Obviously I have to do this via the COM.
I have been trying for a while now to do this, creating type libraries, registering the assembly etc... I have now got my hands on a C# compiler so I can try to make it com compatible. At the moment I am unable to create an instance of the class. So I need to know what changes do I need to make?
If anybody could assist me with this I will be your friend forever
|
|
|
|