User Profile

Collapse

Profile Sidebar

Collapse
oohay251
oohay251
Last Activity: Sep 25 '07, 12:06 AM
Joined: May 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • oohay251
    replied to boolean for uneven numbers
    in .NET
    use bitwise And

    If the Least Significant Bit of a value is 0 then the value is even.
    bool IsEven(int x) { return (x & 0x01) == 0; }
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to How to create control arrays in vb.net
    in .NET
    .NET is so much richer for accessing and manipulating controls and their events, control arrays really aren't necessary.
    But if you searched your .NET documents for "control arrays" you'd get a return on the article "Life Without Control Arrays in Visual Basic .NET", http://msdn2.microsoft.com/en-us/lib...42(VS.71).aspx, which may help you.
    It mentioned a compatibility library that actually gives you back control...
    See more | Go to post
    Last edited by SammyB; May 29 '07, 07:43 PM. Reason: added URL.

    Leave a comment:


  • Read that introductory material.

    using System.Diagnost ics;
    static class ShowEventLog
    {
    static void Main()
    {
    NegotiateStream ns = new NegotiateStream (new System.IO.
    EventLog el = new EventLog("Appli cation","192.16 8.1.101");
    foreach (EventLogEntry ele in el.Entries)
    {
    Console.WriteLi ne(ele.TimeWrit ten);...
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Send Email Message using C#
    in .NET
    Well, doesn't your mail provider give you support on how to set up a mail client like Outlook or Eudora?
    If so, what settings do they tell you to use?

    If you have a network administrator what do they tell you to use?
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Send Email Message using C#
    in .NET
    Your code runs fine on my system.
    Likely your credentials.
    Or maybe your hostname cannot be resolved??
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to How to run C++ program on C#??
    in .NET
    compile your C++ as a class library and reference it in your C# project.
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Send Email Message using C#
    in .NET
    post the exact output of your exception.
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Prblm Web Control
    in .NET
    That's exactly what you must do - make a Property.

    In your control:

    private _onlyChar = false; //or whatever default value you want for the control
    public bool onlyChar
    {
    get { return _onlyChar; }
    set { _onlyChar = value; }
    }

    the property will be exposed for use:
    <%@ Register src="~/mycontrol.ascx" Tagname="myCtl" Tagprefix="ctl"...
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to An Array of a Generic Type
    in .NET
    The first problem is argTable is not assigned a type in your declaration.
    I'll assume string for demo purposes.

    If you know T at design-time, make the method generic

    public Int32 GetIdentity<T>( string argTable, params ColumnValuePair <T>[] argKey)

    so,

    ColumnValuePair <string> x,y,z;
    x = y = z = new ColumnValuePair <string>();
    GetIdentity<str ing>("blah",x,y ,x);...
    See more | Go to post

    Leave a comment:


  • peruse the System.Data.Dat aSet
    and System.Data.Sql Client.SqlDataA dapter classes as well.
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Remote machine time using NET TIME
    in .NET
    You can use the System.Manageme nt WMI stuff.

    In your .Net documenation:

    Search "Advanced Programming Topics in WMI .NET " and check out the "How To: Connect to a Remote Computer"

    Then lookup the WMI topics
    - Win32_LocalTime to develop and use a "Select * from Win32_LocalTime " WMI query.
    - "WMI Update Query Language" to form an update query to change...
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Help with xml and .net
    in .NET
    Use System.Xml classes to load your xml and iterate your nodes.
    Use System.IO.File to manipulate your files.

    Good luck.
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to query strings
    in .NET
    your code to fill the text boxes should be placed in the .aspx pages Page_Load event procedure.
    See more | Go to post

    Leave a comment:


  • Who is going to read the strings at 50 samples per second?
    Would it be satisfactory to program it to just show the most recent string received/queued?
    I've not had a reason to mess with serial ports before, but have you looked into the System.IO.Ports .SerialPort class? It provides synchronous and event-driven access to the pin signals and easy access to a Stream object to read and write from/to the port.

    To test performance,...
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to active directory
    in .NET
    I've tackled this problem before as an administrator.
    Just Google keywords Active Directory Last Logon and you'll get references like this one:
    http://www.ondotnet.co m/pub/a/dotnet/excerpt/ADcookbook_chap 1/index.html?page =2

    They all cover pretty much the same ground.
    If you really want to find out who is currently logged on, I think you would have query the computer they are logged on at.
    Possibly a procedure...
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to HTML To PDF Converter for .NET
    in .NET
    try http://www.cutepdf.com
    See if the have a library to help you.
    See more | Go to post

    Leave a comment:


  • Likely the mysql assembly does not have a strong name for installation into the GAC.
    Try adding it as a direct reference to your project.

    If that works, peruse "How To Install an Assembly into the Global Assembly Cache in Visual C# .NET" in your .Net documentation
    See more | Go to post

    Leave a comment:


  • Free tool
    http://sourceforge.net/projects/regulator/
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to Calling F9 function in Excel
    in .NET
    you can use things like System.Windows. Forms.SendKeys

    Win32 Library's SendInput and SetForeGroundWi ndow type calls using "Using Win32 and Other Libraries" from the .Net documentation.
    See more | Go to post

    Leave a comment:


  • oohay251
    replied to secure and unsecure items
    in .NET
    The answer depends on the context in which you ask your question.

    Do you mean HTTPS vs HTTP ?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...