15,901,283 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 Mr.TMG (Top 65 by date)
Mr.TMG
22-Dec-13 13:53pm
View
Thanks.
Mr.TMG
22-Dec-13 13:50pm
View
Memory consumption --Per perfmon-- appears to come from the #of sink blocks in use
Mr.TMG
22-Dec-13 13:48pm
View
I think you are right and i don't understand. but there is defiantly an issue with memory consumption that is somehow related to clearing my user control objects from a flow layout panel and re-populating it. I'm not sure what the issue is and disposing was just an attempt to resolve the issue that clearly does not work. I'm definitely open to suggestion as I've never experienced this issue before. Thanks for your responses.
Mr.TMG
22-Dec-13 13:30pm
View
Because the object consumes resources and i assume that include memory. They were not being disposed of originally. It was only after I started getting the Out of memory exceptions that I started trying to dispose these objects.
Mr.TMG
22-Dec-13 13:25pm
View
wow.. Perfmon is awesome! So it turns out that my Memory consumption comes from the #of sink blocks in use. From what I've read, these are weak references that are associated with a managed object. So why would calling garbage collector have no effect?
Mr.TMG
3-Nov-13 15:58pm
View
Fixed the tag to reflect vb.net.
On my userControl, I basically want to raise events like Me.DoubleClicked as the usercontrol which houses the objects (Like textbox) that are actually being double clicked.
currently, what i'm doing is this
Sub textBox_DoubleClicked(Sender,E as eventargs)Handles TextBox.doubleClicked
Me.Icon_DoubleClick(Me, E)
end sub
Mr.TMG
3-Nov-13 10:33am
View
Sent an email asking you if the controls that you are adding and need to handle events for are those of line 120 on form1.vb.
Mr.TMG
3-Nov-13 9:37am
View
I just happen to be working with addhandlers right now. Adding Icon user controls to a flow layout panel, deciding whether or not to handle events through the form or through an event subscription on the to level form.
Mr.TMG
3-Nov-13 9:34am
View
TGlaesmann@Yahoo.com
Or, you can try again with this other link. I think I gave you a public link that only allows for viewing. This is editable access.
https://skydrive.live.com/redir?resid=1A24B4A8C01B42BB!1247&authkey=!AN3MLlOOm8B1y3g
Mr.TMG
2-Nov-13 23:39pm
View
You can drag and drop into this SkyDrive Folder https://skydrive.live.com/redir?resid=1A24B4A8C01B42BB!1247
Please zip the file first though. I don't check it often so please let me know when you've uploaded it.
Mr.TMG
2-Nov-13 12:43pm
View
I was hoping to see how your controls where being added and if they had anything that could uniquely identify them if there are a variable amount of controls to add.
Are you adding a set number of controls to your form? If so, declare that control as withEvents to keep a permanent reference to it as shown in the second pert of the solution that i just added.
If it's a variable number of controls, then you'l want to use the first example.
Mr.TMG
1-Nov-13 13:20pm
View
I'm not asking the question correctly, gotcha... I'll try to write it a little better.
Mr.TMG
31-Oct-13 22:58pm
View
I'd say that the best way is to use the database tools that are provided in the VB Suites (Every edition) as A databse can easily be imported to provide you with all the data sets, data tables and adapters that you need to do just about everything. If you don't have the slightest clue where to start--As I was at one time-- I can try to find a good video or possible make one that simplifies and explains the process.
Just say the word.
Mr.TMG
31-Oct-13 22:30pm
View
Setting your program as the windows default application for MP3 file types?
Mr.TMG
27-Oct-13 1:37am
View
Actually, I'll go ahead and post my user controls when I figure out how to do it.
Mr.TMG
27-Oct-13 1:35am
View
The work done at this link is very nice and helped me to understand a lot of the issues that i was having. I was even able to use it to make some nice user controls so that all transmissions could be handled in a very thread safe manner. Give it a look.
http://www.codeproject.com/Articles/307315/Reusable-multithreaded-tcp-client-and-server-class
Mr.TMG
19-Oct-13 23:30pm
View
DataGridView supports copy/paste during runtime. You can Highlight cells and paste them to text documents and Excel as individual cells.
Mr.TMG
19-Oct-13 0:36am
View
Your question is a little vague, please try to provide more information. Like a sample of code.
I assume that you are having trouble opening a window after it's been closed once. Question: Are you declaring new instances of each window? or are you calling the form class directly? dim x as new MyWindow
x.show
after x closes, it's gone. Stop it from closing by monitoring the form closing event. under close reason, if it was closed by the user then set cancel to true in the event args and call me.hide.
Mr.TMG
19-Oct-13 0:24am
View
You've put a lot of work into this. It's nice. Thank you.
Mr.TMG
19-Oct-13 0:18am
View
I would do something like I/O replace all data with meaningless data and rename the file with ~'s .
Mr.TMG
18-Oct-13 18:17pm
View
Thank you for that link, Pete. I'll have a look.
Mr.TMG
18-Oct-13 18:15pm
View
I understand what you're saying. I would however, prefer to inform the application at the time of disconnect as I will also be using this connection to query instruments that are connected and do not want anything to register as connected when actually it's broken.
Mr.TMG
8-Sep-13 15:41pm
View
So yesterday I was up for about 20 hour working with this program. Now that I've had some sleep, everything just makes so much more since. Like SHARED: "A programming element that is associated with all instances of the class." Sorry bud, you were a huge help with the solution post and I continued to bombard you with more questions.
Thank you much for responding.
Mr.TMG
8-Sep-13 15:40pm
View
Deleted
So yesterday I was up for about 20 hour working with this program. Now that I've had some sleep, everything just makes so much more since. Like SHARED: "A programming element that is associated with all instances of the class." Sorry bud, you were a huge help with the solution post and I continued to bombard you with more questions.
Thank you much for responding.
Mr.TMG
7-Sep-13 18:42pm
View
I'm not a c# user but in the LIST Example that you provide, it looks like you're adding the instance to a list of CLASS(instaces) as it is created. Is this list contained inside of every instance of the class? If so, is it the same list in every instance of the class?
I'm having some trouble in fully comprehending whats going on here.
Added note: I will need be able to loop through the list of instances so that I can display them to the user for selecting which instance of the class to add items to. Can this be done as;
Dim x as new MyClass
for each y as myclass in in x.instance
SomeDisplayBoxClassInstanceForUser.AddMyClassInstance(y)
next
Is there some way -- Outside of the MyClass to collect a list of instance?
As far as cycling through each instance inside the class at the time of changing the title; I only want to increment the counter based on matching titles.
Ecample: if I have three instances open and they are all labeled "List"
The user would see "List 1" "List 2" "List 3"
If I had another instance Labeled "SampleList"
The user would see "List 1" "List 2" "List 3" "SampleList 1"
Thank you for the response.
Mr.TMG
7-Sep-13 18:10pm
View
Thank you for that. You've been most helpful.
Mr.TMG
7-Sep-13 17:14pm
View
Deleted
Thank you. And I'm sorry for the confusion. I've been toying with programming for a while but have never actually had the need to concern myself with terms like open source. So when it comes to licensing I actually have NO IDEA what i'm saying. I just assume that opensource was correct because I'm not trying to claim exclusive rights to the application.
Mr.TMG
4-Sep-13 14:49pm
View
You were correct. there are multiple criteria to match. The [Spec Value] table was designed to hold a list of values to match. Each row points to the appropriate Spec in [Specs].
In the example you posted, it appears that you are adding values to a data table to view. This is something that I already have a design for.
What I'm trying to do is find a way to store a formula in my data base so that it can be used at run time. My main concern is storing the formulas for [Other Criteria]. A user Must be able to add new formulas to the database and my .net application must be able to read them and use the formulas to determine a value. That value will be checked to see if it falls within a pre-specified Min-Max range that is contained somewhere in the formula. The user provides values that they received for C, Fe, W, Cr etc... the program picks the values for the elements mentioned in the formula. The result is then calculated using the formula.
Mr.TMG
2-Sep-13 10:54am
View
I'm in no hurry with this problem btw. It's part of a project that I'm planning for sometime next year.
Mr.TMG
1-Sep-13 14:52pm
View
I don't fallow.. Do you have information about a person stored in a data base?
Mr.TMG
1-Sep-13 1:50am
View
Are you filtering results from a database? I would just search the DB everytime the cmbox text changes {WHERE Column LIKE('%' + @SearchCriteria + '%')}
Mr.TMG
1-Sep-13 1:44am
View
Nice Link.
Mr.TMG
1-Sep-13 1:38am
View
Or console.writeln
Mr.TMG
1-Sep-13 1:36am
View
Also, on your OnTimedEvent sub routine, maybe you could display a messagebox to confirm that your timer is not firing off. If it pops up every two seconds then it's working.
Mr.TMG
1-Sep-13 1:33am
View
I noticed the you have added the event handler after enabling the timer. I think that for a seamless performance you would want the handlers in place before enabling the object that raises events to handle. Not that this code would take 2 seconds to execute but still.
Mr.TMG
31-Aug-13 18:54pm
View
Yes, Please see the updated question.
Mr.TMG
31-Aug-13 1:07am
View
Sorry, SaqibRasheed, for the misunderstanding. I did not mean that the user would literally ask any questions. Rather, I mean that a user supplies values and a Specification(from the database) to compare the values to. Please see the Update at the bottom of my question.
I am actually curious about this natural language processing now. But, knowing myself as I do, I dare not venture into those waters until completing the rest of my projects.
Mr.TMG
31-Aug-13 0:45am
View
Those example values would theoretically be entered into a database (I'm posting a link) by means of a vb.net interface. The values are determined by the user and stored (as a specification) so that other users can determine whether or not they have acquired values that are consistent with it.
The other users will simply input the values that they have acquired, select the appropriate specification to compare them to, and sit back as the Acquired values are compared to the specification values to determine A: the acquired values match, or B:The acquired values did not meet the specification.
Mr.TMG
31-Aug-13 0:31am
View
Confirmed. I am attaching links to an image and excel doc onto my question.
Mr.TMG
28-Aug-13 20:55pm
View
Are you trying to fill the data grid view with data or are you trying to select data that is already displayed? Please provide us with a description of the environment and the situation such that we can understand your target result and the means by which you want to reach that result as well as the resources that you are working with. Example: I want to fill a data grid view with data retrieved from an Oracal database table. I have made the query but am not sure how to display the data on my datagrid view control.
Mr.TMG
28-Aug-13 20:27pm
View
Anyway, I've never used java but in vb.net you could create a public event like NewValueEntered and a new class like NewValueEnteredEnevntArgs (Inherits EventArgs). One of the properties in your class set to the new value that was entered. Dim the child form in the parrent form and add handler to that event. When the data is entered into the child form then raise the event and your parent form will run the handling procedure.
Mr.TMG
28-Aug-13 20:21pm
View
You tagged VB.NET
Mr.TMG
28-Aug-13 20:11pm
View
Thanks for taking the time chat about it with me. I was talking to some guys at work and came up with a nice looking work around that involves popping the display out and expanding it to the label size when the mouse enters and setting it back into place on mouse leave. Also removed some unnecessary length from the text.
Thanks again.
Mr.TMG
28-Aug-13 1:24am
View
here is a photo https://skydrive.live.com/redir?resid=1A24B4A8C01B42BB!1177&v=3
Mr.TMG
28-Aug-13 1:07am
View
Because the size of the parent control is defined by it's surroundings. For example: One of my controls displays a task - a task is a service that is preformed on an item (Sample). Samples are contained inside of a Job. I have a window that acts as a pop up like you would see on a combo box. That popup is populated with these controls that i'm having trouble with (Task Display). The combo-box look alike acts much like a combo-box but the textbox portion of it is replaced by a label the states the Name of the service and the number of tasks contained in the popup. The combo-box lookalike is then re sized to math the length of that label. Thus, the task display boxes contained in the list have significantly less room.
The task display box in the popup would say something along the lines of
Spark OES on Sample M13-235-01-A
where the combobox Label would say
Spark OES x6
Granted i did give myself some wiggle room so the amount of space you have is actually 2x the size of the combobox label in this case.
The combobox controls are populated horizontally across a JobLine (about the size of your web browser address bar.
The Job lines are populated vertically in a window.
Does anyone know how to post a photo on here?
Mr.TMG
27-Aug-13 22:22pm
View
I completely agree that this is more trouble than it's worth and will take more time than I have. Having said that I'm updating my question to asking advice.
Mr.TMG
27-Aug-13 22:19pm
View
OUCH... I accept that this sounds like a definite solution and will probably try this one day just for the sake of doing it. Nut not on my current project though. Thanks for the info.
Mr.TMG
20-Aug-13 21:34pm
View
If I understand correctly, the title of this post implies that you are not sure how to save changes to a particular row in the data table. If that's the case then I would suggest simply passing and UPDATE command to SQL using your table adapter.
UPDATE "[col]"="@value" ON [TABLE] WHERE ({DOCID] = @DOCID)
My question is this; What is the exact problem you are having? passing the data to the data base, determining which rows to update? I think, as the others have said, this will require a little more input from you.
Mr.TMG
11-Aug-13 19:19pm
View
That works very well, with one exception. Because i am testing a variable that only exists in a certain type is form; i must first cycle through each form to make sure that it's the type i need to work with and thus contains the property that i need to examine. I will post the code that i have used.
Thank you for your help.
Mr.TMG
10-Aug-13 14:31pm
View
Maybe your extension cable is bad? Have you tried connecting it to another use device like your mouse?
Mr.TMG
10-Aug-13 12:50pm
View
It's perfect, Thank you.
Mr.TMG
10-Aug-13 12:47pm
View
That looks promising.. i will try it out and let you know.
Mr.TMG
9-Aug-13 23:57pm
View
I just realized that you are also the author of this thread http://www.codeproject.com/Questions/634917/how-to-add-with-the-same-name-in-listview-and-will
I posted the same solution on there only it shows the full form.
I tried the code out in that second solution and it works. The fact that listview did not work directly with strings is something that did not occur to me during the first post.and the second post accounts for that fact.
Mr.TMG
9-Aug-13 23:46pm
View
you cannot compare using .contains, as the items in listview are not Sting, they are ListviewItem. i will post an example of how to cycle through the list view items to compare the text of each item to a string.
Mr.TMG
9-Aug-13 22:17pm
View
May I ask why you would choose to use a listView as well as a ListBox? Is that not redundant?
It seems like you are doubling the amount of work.
Mr.TMG
9-Aug-13 20:38pm
View
My codeing might not be exact key words as i'm doing it from memory, but intelliscence should pick up on it and make the corrections. ex DR = yes is actually something like DR = Messagebox.YESbutton
Mr.TMG
9-Aug-13 20:16pm
View
What is it that you would need a timer for?
Mr.TMG
9-Aug-13 20:11pm
View
So you're asking if you can include a copy of MYSQL with your program as a prerequisite to be automatically installed if needed?
This can get complicated. if you are trying to install it to a server from a client then i would recommend just installing it to the server manually. If every thing is local then you might be better off just using MicrosoftSQL Database file. My experience with mssql is that it's much easier to build and use inside of the programming environment. But as far as needing a DB Host Server, Mysql is pretty nice.
Mr.TMG
9-Aug-13 19:43pm
View
Could you explain what yes and no represent? I don't fully understand the question.
Are you trying to determine if the word, house, should be allowed to be added to your list box more than one time? If so, How are you deciding? Please elaborate on "Trapping by yes and no".
Yes or no to what? Is your Yes/No the result of a message box button?
Mr.TMG
8-Aug-13 22:00pm
View
Glad to help friend!
Mr.TMG
4-Aug-13 22:46pm
View
What result do you get Using your current sql statement? is it 0?
Mr.TMG
28-Jul-13 19:10pm
View
And please remember to click the accept Solution button so that people will know that it's solved.
Mr.TMG
28-Jul-13 19:00pm
View
Glad to help.
Mr.TMG
28-Jul-13 15:44pm
View
Now that code that i posted is faulty. you cannot delete the first char. But ahopefuly this should get you started
Mr.TMG
28-Jul-13 14:54pm
View
Good point. I will adjust my question.
Show More