Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: foamy

Page 1 of 26 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    783

    Re: Populate value in textboxes

    That was hardly a useful reply, as the OP will obviously not be able to answer those questions.

    I would suggest looking at the SqlDataReader class.

    This sample should get you started (modified...
  2. Replies
    4
    Views
    458

    Re: Extracting date from EventArgs

    Well, the generic EventArgs does not contain any such properties.
    I think you should handle the MouseClick event rather than the Click event..
  3. Replies
    4
    Views
    920

    Re: Need help for Loading bar

    Sounds like a pretty typical async problem.
    Looking into a BackgroundWorker would probably work well for you. Otherwise, you could achieve this manually using threading.

    Here's a small sample to...
  4. Replies
    4
    Views
    458

    Re: Extracting date from EventArgs

    Posting a sample of your code would help. I'm hard pressed to understand what you mean by "Extracting the values" - if you can see them when debugging, they should be available just like any other...
  5. Replies
    2
    Views
    873

    Re: Convert object list to List

    The obvious way would be



    List<string> uniqueline = new List<string>();
    foreach(object o in ProcessLogLines[loglineid])
    {
    uniqueline.Add(o.ToString());
    }
  6. Replies
    6
    Views
    4,803

    Re: Problem using List Except

    I did some debugging on your code. It seems if the objects in list1 are the same instances as the ones in list2, the code works. However, if the objects are different instances with the same values,...
  7. Replies
    1
    Views
    375

    Re: how do i display a loop in a textblock

    Firstly, you will need to set the TextBox's Multiline property to true.
    Secondly, do something like this:



    while (a < b)
    {
    textblock1.text += "hello world" + a + Environment.NewLine;
    ...
  8. Replies
    1
    Views
    405

    Re: Login error showing up in SQL database logs

    I would try logging the time when your app connects to the database and compare the time of the errors with the time of the connections from the app.
  9. Replies
    4
    Views
    1,154

    Re: What does this code do?

    Holy cow o.O

    Nice response there, TheGreatCthulhu :)
  10. Re: Windows API to remove my application from taskbar

    Is there some specific reason why you want your application hidden in this way? Most users would not expect this behavior.
  11. Re: if and else -f invoice interfaced from January 1, 2012 to January 15, 2012, Posti

    +1 on that. As first posts go, that was horrible
  12. Thread: Loop Issue

    by foamy
    Replies
    6
    Views
    593

    Re: Loop Issue

    Let me make sure I understand what you are trying to do.

    1. Perform some action in a loop every x seconds
    2. At 10:00 perform an additional action once

    Is this correct? If so, I would try...
  13. Re: TcpClient.Connect() is preventing my textbox from updating

    Or, do this:



    textBox3.Text += "Connecting..." + n;
    //one of these should be enough.
    textBox3.Invalidate();
    textBox3.Refresh();
  14. Replies
    1
    Views
    436

    Re: Looping thru Dataset

    Please use
    and tags when posting code.

    On the face of it, I'd say this is your problem area:



    foreach (DataRow DR in mydataTable.Rows)
    {
    mydataset.WriteXml("c:\\" +...
  15. Re: How to fix "Not all code paths return a value" error.

    Making your code return what you want it, is not our job. Since we've helped you solve the error, you should be able to have your method do what you want it to.
    If not, please explain what...
  16. Re: How to fix "Not all code paths return a value" error.

    Indeed. The 'Fee' method returns nothing, so the return type need to be 'void'. If you prefer to have it return something, try this (assuming the wanted return value is the same as the one displayed...
  17. Re: How to fix "Not all code paths return a value" error.

    1. Welcome to the forum
    2. Please use
    and tags when posting code
    3. Change this


    public decimal Fee(int InHour, int OutHour, int InMin, int OutMin)

    to this
  18. Re: opening an interface after some event happen in windows form application

    try googling a little.
    Questions about opening forms have been asked before ... A lot
  19. Re: How do I write out a file with an uppercase file extension?

    Seems like it would be dependent on the operating system - which one are you using?
  20. Re: why buttonExit and buttonNewGame dont appear

    Indeed. If the controls are on whatever 'this' refers to, they will be removed when you call the Clear() method. You should, in that case, add them again



    private void...
  21. Replies
    1
    Views
    322

    Re: '=' operator can not be overloaded

    There shouldn't be any problem with assigning 'null' to a string variable. The below code is, if I'm not mistaken, perfectly valid:



    string y = "something";
    string x = null;

    y = x;
  22. Thread: Format Textbox?

    by foamy
    Replies
    5
    Views
    919

    Re: Format Textbox?

    Show us the code you have, and maybe we'll be able to fill in the blanks
  23. Thread: Format Textbox?

    by foamy
    Replies
    5
    Views
    919

    Re: Format Textbox?

    You should use a ListBox, ListView or DataGridview for this kind of thing, the textbox in itself isn't geared towards this kind of formatting.
  24. Replies
    2
    Views
    502

    Re: How to pass value from one form to another

    There has been a countless number of threads on this subject. If you're working in Windows Forms, the easiest way would be to simply add the desired objects to your form's constructor
  25. Re: Windows Forms Run Time Error (TextBox input data type)

    If the text in 'textBox2' is not a valid double, those methods are supposed to throw exceptions.
    If you want to judge the input without handling exceptions, try using the Double.TryParse method
Results 1 to 25 of 630
Page 1 of 26 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center