|
OK, so that's just a line between two points ? You're going to use the MSChart control ?
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.
|
|
|
|
|
ya.
i want to use MSCHART and i need some help and some example for mschart control.
do you suggest easier way than MSCHART ?
|
|
|
|
|
The MSChart control documentation looks to me like it's pretty basic. However, I just realised it's a legacy COM control. Try this[^] instead.
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.
|
|
|
|
|
Well, you could write some code and create your own chart control, then use that on your form.
Or you could look and see if anyone has already created one that would suit your purpose. For example here[^] is the Microsoft Charting Controls and there are many many more out there just waiting for someone to google or bing for them.
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 have a Form with a few panels and a RichTextBox on it. I need to detect any key messages on the level of form and send them to other child controls on my own way. I tried calling/overriding WndProc, PreProcessMessage, etc. Also tried setting my own MessageFilter via Application.AddMessageFilter() and finally gave a try to a native method SendMessage. None of these work.
I CAN detect the messages. But the problem is that when I'm passing them to the RichTextBox there's no effect (no text is appended). How can I make that control react on the redirected messages?
Thanks in advance.
|
|
|
|
|
Why can't you do it on the level of keydown, keypress and keyup messages ?
Why can't you just detect a keydown and pass the focus to the control ?
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.
|
|
|
|
|
Firstly, when a key is pressed, I need to add a char to the textbox, even if it does NOT have focus. Then, when I press a key, the keydown event is obviously not detected by the textbox. The same with the form! There is no info about this event. I could use PreviewKeyDown, but I couldn't mark the message as used/handled.
Secondly, the form should distribute the messages, not necessarily to the box. Maybe somewhere else, basing on other conditions.
|
|
|
|
|
Hi evry body.
I Have a Question about error in Asp.net with c#.
i get error " Unable to luanch the ASP.NET develpment server"
Please help me!!
thank you
|
|
|
|
|
Where to start...
1 - we HAVE an ASP.NET forum
2 - The error means the server can't launch, it's a setup problem, not a coding problem.
3 - based on what you've said there's little to no chance that anyone can help.
Why don't you copy and paste the actual error message, with all the details given, so we can try to work out what is going on ? What version of Visual Studio are you using ? I assume this happens when you press F5 ? Do you have IIS installed ( you don't need it, but it would be interesting to know if it works and the ASP.NET server doesn't.
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.
|
|
|
|
|
hi
you are very good. since helpe me.
thank you very much
|
|
|
|
|
I am trying to check a checkBox in CheckBoxList using .Selected = true property,
But not working dont know why but changes are not getting reflected On UI.
Could you please help me out in this.
Thanks in Advance.
Truth Is The Simplest !!!!
|
|
|
|
|
its not nessesary to do it by writitng code because the checkboxlist has a build in property MultiColumn to set it TRUE
Qendro
|
|
|
|
|
I do not understand.
Please explain how setting the MultiColumn property to true will help the OP to check a CheckBox in theirCheckedListBox.
Qendro wrote: its not nessesary to do it by writitng code
The OP has already indicated that they are trying to do this in code.
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.”
|
|
|
|
|
hello sir,
i got an api for sending sms.i am implemneting it in my software.the hosting company has sent me the url and some codes.when pasting the url in my browser followed by my mobile no and message.then i am able to get the sms.but i have designed a windows form which contains 2 textboxes such as for mobile no and message respectively.and a send button.i want the mobile no and message from textboxes will pass as parameters in the url.how will i pass this value?please help my,its urgent.
i am posting details of my code:
----------------------------------
private static string CALLURL(string url)
{
string Res = "";
try
{
HttpWebRequest gatewayReq; //Used for HTTP Request
HttpWebResponse gatewayRes; //Used for HTTP Response
gatewayReq = (HttpWebRequest)WebRequest.Create(url);
gatewayReq.Timeout = 60000;
gatewayReq.Method = "GET";
gatewayRes = (HttpWebResponse)gatewayReq.GetResponse();
Stream ReceiveStream = gatewayRes.GetResponseStream();
StreamReader sr = new StreamReader(ReceiveStream);//, System.Text.Encoding.ASCII);
Res = sr.ReadToEnd();
MessageBox.Show("message sent successfully.");
}
catch
{
//Res = "URL is not responding at the moment.";
//WriteErrorLog(DateTime.Now + "|" + "Call URL Function: " + ex.Message.ToString());
MessageBox.Show("Sorry,Unable to send Sms.Try Again Later.");
}
return Res;
}
private void send_Click(object sender, EventArgs e)
{
string url;
string msg;
Int64 no;
no = Convert.ToInt64(textBox1.Text);
msg = textBox2.Text;
url = "http://203.212.64.15/genericpushnew/pushsms.aspx?userid=demo123&password=hotmail01&masking=CVRTNP&mobileno=no&message=msg";
CALLURL(url);
}
}
|
|
|
|
|
Use this:
url = string.Format("http://203.212.64.15/genericpushnew/pushsms.aspx?userid=demo123&password=hotmail01&masking=CVRTNP&mobileno={0}&message={1}",
Convert.ToInt64(textBox1.Text), textBox2.Text);
|
|
|
|
|
well its quite easy but ur calling the functions in a wrong way....
We did the same project in VB,C# as well as asp.net successfully.
9870187165
|
|
|
|
|
I am spliting html code with this separators:
string[] datum = new string[] { "<td class=\"datum\">", "</td>" }
Now I split whole html code like this..
string[] datumi=skupaj.Split(datum, StringSplitOptions.RemoveEmptyEntries)
Now i have at datumi[0] empty string..than at datumi[1] full...then again empty..and full etc.
How to get rid of this empty string??
|
|
|
|
|
Aljaz111 wrote: How to get rid of this empty string??
result = s2.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries); Source[^]
I are Troll
|
|
|
|
|
Exactly what the OP is doing. Read a little closer before replying.
Eddy Vluggen wrote: I are Troll
At least that is correct.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Exactly what the OP is doing. Read a little closer before replying.
I'll try. Once you answer a number of questions, you're bound to make a mistake somewhere.
Mark Nischalke wrote: At least that is correct.
I do make an effort out it
I are Troll
|
|
|
|
|
Hi,
Without seeing an example of the skupaj string it's difficult to be sure what is wrong but String.Split will not be producing empty strings. It is likely that the apparently empty strings contain either non-printing or white space characters and my guess would be line endings.
Alan.
|
|
|
|
|
How empty is empty?
|
|
|
|
|
I added to application app.config file and can access it successfuly.
However after I copied the exe with app.config file to another machine it fails to read its settings returning null values string value = ConfigurationManager.AppSettings["MyValue"];
Also when I change from text editor app.config file on original machine used for project compilation, these values do not get updated when they are read from exe application.
Only when I change those values from VS in app.config file.
How exe locates its app.config file?
Чесноков
|
|
|
|
|
|
I am debugging a program that combines several wav files into one. This code always gives me an error message:
try
{
outFileStream = new FileStream(outputFile, FileMode.Create);
}
catch (Exception ex)
{
MessageBox.Show(ex.GetBaseException().ToString());
}
The error message is:
System.IO.IOException: The process cannot access the file 'C:\Documents and Settings\ .... \02.wav' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, FileShare share, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at LiveDescribe.WavFile.writeAudioFileHeader(String outputFile, Boolean pStereo) in C:\Documents and Settings\ .... \WavFile.cs:line 503
note: line 503 is the line outFileStream = new FileStream(...)
How can I make it work?
Thanks.
|
|
|
|