Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

humblepgmr

@humblepgmr
About
Posts
24
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Application threading issue?
    H humblepgmr

    It's really not intended to be a key logger. I'll explain. I have a program that requires that I press the number '2' repeatedly; basically instead of pressing it manually, I'd like to just hold the button till I press the '+' key to terminate. While I agree that it can be saved somewhere as a file and then emailed / transfered over the network it's not my intended purpose. I really have a genuine need to press repteatedly. This isn't intended as an insult, but you jumped to a conclusion which is not accurate at all.

    Windows Forms help business question

  • Application threading issue?
    H humblepgmr

    I'm not sure if this is the correct forum, but in case it's not, pls let me know where I can post for some assistance. I'm trying to write a program that supports the following requirements: Run while another program is running; Get the keyboard input(s) While on another program, my program will take the input and loop. In other words, instead of repeatedly pressing keys, if I hold key down, my program will loop and return the key value to the active screen. The problem I'm having right now, is that it works as a console, but when I switch to another screen, I loose focus of my application and the keyboard input is no longer being detected. I suspect I need help with threading but need some direction as well. Here's what I've got so far. #include <stdio.h> #include <conio.h> #include <iostream> using namespace std; //function prototypes void press_any_key(); void one(); void two(); void three(); int main(){ cout << "Start"; press_any_key(); getch(); return 0; } void press_any_key(){ bool done; done = true; char input; do{ do{ input = _getch(); if(input == '2'){ cout << "Currently holding the right key"; done = true; } else if(input == '+'){ cout << "Abort."; //done = true; exit(0); } else{ done = false; } }while (_kbhit()); }while(done == true); cout << "Done"; } Help pls. Thanks

    Windows Forms help business question

  • Front End GUI mySQL DB Manager Suggestions?
    H humblepgmr

    As per subject, I'm starting to code my database. Is there a front end GUI app that can assist me with creating, editing and gettting a good view of my tables? When I was in school, I used to use something called mySQL Enterprise manager, but that seems to be a tool for purchase only. Suggestions on a free solution?

    Database database mysql question

  • Is there a easy Forum creator that can be easily integrated into a .NET environment?
    H humblepgmr

    "Form Creator". I'm not certain there's a package out there, but basically I'm looking to create a forum for my site that can be integrated into a asp.net pages easily and have the ability to change it's look and feel so that it blends in with the exising site. I was thinking of creating a forum from scratch but if there's somethign already pre made and pluggable, I'll download and use that instead.... Thanks. Humble.

    .NET (Core and Framework) csharp asp-net question workspace

  • Dynamic table - Need help!
    H humblepgmr

    Hi all, I'm building a website for a friend and am at the design stage. I would like to have a table with a row and 5 columns; an add link placed above the table. I would like each cell to contain a type of web object (of my design) such as a text box (0,1); a drop down list (0,3) etc. When the user clicks the add link, a second row with the same objects appear below the first row; whilst the data persists in the first row. I'm not expecting code, but I would appreciate some help in understanding how I can accomplish this. Thanks Humble@!

    ASP.NET design help

  • Is there a way to access a Form's object by a method?
    H humblepgmr

    I can do that.. But assuming I got into the Forms init method and I defined a function that accesses the objects' by name, I still don't know how to do that. Any advice would be much appreciated. Thanks.

    C# tutorial question discussion

  • Is there a way to access a Form's object by a method?
    H humblepgmr

    Not sure how to word the subject. Perhaps this will be clear. Formname.setObject("Object_name").Value = "True" Any thoughts?

    C# tutorial question discussion

  • drop down list post back refreshes to default state. How to prevent this?
    H humblepgmr

    Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks

    C# csharp tutorial question

  • How to Connect to a Remote Database from a WebService?
    H humblepgmr

    Hi THere, as the subject says, I'm writing a webservice and would like to connect to a database. [WebMethod] public ClientData[] GetClientData(int Number){ } I'm not sure how to connect. Can someone please let me know the steps required to connect to a Remote database? Thanks

    C# database tutorial question

  • Can I access a user form object programmatically?
    H humblepgmr

    Heh. Agreed that it's easier just to assign a value to a control. However, I've got 20 controls that need to be assigned the same value. I declared the control names with the express notion that I would be able to loop through all of them and assign with the same value. I guess I can modularize it and put it in a method, but I'm slightly surprised I"m not able to do what I could do with VBA code! :P

    C# csharp tutorial question

  • Can I access a user form object programmatically?
    H humblepgmr

    I wrote the VB app in a short amount of time, so that snippet was pretty much done on the fly ;o the property of the control(s) that I want to access is within the same form. Unfortunately, there isn't a direct correlation of VB and C# methods so I'm not sure where to look. I was thinking about something like this: start a loop Application.getControlbyName("object_name_as_string" & integer_variable).value = false integer_variable++; end loop in essance what this should do is programmatically loop through all the controls with similar naming conventions, and set its member value to false. Any suggestions / alternate ideas on how to accomplish this in c#??? Thanks in advance Humble.

    C# csharp tutorial question

  • Can I access a user form object programmatically?
    H humblepgmr

    I did this in VB and would like to do this in C# now. UserForm1.Controls("chkbx_ManProp_" & CStr(j)).Value = True any ideas how to convert this to C# in a windows form application? Thanks

    C# csharp tutorial question

  • Is there a method to change a text box back to it's original state?
    H humblepgmr

    I'm programming in C# but I thought this would be a VB question i'm not sure how to do this, but assume I've got a text box that has a properties. The properties dynamically change throughout the program, upon request, is there a method through system way to get the text box (or any checkbox, radio button group, label etc.) to change back to its original state?

    C# question csharp tutorial

  • C# and XML
    H humblepgmr

    I'm learning C# and have been given an assignment with a flexible requirement of reading / writing to a file. I'm thinking of trying XML as a possible format for saving and retrieving data. I've tried googling this but a couple of the sites I've gone too look complicated (perhaps it's complicated because I don't know how to relate XML with C# ?) Can anyone suggest a basic tutorials / website that a newbie like myself can reference for the purpose of writing and reading an xml file? Thanks in advance.

    C# csharp xml tutorial question learning

  • How to convert a char from IO stream into an int please
    H humblepgmr

    Yeah, I've got the validation portion down... I need to get the character, which if entered proprly is an integer number, and convert it into an integer for processing.

    C# tutorial

  • How to convert a char from IO stream into an int please
    H humblepgmr

    Hi all, I'm having some trouble getting with this: char temp = System.Console.ReadKey(); //Throws an exception So I tried System.Console.ReadKey().KeyChar which returns the ascii value of the key I entered... Basically I need to get a key that falls in the range of 0-10 There's a validation line that handles if temp > 0 || temp < 10... but I can't get the character to convert into an int properly. Thanks Humble

    C# tutorial

  • How to auto format?
    H humblepgmr

    Is there a way to trigger auto format? As well as, is there a way to specify how the IDE formats? Currently, VS 2005 formats this way: do { ... Do stuff ... }while(!stop); I prefer this way: do{ ... Do stuff ... }while(!stop);

    Visual Studio visual-studio database tutorial question

  • How to remove a character in Console
    H humblepgmr

    I tried that and I'm finding that it's not deleting, the cursor doesn't delete, it just goes back to the same pos. System.Console.WriteLine("*******************************"); System.Console.WriteLine("Press 'Q' to Quit "); System.Console.WriteLine("Press 'A' to go again"); System.Console.WriteLine("Press 'N' to start"); System.Console.WriteLine("*******************************"); do { try{ System.Console.Write("\b"); stop = validate(System.Console.ReadKey().KeyChar); //Return false if != (q,a,n) if (!stop) { System.Console.Write("\b"); } }catch(System.Exception){ stop = false; } } while (!stop);

    C# tutorial question

  • How to remove a character in Console
    H humblepgmr

    Hi all, Not sure if this is possible, but in a console app, is it possible to move the cursor 1 space to the left and replace the console text with a space (clearing last keystroke)? Thanks in advance

    C# tutorial question

  • Sharepoint Coding?
    H humblepgmr

    Hi all, I've got a suggestion from work that we create "some apps." They mean calendar objects and forums in Microsofts Sharepoint. I've found a way to introduce some Javascript into Sharepoint, but I'm not sure if any other languages are allowed. Keep in mind that while I have read and write access to Sharepoint, I don't have access to any of the root folders. Any ideas on the languages / how to introduce new code to sharepoint so that it can display custom applications? Thanks

    IT & Infrastructure javascript sharepoint tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups