|
string pattern = "(-)|(#)|(/)|(&)|(\0)|( )";
string[] substring = Regex.Split(a[i], pattern);
input given is #55; xx road
but it returns many empty tokens inbetween the output... pls help me how to remove those empty entries
the quieter u become more u hear
|
|
|
|
|
|
What is the expected result?
|
|
|
|
|
input
#55; xx road
expected result is
token
#
55
;
xx
road
the quieter u become more u hear
|
|
|
|
|
i will place some control in tablelayoutpanel..when i select any control at runtime i need to show the selection handlers..
if any body don't understand my quesation check in design mode..like this..
Drag a tablelayoutpanel and place a control(any) and select that control..it shows the handlers to the control..i want show that's handler to my control..
or i need to show the selection handles to seleted cell in tablelayoutpanel
modified on Wednesday, February 4, 2009 10:44 AM
|
|
|
|
|
This is a design mode only feature.
only two letters away from being an asset
|
|
|
|
|
What do you mean, handler?
My opinion is... If someone has already posted an answer, dont post the SAME answer
|
|
|
|
|
In C# Visual Studio 2005, the control dateTimePicker can be editable manually with keyboard? I need this, but I dont find the way to do it. is it possible?
Thanks
|
|
|
|
|
Just to make sure, is this web or Windows? What do you mean "editable manually with keyboard"? You should be able to highlight the field and use the keyboard. Is the control disabled? What behavior are you getting?
only two letters away from being an asset
|
|
|
|
|
I want that the user can edit a date with the keyboard. I want that the user can write and delete a date in this control DateTimePicker without use the calendar. It would be similar to a simple textbox editable.
|
|
|
|
|
felixdisc wrote: I want that the user can...
I understand what you want. I asked what behavior you are getting now. The control should already support keyboard use.
only two letters away from being an asset
|
|
|
|
|
Sorry, already it works good.
Thanks
|
|
|
|
|
You shouldn't need to code anything as the keyboard interface is built into the control. I've just looked at a simple alarm clock I wrote and the datetime picker has the standard property values assigned by the VS designer. When running it can be edited with keyboard or mouse.
Alan.
modified on Wednesday, February 4, 2009 7:39 AM
|
|
|
|
|
Hello,
I am trying to create a browse control that will let the user select a file from his computer.
The easy way is with a OpenFileDialog but when i insert "using System.Windows.Forms;" - it says "The type or namesspace "windows" doesn't exist in "system"...". I am using vs 2008.
Can anyone tell my why? or how can i do this in another way?
|
|
|
|
|
Do you have it in your reference list?
My opinion is... If someone has already posted an answer, dont post the SAME answer
|
|
|
|
|
Hi,
what kind of project did you created? Maybe you are missing the reference to the assembly.
Regards
Sebastian
|
|
|
|
|
Let me guess, you're trying to do this from a web application?
|
|
|
|
|
"Let me guess, you're trying to do this from a web application?"
) yeah.. 10x for the answer
one more question: can i post this questions like this one on this forum or is it only for pros? - i am new
|
|
|
|
|
radupopescu777 wrote: can i post this questions like this one on this forum or is it only for pros?
The forums on CodeProject are for everyone, from beginners to experts,
so feel free to use them as much as you want.
If you haven't done so already, you should read the rules[^]
Welcome to CodeProject.
Kristian Sixhoej
"You can't undo the past... but you can certainly not repeat it." - Bruce Willis
|
|
|
|
|
Ah my powers of mind reading are good today. It would help us if you posted ASP.NET questions in the ASP.NET forum and general web development questions in the web development forum.
Back to your question, you cant use the OpenFileDialog from a web app, if you did get it to work it would be browsing the server's filesystem, not the user's.
If you are trying to allow a user to upload a file, what you are looking for is the FileUpload control: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.aspx[^]
|
|
|
|
|
I'm trying to make the user show me where the file that he wants to upload is, and insert it in my db using linq.
Here i am just trying to find the path to the file with the OpenFileDialog.
Can i do this in a better way?
|
|
|
|
|
Yes, you can, and if you read my answer above I tell you how to do it!
|
|
|
|
|
10x for the welcome
this is my code:
protected void Button3_Click(object sender, EventArgs e)
{
Stream myStream = null;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.InitialDirectory = "c:\\";
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 2;
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
if ((myStream = openFileDialog1.OpenFile()) != null)
{
using (myStream)
{
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
}
}
}
when it gets to openFileDialog1.ShowDialog() the browser stops working, it doesn't open the filedialog and says "waiting for localhost". Any ideeas?
has it got something to do with vista or what is the problem?
|
|
|
|
|
i was refering the code USB detection code done in Windows Form application
there WndProc()is the overridden method used for checking the windows Message
but i m not able to use wndproc() in windows service
instead of this is there any other method suitable for windows service?
pls help me out
thanks in advance
|
|
|
|
|
hai all,
we created one folder in remote server , we want to disable copy and cut and rename and delete options on this folder ,how can we do this and can we Create UserId and passwords on this folder .
|
|
|
|