User Profile

Collapse

Profile Sidebar

Collapse
darkminos
darkminos
Last Activity: Apr 5 '09, 08:20 PM
Joined: Mar 8 '09
Location: Nottingham
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • darkminos
    replied to System.IO.FileNotFoundException
    .NET is @ 3.5... I actually do use thirdparty controls, but I think I did include all the DLL's into the installer. I will double check that later today and post if I had any luck...
    See more | Go to post

    Leave a comment:


  • darkminos
    replied to System.IO.FileNotFoundException
    no there is no additional details... and that’s my problem...

    I use VS2008 running on vista, when I try to install the software on a Win XP station It comes up with this error straight away... what I’m really asking is - is there a way to catch a FileNotFoundExc eption before anything else is happening so I could get a rough idea of what file it might be looking for?
    See more | Go to post

    Leave a comment:


  • darkminos
    started a topic System.IO.FileNotFoundException

    System.IO.FileNotFoundException

    Hi,
    When I try to run my program I get this error message:



    Now, I don't try to read any files on purpose so I cannot insert a catch statement. Is there any other way to find out what file it tries to read?...
    See more | Go to post

  • darkminos
    replied to Count Checked Checkboxes in List
    ~Slap!
    Thanks again tlhintoq! :)
    See more | Go to post

    Leave a comment:


  • darkminos
    started a topic Count Checked Checkboxes in List

    Count Checked Checkboxes in List

    Hi,

    I have the following code

    Code:
    int countCheckState = 0
    for (int i = 0; i < CheckboxList.Count; i++)
    {
         if (CheckboxList[i].Checked) countCheckState++
         if (countCheckState == 0)
         {
              MessegeBox.Show("select any checkbox");
              return;
         }
    }

    Now, the code checks only the first checkbox and ignores...
    See more | Go to post
    Last edited by tlhintoq; Mar 24 '09, 05:05 PM. Reason: Indenting code to make things more obvious

  • darkminos
    replied to ELSE IF statements
    OK, found the answer myself....

    Code:
    IF (SELECT COUNT(Line) FROM Equipment WHERE Department = @Department) = 0
    BEGIN 
    SELECT DISTINCT EquipmentNumber FROM Equipment WHERE Department = @Department
    END
    
    ELSE
    BEGIN
    SELECT DISTINCT Line FROM Equipment WHERE Department = @Department
    END
    See more | Go to post

    Leave a comment:


  • darkminos
    started a topic ELSE IF statements

    ELSE IF statements

    Hi I have a stored procedure which returns DBNULL if "Line" is empty rather than returning "EquipmentNumbe r":

    Code:
    ALTER PROCEDURE [dbo].[sp_get_distinct_lines]
    @Department varchar(50)
    
    AS
    
    IF EXISTS (SELECT Line FROM Equipment WHERE Department = @Department)
    
    SELECT DISTINCT Line FROM Equipment WHERE Department = @Department
    
    ELSE
    ...
    See more | Go to post

  • darkminos
    started a topic ELSE IF statements

    ELSE IF statements

    Hi I have a stored procedure which returns DBNULL if "Line" is empty rather than returning EquipmentNumber :

    Code:
    IF EXISTS (SELECT Line FROM Equipment WHERE Department = @Department)
    
    SELECT DISTINCT Line FROM Equipment WHERE Department = @Department
    
    ELSE 
    
    SELECT DISTINCT EquipmentNumber FROM Equipment WHERE Department = @Department
    Error messege "Unable...
    See more | Go to post

  • darkminos
    replied to Checkbox EventHandler
    Many Thanks!
    That's exactly what I was searching for! And it helped me to find an error as well, which was causing the software to run slow. (i'm using the List function)
    See more | Go to post

    Leave a comment:


  • darkminos
    replied to Checkbox EventHandler
    The problem is that those controls are created on button click from a different control. see line 47-51.

    Code:
            private void barbuttonSMT_ItemClick(object sender, ItemClickEventArgs e)
            {
                createControls(sender, e);
            }
    
    
    public void createControls(object sender, EventArgs e)
            {
    
                     .../
    ...
    See more | Go to post

    Leave a comment:


  • darkminos
    started a topic Checkbox EventHandler

    Checkbox EventHandler

    Hi,

    I am creating dynamic checkboxes which should have an eventhandler attached to the submitButton. What I mean is while I’m changing state (check / uncheck) nothing should be happening but when I press the submitButton it should read all the checkboxes state and text.

    Thx.



    Code:
    SimpleButton submitButton = new SimpleButton();
                        submitButton.Location = new System.Drawing.Point(292,
    ...
    See more | Go to post
    Last edited by pbmods; Mar 8 '09, 05:52 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...