|
how to edit appconfig in windows application(C#)??
i am using this code but not getting success please help me
Code:-
Properties.Settings.Default.DestinationDrives = "ppc";
Properties.Settings.Default.Save();
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
How many times are you going to post this question? You don't even say what you think is going wrong or why.
I suspect if you read back you were given the right answer on about your first post.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
He´s right, you need to say more in order to understand your problem, help us to help you (if we can ).
In your next post just say what you are doing and what goes wrong and then maybe someone can help you
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
I am trying to output stuff from my program to the output window and have followed the simple instructions given by numerous sites:
<code>
using System.Diagnostics;
namespace myapp {
class MyApp {
static void Main(string[] args]) {
Debug.WriteLine("Hello World!");
}
}
}
</code>
When I do View -> Output Window (in Visual Studio),
I get the output window but Hello World does not appear ??
Am i Doing something wrong ??
Help much appreciated!
Regards
Gerry
Debug newbie
Meet New People - Its Free!
http://www.twoggle.com
|
|
|
|
|
Try using Console.WriteLine(...);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Are you building a "Debug" build or a "Release" build. You can tell by looking at the toolbar in Visual Studio (assuming you haven't customized any of the toolbars, it's the "Standard" toolbar) and looking at the "Solution Configuration" dropdown. If it doesn't say "Debug", then your output will not dispaly as that line won't even be compiled in to the code.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
you must run your project with debug config mode by pressing F5 or click on play button
|
|
|
|
|
Hi,
Can you Help me Out in Retrieving the database by selecting computer name from the dropdownlist using web application.
Thank You.
|
|
|
|
|
anithagaraga wrote: Retrieving the database by selecting computer name from the dropdownlist
What does it mean ? What is your main objective.?
anithagaraga wrote: using web application.
Then you should post it in ASP.Net Forum
cheers,
Abhijit
|
|
|
|
|
when i select any computer name from the dropdownlist then i should get their database which is there in that particular system if no database is available then i should get the popup or message saying that that particular computer name dont have any database.....
Thank You...
|
|
|
|
|
Is the listview (not listbox) not vertical scrollable?
I have the style set as List and scollable = true but don't seem to get the
vertical scroll.
|
|
|
|
|
you will view the scroll bar, only, once you have more items in listview then they could be viewed in the area occupied by list view.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi,
Here is my issue. I am trying to covert string to html encoded characters. For example, "Hello World" would be converted to "%48%65%6c%6c%6f%20%57%6f%72%6c%64". I am trying to do this encoding in a Windows Application. I have used
System.Web.HttpUtilities.HtmlEncode("Hello World") as well as
app.Server.HtmlEncode("Hello World") (where app = new HttpApplication()) and my result always ends up being "Hello World". What am I missing?
Thank you in advance for your help.
this is the table im using for mapping
modified on Wednesday, October 22, 2008 7:10 PM
|
|
|
|
|
What you're trying to do is get the ascii values of your string. It's not actually HTML which is why the functions aren't doing what you expected.
What you need is something like this, where you go through each character in your string and get the ascii value. Oh and you need it in hexadecimal rather than decimal:
string Encode(string input)
{
StringBuilder sr = new StringBuilder();
foreach(char character in input)
{
int value = (int)character;
sr.Append('%');
sr.Append(value.ToString("X"));
}
return sr.ToString();
}
EDIT: Woah, missed the pre tags there.
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Got your message after i posted my reply. Thanks!!! You are right about the Hex. Thanks for your reply.
|
|
|
|
|
Next time I'll try not to take so long to write my post
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I was trying to convert a string to a HEX value.... snipplet below will help anyone who was trying to do the same.
private string CovertToHex(string text)
{
string hex = "";
foreach (char c in text)
{
int tmp = c;
hex += String.Format("{0:x2}", (uint)System.Convert.ToUInt32(tmp.ToString()));
}
return hex;
}
|
|
|
|
|
That's not html encoding at all, that's url encoding.
However, the only character that needs encoding in that string would be the space, so you would end up with either "Hello+World" or "Hello%20World".
Fayu wrote: snipplet below will help anyone who was trying to do the same.
Sure, as long as they don't use the code as it is. Using += to create a string scales very badly. The execution time grows very fast when the strings get longer. For every character that you add to the string, the conversion takes roughly twice as long. You should use a StringBuilder to build the string instead.
Also, you are doing a lot of conversions that is totally unneccesary. You are converting the charcter to an int value, which is good, but then you are converting that into a string, only to parse it into an uint value, which you then cast to an uint value before finally formatting into a string again.
private string UrlEncodeAllCharacters(string text) {
StringBuilder builder = new StringBuilder(text.Length * 3);
foreach (char c in text) {
builder.Append('%').Append(((int)c).ToString("x2"));
}
return builder.ToString();
}
Note: The code does not support characters with a character code above 255, for that you need to encode the text into a byte array first.
Despite everything, the person most likely to be fooling you next is yourself.
modified on Thursday, October 23, 2008 4:19 AM
|
|
|
|
|
you are absolutely correct. += not a very good technique.
|
|
|
|
|
hi evrybody
i have an idea i would like to achive it but i dont know what is the technic i should use
i want to make a screen for registring the entrance of cars in parking and i finish developing of read ticket by barcode and capture the car image and evrything is ok with me but the idea is how can i fource user to dont save the data befor the admin set the aprove for saving , so should the admin watch the life change of this screen and aprove the data then the user can save
i mean i want the admin see and control the screen from his machine while the user registar the data from his machine
i hope it can be clear
MD_NADA
|
|
|
|
|
you create Workflow for that.
cheers,
Abhijit
|
|
|
|
|
thanks for your replay
i will send you a workflow but i need to know the technice i should use for this idea
i hope i can get an example for my wish
MD_NADA
|
|
|
|
|
hi
i want hidding data in slack space,in unused space in stream in block in file of microsoft word document 2003 ,
my step is
1- loading the header of doc. file so i finding the Array of BAT which contain the index of unused space like this BAT[1]=-1
this means block 1 is empty
but my problem is how can i access to block 1 in file
am stoping at this point .........
can any bodt help me???????
|
|
|
|
|
Is there a more or less easy way to hide the double-headed rezise arrows on a windows form? I don't want the user to see them because he/she can not resize the form anyway.
|
|
|
|