c#-to-vb.net

    -1熱度

    1回答

    我不能將此代碼轉換爲vb.net。請幫幫我。謝謝。 using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace RssReader.Common { /// <summary> /// Provides a standard change-notificatio

    4熱度

    1回答

    我想在VB.net中使用DWORD WINAPI GetMessagePos(void)函數。 函數返回一個DWORD(32位),它可以存儲在VB.net整型變量中。從MSDN文檔引用: x座標位於返回值的低位;在 y座標處於高位短(兩者都代表簽署價值 ,因爲他們可以利用負值的系統上有多個 顯示器) 我怎樣才能檢索到的X和Y座標用vb.net? 我目前正在 <System.Runtime.Inte

    0熱度

    2回答

    在C#中,只需在代碼中放置一些大括號即可創建新的作用域。例如: { Foo fooA = new Foo(); fooA.doSomething(); fooA.doSomethingElse(); } { // Can't refer to fooA in here. Foo fooB = new Foo(); fooB.doSo

    -3熱度

    4回答

    我是一個學習.NET的初學者。 我試圖在控制檯readline中解析我的整數,但它顯示一個格式異常。 我的代碼: using System; namespace inputoutput { class Program { static void Main() { string firstname; string las

    0熱度

    2回答

    ,我們有以下功能的DataGrid的 DataGrid.HitTestType.ColumnResize ,所以我們可以捕捉到列MouseDown事件調整活動如下 Dim hti As DataGrid.HitTestInfo = DataGrid1.HitTest(e.X, e.Y) If hti.Type = DataGrid.HitTestType.ColumnResize Then

    0熱度

    1回答

    接口I有一個C#代碼如下: [Serializable] public class RoundedHandle : GoRoundedRectangle, IGoHandle { GoRoundedRectangle是一個類。 IGoHandle是一個接口。 我曾試圖將其轉換爲VB .NET代碼: <Serializable()> Public Class RoundedHandle I

    1熱度

    1回答

    請將需要將用C#編寫的圖像控件的圖像url屬性轉換爲vb.net中的等效圖像。我正在關注如何使用base64在gridview上顯示圖像的教程,這是本教程的網址。 http://dotnetawesome.blogspot.in/2013/10/how-to-insert-image-into-database-and.html。該教程是用C#編寫請我需要這個在vb.net相當於 <ItemTem

    0熱度

    3回答

    我從來沒有真正學過VB.NET,你會如何在VB.NET中編寫它? 下面是代碼: System.IO.StreamReader file = new System.IO.StreamReader(ofd_tracking_file.FileName); while ((line = file.ReadLine()) != null) { } 難道是這樣嗎? Dim file As Syst

    0熱度

    1回答

    我目前正在將一個類從C#轉換爲Visual Basic 2010. 大部分組件都工作正常,直到我來到EventHandlers。我一直無法通過自己的下面一行代碼轉換爲Visual Basic中,既不使用也不轉換器: public event EventHandler<StringEventArgs> ServerMessage = delegate { }; 該轉換器的代碼只給我的錯誤‘語句的

    0熱度

    2回答

    什麼是VB.NET相當於此代碼 void foo() { ... { //anonymous code block starts here ... } //anonymous code block ends here }