15,907,281 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by rfresh (Top 24 by date)
rfresh
14-Sep-14 23:05pm
View
I have updated with more of my menu code.
rfresh
14-Sep-14 23:00pm
View
Yes...sorry...
rfresh
1-Jul-14 21:58pm
View
I am using Courier New and I'm building the 'vertical line' marker on non-space characters...so I hope I will be OK. I will try it out tonight.
Thanks to both of you...
rfresh
29-Jun-14 10:55am
View
I will try both suggestions...thank you both...
rfresh
27-Jun-14 23:50pm
View
I got it working. I have a long path and was one char off.
Thanks for the help and comments everyone.
rfresh
27-Jun-14 16:35pm
View
I figured out my thisWindow var had a different value when I clicked on the combobox to change hot keys. Prior to selecting a new hot key I pressed the prev HK to show and hide the window. Maybe that action changed the line
thisWindow = FindWindow(null, "ChecklistForm");
from returning the same thisWindow ID from them the app first ran and set the hot key.
I created a global var to hold that initial value and use it in the combo selectedIndexChange event and it seems to now work. I can select a new hot key and it responds.
rfresh
27-Jun-14 12:27pm
View
I got it working...thanks for the help.
I use this code on form load:
thisWindow = FindWindow(null, "ChecklistForm");
UnregisterHotKey(thisWindow, 1);
HotKeyModifier keyDataModifier = (HotKeyModifier)cboHotKeyModifier.SelectedItem;
HotKey keyData = (HotKey)cboHotKey.SelectedItem;
RegisterHotKey(thisWindow, 1, keyDataModifier.KeyModifier, keyData.KeyCode);
and then I use the same code on the combobox SelectedIndexChanged() and then I try the new hotkey and it doesn't fire on the keyPressed.Msg == 0x0312 in WndProc().
I UnregisterHotKey() first and then I try to registerHotKey() again in the combobox SelectedIndexChanged event.
Is there something else I have to do when I use the combobox to change the hot key to get it to work again?
rfresh
27-Jun-14 2:23am
View
yes...i do...i need the using statement in the new class right?
rfresh
27-Jun-14 1:26am
View
I'm getting an error on this line: The name 'RegisterHotKey' does not exist in the current content.
<pre lang="xml"><pre lang="c#">
RegisterHotKey(_hWnd, 1, keyData.KeyModifier, keyData.KeyCode);
</pre></pre>
Same for the _hWnd argument.
I tried to add:
<pre lang="c#">this._hWnd = hWnd;</pre>
but that also has an error.
rfresh
25-Sep-13 12:05pm
View
I'm not doing any persisting now...I'm looking for a way to persist the checkboxes and node names of a treeview so that when I restart my app, the tree checkboxes will be checked again. I'm doing a winform app. I'll also look into DataBinding Bill. Thanks...
rfresh
21-Sep-13 17:52pm
View
I got to work...thank you...
rfresh
21-Sep-13 17:41pm
View
Hmmm...I can press aaaa and it gets into the textbox...
rfresh
15-Sep-13 14:11pm
View
Thank you Bill for that information. It will take me some time to digest it. In my backup utility app, I will have one tabpage with textboxes and checkboxes, etc. that will describe how the backup will be done (one way to destination, two-way syncing or from FTP server down to PC) in addition to having a treeview which says what folders/files are to be backed up. Thus, I may end up with one tabpage configured to back up My Documents as a one-way type, another tabpage configured to back up my Excel folder and sync both ways, etc. So the tabpages will display the exact same components, just set to different values. I'm using a List<syncjob> for my class to manage multiple tabpages. When I change tabpages, I will use the List<> and save the current tabpage values and then load in the values for the newly selected tabpage. So, I find myself now here at this point beause I am trying to 'move' the components from one tabpage to another as I click on a different tabpage. The components are the same, I just need to move them and reload in their values. Someone advised me not to put the components on the tabcontrol at design time. I moved them off onto the form but couldn't get them to postion correctly until CHill60 told me the solution to that problem: Point locPoint = this.tabControl1.Location; So that did work and then you Bill told me to consider using a TableLayoutPanel. I like that and I'm going to spend some time building a prototype to see how that might work. I think it is a good suggestion because then all I have to do is move one component onto each tabpage as I click.
rfresh
15-Sep-13 11:29am
View
I'm building an app as a prototype to test positioning of components on different tabpages. I will end up with several textboxes, several radio buttons and several listboxes, etc. Some of these components will be positioned on tabpage1 and others on tabpage2.
My plan is to make visible those components that will show on tabpage1 and hide the rest. Then show the others on tabpage2 and hide those shown on tabpage1. The reason I'm not just adding the target components to the target tabpage is because my tabpages will be dynamic and I won't know ahead of time how many there will be so I have to create the tabpages dynamically.
I'm trying to develop the understanding of how to position a component (I'm starting with just a button) in relation to a tabcontrol. If I can figure that out, then I can position it on any tabpage, at any position within that tabpage.
I was told by a c# developer not to put controls on tabpages directly, but to put them on the form and then move them onto the tabpage when you need them.
I hope I'm an clear on what I am trying to do.
rfresh
12-Sep-13 21:40pm
View
@SA Sorry my experience it so far below yours. Sorry I am asking newbie questions that you think no one should be asking. I hope it boosts your ego to chime in on a question just to bash the OP. Your comment is not welcome and not needed. If you don't want to answer my question then don't, move on to the next thread. I have watched about 20 hours of C# tutorial videos and have 3 technical manuals. Sorry if that's not enough to allow me to post questions on this board, but I don't believe you make the rules here, and if you do, too bad. Now go away and insult someone else for a change. I don't need your arrogant help and insulting comments.
rfresh
12-Sep-13 19:56pm
View
So, I'm stuck having to still pre-declare the names (syncJob1, syncJob2) like this:
SyncJob syncJob1 = new SyncJob();
SyncJob syncJob2 = new SyncJob();
ahead of time, before use?
rfresh
10-Sep-13 15:46pm
View
When I do this:
XmlSerializer serializer = new XmlSerializer(typeof(SyncData));
I get this:
.syncJobData1 is a 'field' but is used like a 'type'
rfresh
10-Sep-13 14:40pm
View
Thanks for pointing that out Arun. That fixed the problem. I moved
SyncJob syncJobData1;
to the top of mainform class.
and updated the new menu selection code per your suggestion:
syncData1 = new SyncJob();
rfresh
10-Sep-13 14:38pm
View
Thank you Sergey.
(1) In the syncJob Class Constructor I initialized it's fields but did the <snip code="" out=""> since XMLserialization wasn't relevant to the question so you didn't see that.
(2) I will look into data contract.
rfresh
7-Sep-13 23:45pm
View
The PictureBox has a "Project resource file" list in the designer that I can load images into. Won't this work? If I can load multiple images into the PictureBox, how can I call them to load them into the PictureBox.Image property?
rfresh
5-Sep-13 0:25am
View
Hmmm...thank you for that idea...I will give it some thought...thank you...
rfresh
5-Sep-13 0:23am
View
It's called 'TabControl', right in the toolbox of Visual Studio 2012. I don't know what other name to use.
rfresh
4-Sep-13 1:44am
View
Thank you for your help.
rfresh
3-Sep-13 1:19am
View
Thank you Ron.
Show More