|
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));
}
}
|
|
|
|
|
you need to return a string value in your method
|
|
|
|
|
Thanks.... Any idea how I can post the text of the xml ? If I tell it to post ToString I get the object name and not the text of the XmlDocument?
|
|
|
|
|
myXmlDocument.OuterXml
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm tryin to find online a sample of a Windows code on how to access an Access DataBase,how to retreive and dispaly Data from different tables, and also how to update that database, all my online search hits were samples on Sql server .
aPerfectTool
|
|
|
|
|
Hi,
Try using the following code.
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=C:\Samples\Test.mdb; Mode=Share Deny None;Persist Security Info=False;Jet OLEDB:System database=C:\SYSTEM.MDW;");
conn.Open();
OleDbDataAdapter da = new OleDbDataAdapter();
OleDbCommand command = new OleDbCommand();
command.Connection = conn;
command.CommandText = "select * from person" ;
da.SelectCommand = command;
DataSet ds = new DataSet();
da.Fill(ds);
Thanks and Regards
Pani
|
|
|
|
|
//insert the data into table using the access connection
//that is table having the two field
string name = t1.text;
int regno = t2.text
//stud is ur table name
//ur declare this variable as varchar in ur table then using '"++"'between //the varible
string query = "insert into stud values('"+name+"','"+regno+"');
OleDbConnection con = new OleDbConnection(@"Provider = Microsoft.Jet.OLEDB4.0;
Password = ; User id=Admin;Data Source =d:\table\stud.mdb");
con.Open();
OleDbCommand cmd=new OleDbCommand(query,con);
cmd.ExecuteNonQuery();
con.Close();
|
|
|
|
|
private void HomeFrom_Activated(object sender, System.EventArgs e)<br />
{<br />
<br />
<br />
PrimeInfoThread pTh = new PrimeInfoThread(this.pictureBox1,this.panel4,this.button1,this.button3,this.SLabel);<br />
Thread t = new Thread(new ThreadStart(pTh.ThreadProc));<br />
t.Start(); <br />
<br />
}<br />
<br />
...<br />
public class PrimeInfoThread<br />
{<br />
private System.Windows.Forms.PictureBox hPic ;<br />
private System.Windows.Forms.Panel hPan ;<br />
private System.Windows.Forms.Button but1 ;<br />
private System.Windows.Forms.Button but2 ;<br />
private System.Windows.Forms.Label slab ;<br />
<br />
public PrimeInfoThread(System.Windows.Forms.PictureBox hP,<br />
System.Windows.Forms.Panel hpanel,<br />
System.Windows.Forms.Button b1,<br />
System.Windows.Forms.Button b2,<br />
System.Windows.Forms.Label Sl) <br />
{<br />
hPic = hP;<br />
hPan = hpanel;<br />
but1 = b1;<br />
but2 = b2;<br />
slab = Sl;<br />
}<br />
<br />
public void ThreadProc() <br />
{<br />
EnumGetEDID InitEnumObj = new EnumGetEDID();<br />
InitEnumObj.AppInitEnum(slab); <br />
hPic.Hide();<br />
hPan.Hide();<br />
but1.Show();<br />
but2.Show();<br />
<br />
}<br />
<br />
}<br />
I have the above code where I modify my form controls in another thread.
Is is safe to do like this. How to do this using thread-safe calls/delegates.
Thanks.
|
|
|
|
|
Take a look at this[^] article on BeginInvoke
Hope this helps
Cheers,
Will H
|
|
|
|
|
Consider using class Monitor
|
|
|
|