Search Results

Search found 8 results on 1 pages for 'rubentjeuh'.

Page 1/1 | 1 

  • Disable everything in windows except program c#

    - by rubentjeuh
    Hello, I've got the following question: Is it possible te disable everything in windows except the program it's running? I need to program an application on a touchscreen (fullscreen), where people can fill in a survey. The only thing they should use is this program. (for protection of the survey anwsers and other secret stuff :p ) And the program should be closed when entering the right password. So how can I disable everything else but the program I'm running? Thanks

    Read the article

  • C# cast string to enum with enum attribute

    - by rubentjeuh
    Hello, i've got the following question: I've got public enum Als { [StringValue("Beantwoord")] Beantwoord = 0, [StringValue("Niet beantwoord")] NietBeantwoord = 1, [StringValue("Geselecteerd")] Geselecteerd = 2, [StringValue("Niet geselecteerd")] NietGeselecteerd = 3, } with public class StringValueAttribute : System.Attribute { private string _value; public StringValueAttribute(string value) { _value = value; } public string Value { get { return _value; } } } And i would like to put the value from the item I selected of a combobox into a int: int i = ((int)(Als)Enum.Parse(typeof(Als), (string)cboAls.SelectedValue)); //<- WRONG Is this possible, and if so, how? (the stringvalue matches the value selected from the combobox) Thanks

    Read the article

  • Save file info in program c#

    - by rubentjeuh
    Hello, Is it possible to save some fields in the program, or do I have to write them to a file? Example: 1) I open a file (with OpenFileDialog) and put it in a FileInfo 2) close the program 3) restart the program 4) go to open - recent - select the previous File Thanks

    Read the article

  • remove eventhandler from wpf scrollviewer

    - by rubentjeuh
    I've got this: <ScrollViewer x:Name="svBegin" CanContentScroll="True"> <Grid x:Name="gGegevensGrid" KeyDown="gGegevensGrid_KeyDown" ScrollViewer.VerticalScrollBarVisibility="Visible"></Grid> </ScrollViewer> As you can see I've got a KeyDown eventhandler on the grid. But when I press the downkey, the scrollviewer scrolls down. Even when I try this, it doesn't work: svBegin.KeyDown += new KeyEventHandler(svBegin_KeyDown); svBegin.KeyDown -= new KeyEventHandler(svBegin_KeyDown); Anybody who knows how to solve this problem?

    Read the article

  • wpf c# remove eventhandler from scrollviewer

    - by rubentjeuh
    I've got this: <ScrollViewer x:Name="svBegin" CanContentScroll="True"> <Grid x:Name="gGegevensGrid" KeyDown="gGegevensGrid_KeyDown" ScrollViewer.VerticalScrollBarVisibility="Visible"></Grid> As you can see I've got a KeyDown eventhandler on the grid. But when I press the downkey, the scrollviewer scrolls down. Even when I try this, it doesn't work: svBegin.KeyDown += new KeyEventHandler(svBegin_KeyDown); svBegin.KeyDown -= new KeyEventHandler(svBegin_KeyDown); Anybody who knows how to solve this problem? Thanks!

    Read the article

  • UnauthorizedAccessException app.config c#

    - by rubentjeuh
    First I create a setup from a project, and I install it. When the program reads and writes from app.config, I get an UnauthorizedAccessException. This works perfect in visual studio, but with creating a setup and installing it, it always crashes at this point. Someone who knows how to solve this? Thanks

    Read the article

  • reloading app.config after writing

    - by rubentjeuh
    Hi, When I use this to write to my app.config file: Configuration config =ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings["Wachtwoord"].Value = "Test"; config.Save(); ConfigurationManager.RefreshSection("appSettings"); I can read it again. But when i close and restart the program, the value of "Wachtwoord" has changed again to the old value. Does anybody how I could fix this? Thanks

    Read the article

  • Excel c# convert cell to percentage

    - by rubentjeuh
    Hello. I need to convert a cell with a double to a precentage. I used a macro in excel and it says: Range("B5").Select Selection.Style = "Percent" When I do this in c#, it doesn't work: Excel.Range procentRange = xlWorksheet.get_Range("A1","A1"); procentRange.Style = "Percent"; Anybody knows how to do this?

    Read the article

1