Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. minhhoa

    Anyone knows how to do it...

    It is unclear to me then I have two proposal solution for you: 1. Equivalent to your C++ example string pszVar = “int iVar = 10;”; 2. Using "Emitting Dynamic Assemblies" which allows you to - Defines assemblies at run time and then runs and/or saves them to disk. - Defines modules...
  2. minhhoa

    CheckedListBox Help for Newbie?

    To iterate through the checked items and get the text into a string, do as follows: IEnumerator myEnumerator = checkedListBox1.CheckedIndices.GetEnumerator(); while (myEnumerator.MoveNext() != false) { int i = (int)myEnumerator.Current; string s = checkedListBox1.Items[i].ToString()...
  3. minhhoa

    Add a ToolBoxItem

    I try to develop an Addin using C# in which I create a custom toolboxbar and intend to add some system .NET controls such as "Button", "CheckBox" to it. The problem is that there is no thrown exception but it shows no toolbox items in my custom tool bar. Below is the source...
  4. minhhoa

    Checking if Application is already running

    I see it runs OK when I put them in the main entry point of the application and instead of "this.Close" I use "return".
  5. minhhoa

    C# textbox

    Paste the following code to your form constructor then run it to see how to create a "dynamic" textbox and put it on a panel: System.Windows.Forms.Panel m_Panel=new Panel(); this.Controls.Add(m_Panel); System.Windows.Forms.TextBox m_TextBox=new TextBox()...
  6. minhhoa

    ADO

    You can use ADOX (COM) objects to do it. See ADOX API Reference in MSDN library for more details. Minh Hoa
  7. minhhoa

    How to use WinAPI in C#???

    It doesn't meet my requirement. Thanks anyway. I'm trying to hook another processes window messages but I don't know why it isn't recommended !!!
  8. minhhoa

    How to use WinAPI in C#???

    Here it is: //*******************************************************// using System; namespace CSToolWinAddin { /// <summary> /// Summary description for HookMessage. /// </summary> /// using System.Runtime.InteropServices; delegate void MsgEventHandler(object source, MsgEventArgs...
  9. minhhoa

    Retrieving an ArrayList from a Hashtable

    You can solve it as follows: alNumbers = (System.Collections.ArrayList) enTest.Value;
  10. minhhoa

    IEnumerator probelm

    The problem is that you can not assign a structProcessInfo type to a ProcessList type. To fix this you can change as follows: structProcessInfo temp; foreach(DictionaryEntry myEntry in mypl) { temp = (structProcessInfo) myEntry.Value; Console.WriteLine(&quot;{0} \t {1}&quot...
  11. minhhoa

    How to use WinAPI in C#???

    Thanks for your help. I get problems on the type convertion. Could you give me more details?
  12. minhhoa

    How to use WinAPI in C#???

    Does anyone know how to declare the funtions: SetWindowLong and CallWindowProc (in User32.dll) and how to use them in C#? Thanks.
  13. minhhoa

    A class similar to CString

    I suggest as follows: CString s('\0',2); s.SetAt(1,100); cout<<(int)s[1];

Part and Inventory Search

Back
Top