|
I found out what the problem was... I was using grouping (...) unecessarly. When you use grouping the regex engine creates a sort of variable (slowing things down), when I wasn't even using the grouping.. I just copied it from some example I saw.
My whole regex opperstion only takes 9 seconds now, compared to never ending.
/\ |_ E X E GG
|
|
|
|
|
I forgot to mention that I also need help on how to open a mysql database in C#. Any source code would be greatly appreciated.
|
|
|
|
|
The tutorial you google will include that as well.
|
|
|
|
|
This article[^] describes how to use the System.Data.Odbc classes to connect to and manipulate a MySql database. A searche for MySql in the search window at the to will reveal many others that might be useful.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
How do I upgrade a mysql database that is tied to visual c#? How do I make a loading page using visual c#? How do I take the value in the database and utilize it in visual c#.
|
|
|
|
|
use the dataAdapter class and the setup wizards provided in visual studio. If you are not familiar with ADO.NET, I suggest you google mysql and C# and look for some tutorials.
|
|
|
|
|
Hi,
I have this product which is speech related one, i have to redistribute bunch of .MSM files , and one .exe ( all the dll's i merged using ILMerge into an .EXE), All this i can using visual studio setup wizard which generates a final .MSI file which works great, however what should i do to generate .EXE as my final result instead of .MSI
thanks in advance
Samar Aarkotti
|
|
|
|
|
You want your installer to not be a .msi ? why ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
one reason is i am too lazy to write a code protection (trial version) i have tried lot of way's like XML digital signatures , but still it can be broken, so i have finally decided to make 2 version's trial(with limited features) and full .
there are many softwares i can buy who does this kind of licensing and versioning, but all of them require .EXE file to wrap their code around i guess. that is the reason i was asking.
|
|
|
|
|
I don't get it. Surely the exe that these products want to use is the actual program, not the installer ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Not to mention that most exe protectors don't work on .NET apps.
--
Joel Lucsy
|
|
|
|
|
Hello everyone. It's me again, and on my project teh user is suppose to press a button, and then when the post back occurs I check what the user entered in in the dynamic text box, and if it is less than a certain number it should put a different number that is valid in. Let's say the user enters in 10, but the minimum number to enter in is 15, it should put that number in the text box. I tried Request.Form.Set() but that is apparently read-only so that did not work. Thanks.
Sincerely,
The Major Rager
|
|
|
|
|
Are you having trouble checking the value? If so, use the RangeValidator class, you can set the control for it to validate, maximum value and minimum value. If the value of the text box is outside the range, you can set the value of the text box to the minimum. I would do this in the page_load section in an if block "if (Page.IsPostBack)"
ex
if ( Page.IsPostBack )
{
rangevalidator.ControlToValidate = "textbox1";
rangevalidator.MaximumValue = "100";
rangevalidator.MinimumValue = "15";
if ( rangevalidator.IsValid )
{
// do your thing
}
else
{
textbox1.Text = "15";
rangevalidator.ErrorMessage = "whatever you want to tell the user";
}
}
|
|
|
|
|
Hi, thanks for replying to my message. I actually used this
<br />
<br />
((TextBox)(Page.FindControl(identity)));<br />
<br />
where identity was the name of the text box
and I was able to get and cast the control as a text box
and then manipulate the data in it. Thanks a lot for replying however!
Sincerely,
The Major Rager
|
|
|
|
|
I wanted to do some TAPI programming. I want to make applications like answering machines, phne recorders, etc. How do i go about this? Is there some kind of TAPI class in .NET, else where should I look for information to get me started?
|
|
|
|
|
Mridang Agarwal wrote: I wanted to do some TAPI programming. I want to make applications like answering machines, phne recorders, etc. How do i go about this? Is there some kind of TAPI class in .NET, else where should I look for information to get me started?
There is no TAPI class in .NET.
Your best bet is this here[^].
TAPI and .NET aren't the best of bed-fellows. The Tapi3 COM object has problems when used via COM Interop. I still prefer to write C++ COM objects that do the telephony interaction via TAPI 2
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
How can i display three state checkboxes in a treeview. When I set the Checkboxes property to True in a treeview, i get a two state checkbox next to each item. But what i was looking for was a three state checkbox?
|
|
|
|
|
Winform labels, buttons, etc don't respond to the normal/large/extra large font settings that can be specified in display properties. Is there an easy way to do an appwide detection+change at runtime for accescibility purposes? I realize the bigger fonts will make things "interesting" regarding layout in places, but if simply detecting and doing the font change is a major effort the other problem is a moot point.
|
|
|
|
|
I have a problem with very long string value. How i can store it in variable and operate it? Thanks
Nothing
|
|
|
|
|
You can theoretically store billions of chars in a string, unless you have several gig of ram though performance will be an issue though. What do you mean by "operate it"?
|
|
|
|
|
Hi all,
Can I convert a string into code?
For egs. if I have textbox with the text:
"DataSet1.Tables[0].Rows[0][0].ToString()"
I want to convert it to code..
I must say that I want to use objects that the application creates, so the object ICodeCompiler cannot help me..
Is there a way of doing it...???
Thanks
RoyRose
|
|
|
|
|
What do you mean "I want to convert it to code"? If you want to dynamically create objects and methods in IL on the fly it is possible but far from a trivial task.
I would also suggest that allowing your application to blindly execute instructions from any data source is a best a bad design pattern and at worst a huge security risk.
|
|
|
|
|
unless he wants to include some sort of command interpreter in his application.
but that would be another subject.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hey Tom,
I'll tell you exactly what I mean.
I want to have a control (like label) that the Text property is a code that refers to table field plus other manipulation, for example
label.text = "Day(Orders.OrderDate)"
will get the name of the day the customer bought a product...
OR
label.text = "Age(table["customer"].Row["BirthDate"])"
Age is a function that gets a dateTime and returns the age...
It's very similar to script code.
I can manipulate only the current row.
I won't be able to change the DB just to show it.
I use other databinded labels, when I walk throught the rows, the label's data change & also the expression-labels suppose to change...
|
|
|
|
|
You know, I would almost recommend writing that kind of manipulation into the database itself instead of trying to pull it to the client to reinterpt. Or if you are doing more of a report kind of thing you might want to look into making the database return Xml so you can apply an Xslt. Or heck why not look into buying any number of the software advertised here to do this kind of thing.
|
|
|
|