15,615,668 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 Python questions
View Javascript questions
View C++ questions
View Java 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 theskiguy (Top 27 by date)
theskiguy
26-Sep-22 7:57am
View
Thank you. Your solution works as well. Also, I appreciate the links for continued learning.
Edit: After continued testing, I also determined I can't allow "X-" alone without a number. Since I didn't include this stipulation in my original question, your solution still works for the original question. If someone else needs an expression to reject "X-" alone without a number as well as the other stipulations listed, Original Griff's solution works
theskiguy
26-Sep-22 7:56am
View
Thank you for the quick response and the explanation on how the string was created
theskiguy
1-Feb-22 15:34pm
View
Thanks for the ideas but I decided to create a function to loop through the Is_dirty variables in each user control on each tab to see if any are dirty. It is working good at the moment.
theskiguy
3-May-21 13:11pm
View
I appreciate your post but I tried all your solutions but I didn't have any luck. I was, however, able to resolve the issue. As a test, I turned on "Enable XP visual styles" and then the scrollbars reappeared again. I have no clue why this worked but I thought I would post this so others will know.
theskiguy
24-Mar-20 7:26am
View
That is similar to what I was thinking I would have to do. I do like your solution as it is a nice way to do it in a single line. Thanks,
theskiguy
1-Nov-18 6:56am
View
Yes I do. As I mentioned above, I did reprogram it just to make sure. I first removed all suffixes and tested the output in Notepad and noticed there was no tab. I then added the tab suffix to the barcode reader and tested it again in Notepad and I could see the tab added.
theskiguy
9-Feb-18 14:39pm
View
If it try it on my original "ChartPage" chart object, I still get the "Unable to set the leftfooter Property" error. If I define a new chart object after moving the chart to a new sheet, then it will work. Everything seems to be working great now.
theskiguy
9-Feb-18 8:07am
View
I was able to figure out how to get the footer on the chart sheet. I just made a new "chart" object after moving the chart to the new sheet using your first example above. For some reason, it would not work with my original chart object "chartpage". Thanks for your help.
theskiguy
8-Feb-18 15:34pm
View
Thank you for clearing this up for me. I was unaware that my chart worksheet wasn't an actual worksheet but rather a chart object. I do, however, have another question. The reason why I was trying to create the Worksheet object for the chart was because I wanted access to the page setup so I could add a footer to my chart when someone printed it. I noticed that the "chart" object has its own page setup so I'm thinking I don't really need the worksheet object anymore. I already have a chart object declared in my example called "chartpage", however, when I try to access the page setup, I am getting the following error: "Unable to set the LeftFooter Property of the page setup class"
chartPage.PageSetup.LeftFooter = "Printed On &D &T" 'Add Date/Time
Any suggestions?
theskiguy
28-Aug-17 8:20am
View
Thank you very much. This is very close to what I need. I did make a few minor changes. I only wanted to show only week's work of data so I added another item to the final WHERE clause. Also, I had to change the syntax dealing with the column acronyms for the shifts columns.
My only problem I have now is trying to figure out what to do if I want to display this same week's worth of data for more then 1 machine at a time sorted by machine. If I add the additional machine into the WHERE clause, it creates duplicate results. I guess I could UNION the results for each machine together but with over 50 machines, I am trying to figure out if there is a better way.
theskiguy
25-Aug-17 15:15pm
View
From my initial tests, it looks like XMLAGG works but it puts all the values into one column separated by commas. I really need a separate column for each value so I can display in my data grid. Am I missing something?
theskiguy
25-Aug-17 9:59am
View
Sorry but I forgot to mention we are still running Oracle 9. It appears this command requires Oracle 11. I updated my question to add the Oracle 9 requirement.
theskiguy
11-Aug-17 14:25pm
View
Your solution works great but I still can't figure out while mine doesn't work. I guess I will have to start a new project from scratch and keep it simple at the start until I figure out the cause.
As a side note I did have a few syntax errors in your example that I had to address so I thought I would bring it to your attention so you could update your code. I had to update the syntax for the "With" statement in your AddToolTip sub. I also had to declare the "Index" variables in mouse_move,Recalc and paint subs. Thanks for your help. If I finally figure out what caused my issue, I will let you know. Thanks.
theskiguy
9-Aug-17 7:18am
View
You are correct. See improved question that now includes some code that show the control painting. As far as Invalidate, the problem I am having is determining the proper time to call it. If I only call invalidate when the mouse is not over the icon, the control will not repaint if I move the mouse to a different position on the icon. If I move the invalidate to the beginning of the mouse move event, my user control completely disappears even if I stop moving the mouse when it is over the icon.
theskiguy
20-Jun-17 14:29pm
View
Exactly what I needed. Thanks
theskiguy
7-Apr-17 14:56pm
View
I only need to have one instance of the class available, however, I need to have the instance available throughout the project, not just the parent. I don't really think I want to instance the class because the new instance would just be a copy of the original instance. Can you please elaborate on your comment about creating it in a module?
theskiguy
7-Apr-17 14:56pm
View
Deleted
I only need to have one instance of the class available, however, I need to have the instance available throughout the project, not just the parent. I don't really think I want to instance the class because the new instance would just be a copy of the original instance. Can you please elaborate on your comment about creating it in a module?
theskiguy
21-Feb-17 11:06am
View
Thank you very much for providing such a nice example. It really helped me understand how everything works. I do have one question. In the example you provided, it is keeping track of the totals every time the AddData sub is called. In my real life example, I am not really interested in the totals, just whether or not any of the values changed. With this in mind, I made some minor changes to the AddData sub to compare the newly added values to the existing values. If all 3 variables are the same, I exit the sub without calling the event because I don't need to update the database. If one or more variables have changed, I then update the class variables to the new results and then continue on and call the event. Is this the best way to handle this or would you recommend some other method? Maybe add a Boolean called DataChanged to the class and eventargs?
theskiguy
20-Feb-17 16:13pm
View
Ok, please bear with me, I have never done this before so I need a little guidance. I copied the example you provided in the link and it works but I am having trouble figuring out how this example can be applied to my situation. There are 2 classes in the example, the counter class and the event args class. I assume I would need to change sub new in the counter class to accept the 3 vars I am tracking? Is this where I should also keep track of whether the variables change to work similar to my example above? Then what is the purpose of the event args class?
theskiguy
20-Feb-17 13:23pm
View
Peter:
I have never used Property Change Notification before. Can you tell me what is the advantage of using it versus the way I raise the events in my class?
theskiguy
15-Nov-16 6:31am
View
Your solution works but it is basically the same as the first solution. Thanks for you help.
theskiguy
15-Nov-16 6:31am
View
Works great! I was trying something similar to that but I wasn't using the Group by. Thanks for the help.
theskiguy
17-Nov-15 15:13pm
View
I am using the Microsoft Excel 14.0 Object library which I believe is correct for Excel 2010? I have also found that my existing code will size and position certain pictures correctly but not others. In Excel 2007 it worked all the time. Don't know what is going on.
theskiguy
23-Apr-15 9:29am
View
Thanks for the info Sergey.
What is your opinion on using the Perfmon tool thats comes with WinXP and Win2000? I've read other articles on this site that say you can find issues by tracking Private Bytes, Working Set and Number of Bytes in all heaps?
theskiguy
23-Apr-12 16:48pm
View
I am trying to switch to using a background worker but i'm having difficulties updating the UI. My UI mainly consists of an unbound datagridview and a progress bar. I was previously updating the UI after I post process each file but now I can't do that on my worker thread anymore. Any ideas on how I can update my datagridview using the processchanged event? I found examples on how to update a progress bar but I cant seem to find any on how to update a datagridview.
Thanks,
theskiguy
8-Jul-11 10:11am
View
That worked, I just had to use the Fwlib32.dll rather then the FwLib64.dll in the function call. You must be on a newer controller then the Fanuc F150i. The only issue I got is that the IODBMR1 structure needs to be hard coded to the number of variables you want to read. In the above example, the IODBMR1 structure is set to read 5 variables because it holds 5 IODBMR_data structures. What do I do if i want to read 10 variables one time and 50 variables the next time. Is there a way to code the IODBMR1 structure so it can hold a random amount of IODBMR_data structures?
Thanks,
theskiguy
23-Jun-11 9:54am
View
The structure and the function call are both in a public class called FOCAS1. Sorry I did not include that in my original post.
I also tried adding an unhandled exception event in my application events but I still get the "Sorry for the inconvience error"
Show More