|
Hi
Simply call Picturebox1.Invalidate() and the hilight will be gone
|
|
|
|
|
when i write in visual studio i get dot and arrows instead of spaces how can i remove it
|
|
|
|
|
Edit > Advanced > View White Space
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I need a DateTimePicker which in(de)crements the date, if the hours in(de)crement at 24h/0h.
I started with two DateTimePickers (date/time). The problem is that the scroling part of the timePicker fires no event, if one hits the scrollbar. So I can not see, if the user enters a new time or increments the time by scrolling.
Are there any solutions?
Thanks!
Ariadne
|
|
|
|
|
hi all,
I need to extract a part of the string using regular expression.Say for example, if we have a string like this,
<?xml version="1.0" encoding="UTF-8"?>,
I need to extract the version part alone.
Can anyone suggest me a regular expression to work out this?
Thanks in advance.
Regards
Anuradha
-- modified at 9:15 Tuesday 6th February, 2007
|
|
|
|
|
Your exemplary string is not displayed. Either replace any < character with < or check the "Ignore HTML tags in this message" option beneath the smilies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi all,
Sorry for the inconvienience.
I need to extract a part of the string using regular expression.Say for example, if we have a string like this,
<?xml version="1.0" encoding="UTF-8"?>,
I need to extract the version part alone.
Can anyone suggest me a regular expression to work out this?
Thanks in advance.
Regards
Anuradha
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
I am no regex expert but the following should match the version part : version="[0-9.]*"
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i am not sure abt the regular expression however take alook at this:-
ex: string s="asdfghjkl"
s.substring(3, 4);
-----this displays a part of the string which starts with the third position and the lenght of the string would be 4 from that position!!
Hope this helps!!!!
Gautham
|
|
|
|
|
Thanks for the reply.
But i am not sure of the length of the string which i am going to extract.In that case i cannot use a substring to extract the string.
Hope i am clear.
Thanks once again.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Try:
string test = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
string pattern = ".*(version=\".*?\").*";
string result = Regex.Match(test, pattern).Groups[1].Value;
This will match the version attribute with a result of: version="1.0"
I'm sure you will want to make this more generic.
Kathy.
|
|
|
|
|
Off the top of my head:
\<?xml version="(?<version>[0-9]\.[0-9])"
Remember to escape out anything needed for a string (e.g. the \ and " )
When you get your Match object back from the regular expression you'll find in the Groups collection an item keyed "version" . this will be the version number.
string version = myMatch.Groups["version"];
|
|
|
|
|
Try this:
version\=(?<Version>\"[0-9 \.]*\")
|
|
|
|
|
I am working on an application, in which I have to draw a lot of diagram (almost 500000 rectangles) on the screen and link them through line. And I need view functionalities like movement of the diagram, zoom in/out and save options. Can anyone tell me, DirectDraw can help me in this regards. I mean DirectDraw is best option to develop this application. Or anyone knows about another tool plz let me know. I will b thankful u.
|
|
|
|
|
You might want to look into the new XNA framework from Microsoft.
|
|
|
|
|
i have here textbox for comments- it is generated if it is needed.
TextBox text = new System.Web.UI.WebControls.TextBox();
text.ID = "TextBox" + i;
text.Text = "komentar...";
PlaceHolder1.Controls.Add(text);
Button knof = new Button();
knof.ID="Knof"+i;
knof.Text="Vnesi";
PlaceHolder1.Controls.Add(knof);
string komentar=text.Text;
How can i send komentar in 1 function so i could write it to database?
I think i should use onclick or click method
-- modified at 8:56 Tuesday 6th February, 2007
|
|
|
|
|
Yes. Register a handler for the button and extract the text from the textbox and insert it into your database using whatever method is appropriate for you.
only two letters away from being an asset
|
|
|
|
|
Aloha,
Our poor users doesn't have the rights necessary to access files in the program files dir, so we need to move a few configuration files to their "documents and settings" folder.
Accessing it from the program is easy: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), but how do we create some example files when the user install our program.
For each of the files in the setup project we can set a folder, but documents and settings is not an option (we can only choose between: application folder, user's desktop and user's programs menu.
Any idea how we tell the installer that we want to write our files to the user's documents and settings folder?
Thank you,
|
|
|
|
|
I think the way it's typically done is put them in the application folder. Then, default the install location to the user's documents and settings area somewhere.
Come to think of it, the standard way it's done is this: install almost always requires an administrator. However, running your software should not require an administrator. For example, installing the .NET framework requires an admin, but running any of the .NET framework tools or running .NET applications do not require an admin. So, if that's an option for them, install the software as an admin, run the software as limited user.
|
|
|
|
|
Thank you for your reply.
I choose the simple option. Simply copy the files from the app. directory to the local application directory when the app. starts
|
|
|
|
|
Hello,
I have a crystal report that I use to print a customized bill format (I managed the special locations of the feilds to match the actual bill data locations), without displaying it to the user.
My question is how can I make the database path valid to any system while i can show the data fields in thier proper locations to match the actual bill paper?
Regards,
Butterfly
|
|
|
|
|
Butterfly_h wrote: how can I make the database path valid to any system
I'm not sure what you mean. Are we talking an .mdb file here?
|
|
|
|
|
yes an Access database.
I added the access database to my crystal report and located the feilds as it is on the actual form and the printing result is great. But how can I make the program dynamicly find the database for the crystal report if I installed it on the user system?
Regards,
Butterfly
|
|
|
|
|
As the subject says, I need to change the column width in a DataGrid. The problem is that I'm using .net framework 1.1 (Visual Studio 2003). The code is this:
this.dataGrid.DataSource = myDataTable;
//here should come something like: this.dataGrid.Columns["Col1"].Width = 0 or whatever
It's driving me crazy... I can't seem to find a collection of columns...
And another thing: is there a way to set some auto sizing propery for all columns to fit the DataGrid? In VS 2005 that's set easily, but in VS 2003... I just can't seem to find it...
Thanks!
|
|
|
|
|
go for method like this....
private void datagrid_itemdatabound(object sender, system.web.ui.webcontros.datagrideventars e)
{
.....
.....
e.items.cells[column number].width= value;
....
}
and for the datagrid events write this method name for itemdatabound event.
Hope this works!!!
Gautham
|
|
|
|