|
Try SharpDevelop (free IDE, open-source equivalent for VS), where u can convert the code by one click. When you have *.vb files converted, just create a new VB project (in VS or SharpDev, whatever) and include all of them.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
How would you go about converting files in SharpDevelop? I have the program, but cant find any option to convert C# > VB.net
|
|
|
|
|
Hi,
I looking some way to find the Regular expression of some string -
What i mean is that i will give some function string and this function will return some Regular expression that match to this string.
Is there is some way to do it in c# ?
Thanks.
|
|
|
|
|
Nothing built in, you could write a parser to work out, for example, how many alphabetical characters occur, etc, and build *something* that will match.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yeah, what he said. Plus, to get anything useful from such a routine, I think you'd need to provide several sample strings to get something worthwhile.
If you put in "Hello world", would any of the following be satisfactory?
"^Hello world$"
"^..... .....$"
"^\w\w\w\w\w\s\w\w\w\w\w$"
"^.+ .+$"
"^\w+ \w+$"
|
|
|
|
|
Just curious Yanshof, but what do you need this for?
If you are looking to find a string in another (long) string, then theres a fair few functions on the string class for doing this. RegExs might be very powerful and flexible, but don't assume they are *fast* for simple tasks.
|
|
|
|
|
Sorry, but this question makes no sense, because if you want some regular expression then just return the string itself as pattern.
A much more interesting question would be to find a regular expression of minimal length but I don't think that this is an easy task
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
i want to send date time picker details to oledb database.under code not work.my languege is visualstidio c#.net.plese help.
"insert into Query1(accountdate) values('" + datetimepicker1.text+ "')";
|
|
|
|
|
1 - try meaningful subjects. All the posts here are about C#, or they are in the wrong place. Honestly, you have 9 posts here, and 8 are named 'C#'
2 - I answered this yesterday. So did several other people. If you can't understand the answers, then you need to ask further questions.
Try using parameterised queries. Otherwise, you may need to do a cast on the type of the data being passed in, in your SQL.
This is ultimately an SQL question. Have you tried working out what you can type into your database directly to perform this action ? If you're going to string mash your SQL, that's the best way to work it out and get meaningful error information while you work through it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: answered this yesterday. So did several other people.
Here we go again, huh?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Use a more meaningful subject line, instead of just c#.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I need to be able to do JPEG lossless rotations/transformations in C#. Unfortunately, the methods available in C# are not reliable enough.
Does anyone have a wrapper for jpegtran for use in C#?
|
|
|
|
|
If it's a C++ dll, you can use p/invoke
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Unfortunately, it's an exe.
|
|
|
|
|
Is there any way to expand (or collapse) individual categories in the PropertyGrid?
|
|
|
|
|
hi, i recently started rewriting a lot of my c++ code over to c# and have come across a very tough issue which i would really like some help solving. what i am trying to make is a program that allows a user to load a dll file at run time which the dll file would be a .net managed dll file like the application BUT i do not want the application to know anything about the dll files, i have seen a lot of stuff on doing this but so far not much of it has worked as i think i am not writing the dll file correctly, the dll file i would like to be able to use forms with and i think i have not done that correctly which is making it impossible to load the dll file correctly. so if someone could please show me something on how to write the dll file correctly so it can load forms properly and allow my application to load the dll file correctly, i would very much appreciate it.
thank you in advance.
|
|
|
|
|
DataTable passwordTable = user_TableTableAdapter.GetDataBy(textBox1.Text);//getDataBy returns a Datatable
DataRow [] passwordRow = passwordTable.Select();
Object passwordObject = passwordRow.GetValue(0);
string Userpassword = Convert.ToString(passwordObject);//trying to retrieve password...
if (Userpassword == textBox2.Text)
{
Form n = new Form4();
n.Show();
this.Hide();
}
else
MessageBox.Show("Wrong Password");
Im trying to compare the password entered on textbox to password in SQL Server..
returns a error..Any better way of doing this, let me know..;)
Is this chair taken
|
|
|
|
|
Bonsta wrote: Im trying to compare the password entered on textbox to password in SQL Server..
returns a error
Can you be more specific about the error that you are getting?
|
|
|
|
|
Looks like you have password in plain-text since it looks as if you have the user enter a password in the textBox2. This is not good practice. I'd look at cryptography algorithms before continuing on.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have a SQL 2005 Database that has a Table called User that stores users of the application and their passwords and access levels...
I want to:
1)retrieve the pasword for the Username entered on the textbox1.(if username not found show Error)
2)check retrieved password against the password entered on textbox2
3)if they match, open next form(Form4())
I have been looking for articles on the site, but have not been successful...If there is a simpler way plz help.
Thanks in advance.....;)
Is this chair taken
|
|
|
|
|
Bonsta wrote: check retrieved password against the password entered on textbox2
Like I said before, not a good idea having password in plain text. Have it encrypted on the database side, and characters masked out in the textbox. When doing the check, encrypt the textbox text to a temporary string and then compare against the database.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Is there a way to display an additional dialog in the Setup project generated by Visual Studio 2003?
I want to display a dialog which will require the user to enter installation password. The dialog would first have to generate a random string, and then check if the password is the right one for that string. I have allready made that dialog, so my problem is the following:
I have tried two things:
1) I created an Installer class, and overriden the OnBeforeInstall method, to display my dialog. Then I added the compiled FormDialog.EXE as a Custom Action in the Setup project. However, the dialog appears during the Installation Progress, when the progress meter shows that the installation is almost complete. And I wanted it to display before the progress bar is shown, so that the installation would not start before entering the password.
2) I added a "Textboxes (A)" dialog in the user interface of the Setup project. But, I do not know how to make the setup generate the random string, and check if the password is correct, since I am not able to make any Installer class run before the progress bar of the installation is shown.
Is there a way to run a Custom Action before the Progress screen is show?
And can I make it change value of a TextBox in "Textboxes (A)" dialog?
Thanks
|
|
|
|
|
Custom actions will always run after the installation is completed when the progress bar reaches 100%.
As for adding a custom screen it is possible and you will have to edit the MSI database using a tool called Orca.
Be warned using Orca is a real pain in the butt. I'm surprised MS hasn't done much in this area with Visual Studio.
I will give you a refernce to a codeproject article that discusses addition of a custom installation screen before the installation actually takes place. The article should give you an idea "what" is involved with MSI editing and adding a custom screen.
http://www.codeproject.com/useritems/ChangeVDirWebSetupProject.asp?msg=1631151&Page=2&userid=1785827&mode=all#xx1631151xx[^]
Finally, you can investigate WIX- Windows Installer XML. This stuff is really freaking cool.
|
|
|
|
|
Hi all,
I want to have only vertical scrollbar in my listview .
Can anyone please tell me how can i do it?
Please provide code.
Praveen Sharma
|
|
|
|
|
Hello
I am messing around making things that tell the time zone and other things to learn c #
I was wandering when you see a console app with numbers eg
1. get time zone
2. get date and time
3 etc
how do you do such a menu
Thanks for the help
Mark
Noobster
|
|
|
|