|
Once again, the only practical option you have is to rewrite the application from scratch. There are no steps to go through to convert the code! You have to write your own steps based on your own VB6 code!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm currently developing some kind of editor by using the PropertyGrid. I saw in VS.Net that the property in PropertyGrid can be validated in range, I want to add that feature in my application also, but I don't know how.
Does anyone know anything about this ? Do it need to create new TypeConvertor ? Or just specify the attribute to that property ?
Wutipong W.
|
|
|
|
|
Hi
ProperyGrid control displays the properties collection for an object. For
each property in the propertygrid, its value can only be displayed in
string representation.
For a property that is build-in type, .Net has provided the
validation, while for custom type, we should implement the TypeConverter to
do the type convertion and validation.
Thanks and Regards
Pani
|
|
|
|
|
OK, I have to implement the TypeConverter.
Thank you very much
Wutipong.
|
|
|
|
|
I would like to ask one more question.
What is displayed in the PropertyGrid Cells anyway, is it just take string from ToString() method, or using some mechanism to create the panel and display it there, etc ? And how can I customize the way it display property in the PropertyGrid.
Well, I means, what is espect to return from TypeConverter to use in PropertyGrid ?
Regards,
Wutipong
-- modified at 2:48 Wednesday 1st February, 2006
|
|
|
|
|
|
I'll be very thankful,if someone lets me know the way by which I could convert a Visual Basic 6.0 project to C#.NET.
After migration, the code must produce the same results as seen in VB6.0.
love coders'
|
|
|
|
|
That is not possible I think. You can convert from VB6 to VB.Net but even then you have to do some things manually.
Greetings,
Ingo
|
|
|
|
|
The best solution is a complete rewrite, by hand, from scratch.
You COULD convert the app using the Conversion Wizard with VB6, then convert that code to C#. Chances are, you'll have to tweak a bunch of stuff by hand to get it to work in VB.NET, then you'll have to do a bunch of other things to get it to work in C#.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Use the upgrade wizard to convert to VB.NET. It's not perfect, but it can be done.
Once your code is in VB.NET you can easily convert to C# using either ours (Instant C#) or any other decent VB.NET to C# converter. There will be some manual adjustments, but nothing you can't handle (we offer support to help out with this also).
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# converter
Instant VB: C# to VB.NET converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB.NET to J# converter
Clear VB: Cleans up VB.NET code
|
|
|
|
|
I am looking for a messagebox that does not have any buttons. Is there such thing in the .net framework?
|
|
|
|
|
Why would you want such a messagebox? It's not good UI design.
If you *really* think you want something like that, you can create a new form with no Ok or Cancel buttons and display your message there instead.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
The reason i want that is because i wanted some of those "Please wait" messages that after a while it will close it self ( invoked by something else).
Is there a way?
|
|
|
|
|
Hi , Iam using the following code to get Excel data
m_ConnXL = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sXLFilePath + ";Extended Properties=Excel 8.0;");
m_ConnXL.Open();
sXLQuery = "select * from [sheet1$]"
dtXL = ExecuteXLQuery(sXLQuery); //simple method to excute the query & to return the DataTable
It fetches the all the rows including the hidden ones , how can i avoid fetching the hideen rows...?
Thank you...
|
|
|
|
|
Hi
I have almost finished an application in VS. I have tried releasing it a few times before to test it standalone somewhere else. I found that the files i have included into the solution will show up as xxx.deploy
Is there any way to make these files without the .deploy?
Also, i have created a mdb database file at design time. When i publish the application, it says it cannot find the mdb file at where it should be. A dialog box comes up and say
Error: 'C:\Documents and settings\Wallace\Local settings\Apps\2.0\A5mp6gt0.zcd\Database\database.mdb' is not a valid path. Make sure that .... blah blah blah
How can I fix it? should i not include the database as part of my application?
What should i do???
|
|
|
|
|
2hdass wrote: Error: 'C:\Documents and settings\Wallace\Local settings\Apps\2.0\A5mp6gt0.zcd\Database\database.mdb' is not a valid path. Make sure that .... blah blah blah
Is the MDB file location the same on both your development machine and the target machine? I doubt it. You'd be better off without hardcoding the location of the database.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
I would like to know how to find the ToolBox in Visual Studio .Net 2003.
Can someone help me Thanks
|
|
|
|
|
Go to the View menu, and choose - would you have guessed it - Toolbox.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
Thats not what I mean. I know about that, what I need is a place to put a 'DLL'.
One of your people developed a 'TimePicker' and I would like to install it. The instructions call for putting the DLL in the ToolBox.
|
|
|
|
|
I'm sorry, but you should make your questions more specific.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
It's quite easy: you only have to click the right mouse button to pop up the context menu for a ToolBox panel and you'll get the option to add/remove items. This is the place where you can select the dll.
Regards,
mav
|
|
|
|
|
Hello,
I was wondering if there is a precise way of determining file download speed when using asynchronous read operations on Streams(BeginRead)? Particularry I'm downloading files using HttpWebRequest/HttpWebResponse.
Thanks
|
|
|
|
|
Is it possible to use a control such as textbox or something similar on a windows form and allow the user to change the font, size, etc...?
In addition I would like to retrieve the exact font and size, etc that was saved.
Thanks
|
|
|
|
|
Yes, the control should have a Font property. You can't change the properties on a Font though, you'd need to create a new font when a property such as size gets changed by the user.
fmardani wrote: In addition I would like to retrieve the exact font and size, etc that was saved.
From where ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am trying to figure out how to post a memory buffer which is composed of an XML document, to a ASP page and I am getting a specific error that I am not sure why its throwing. The error is "not all code paths return a value." Below is the code, Is there someone here that can point out my mistake?
Many thanks in advance.
--Derk
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
public class UTSPost
{
private const string BASE_URI = "http://Post/_Update.asp";
public string PostToWS(XmlDocument xmldoc)
{
string uriString = BASE_URI;
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
string postData = xmldoc.ToString();
// Apply ASCII Encoding to obtain the string as a byte array.
byte[] postArray = Encoding.ASCII.GetBytes(postData);
System.Windows.Forms.MessageBox.Show("Uploading data ...");
myWebClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
myWebClient.UseDefaultCredentials = true;
//UploadData implicitly sets HTTP POST as the request method.
byte[] responseArray = myWebClient.UploadData(uriString, postArray);
// Decode and display the response.
//System.Windows.Forms.MessageBox.Show("Response received was :{0}", Encoding.ASCII.GetString(responseArray));
}
}
|
|
|
|