15,612,595 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 Ralf Meier (Top 200 by date)
Ralf Meier
4 days ago
View
For future questions :
"Help me to solve this problem" is not a qualified description or a title with sense.
Perhaps you think about that ...
Ralf Meier
21-Mar-23 9:22am
View
I'm sorry ... but for me this code-snippet isn't useful for having any idea about your problem ...
Ralf Meier
20-Mar-23 5:37am
View
👍
Ralf Meier
20-Mar-23 5:29am
View
Because, as Dave allready mentioned, Screen.AllScreens.ToString return a string into ScreenCount.
I have no idea what happend if you use the sample from Grame_Grant with a string - but I suppose that you allways will work with Screen(0) - that means your primary Screen.
Perhaps you look carefully at the sample you got and try it with the posted version ...
Ralf Meier
20-Mar-23 5:29am
View
No ... sorry ... I pushed the wrong Reply-Button.
My Reply should point to Hannes who is still on his "own" course ...
Ralf Meier
19-Mar-23 4:02am
View
Because, as Dave allready mentioned, Screen.AllScreens.ToString return a string into ScreenCount.
I have no idea what happend if you use the sample from Grame_Grant with a string - but I suppose that you allways will work with Screen(0) - that means your primary Screen.
Perhaps you look carefully at the sample you got and try it with the posted version ...
Ralf Meier
15-Mar-23 13:54pm
View
Hi Griff,
your answer is, as everytime, quiet correct ... but I suppose that it isn't useful for the OP because there are a lot of basics missing ...
Ralf Meier
14-Mar-23 13:29pm
View
I'm sorry, Bradley ... but I see absolutely no difference between the Solution 2 and 4 and I also can't see why one of these Solutions is better than the other because both are using the same mechanism.
In fact it is no Problem to give an additional answer to an old question if it's different and/or a complete new approach - but in this case I see more the point which is called "Reputation Points Hunting" - and that is a very often used practise in this Forum. Perhaps you take a look at the "community" and there to the "Spam and Abuse watch".
But also for me there is no need to discuss this further - sorry ...
Ralf Meier
11-Mar-23 15:44pm
View
It's the same than Solution 2 - and your Reply goes to a more than one year old reply from me ... 🙄
Ralf Meier
10-Mar-23 3:08am
View
I agrre completely with those who have written before - but to give you a hint :
In the last sentence of your reply your have the answer to your question - what do you think : how could you get the Discount-percentage ? Have you ever heard from dividing ?
Ralf Meier
2-Mar-23 4:57am
View
That is basicly the same question as asked here :
https://www.codeproject.com/Questions/5355899/Csharp-listbox1-all-items-have-picturebox-pictureb
Ralf Meier
27-Feb-23 15:44pm
View
I agree with Maciej - even when there are lot of problems for you it is absolutely necessary that you are able to describe your issue an ask a useful question. Try to do it step by step ...
I don't agree with Member 15627495 - VB.Net isn't harder to learn as C# - in my opinion it is easier for to get q starting point ...
Ralf Meier
27-Feb-23 7:27am
View
If you really want to get Help or Assistance YOU should give (like Andre Oosthuizen has mentioned as a Comment) MUCH MORE INFO ...
Your Comment here isn't a useful Info (for me) ...
Ralf Meier
20-Feb-23 15:30pm
View
at 1st :
I would code "if not flagDataLoading then ..." instead of "if flagDataLoading = false then ..."
But ...
when do you set flagDataLoading to True ?
I suppose that there is the problem ...
Ralf Meier
15-Feb-23 4:47am
View
OK ... and when you put this inside a Loop you get the same result - it is the same procedure - the only difference with the Excel-Sheet is that you have done this Loop manually ...
Ralf Meier
11-Feb-23 3:34am
View
??? ... and how did you realized it in Excel ???
Ralf Meier
4-Feb-23 12:00pm
View
+5 for that ...
Ralf Meier
4-Feb-23 11:57am
View
I don't understand your reply - sorry ...
The work could be done by the code and if you read my answer carefully you could see that the sentences 3 and 4 describe the code you need.
Ralf Meier
30-Jan-23 12:50pm
View
I agree with @Grame_Grant - somewhere in your code (perhaps the Countdown-Display) forces an Invalidate of the complete Form.
Ralf Meier
26-Jan-23 18:04pm
View
without understanding the sense of your question :
- take the Byte-Part (for example 1A) from the string
- build an integer-value from it
- divide it by 2 or do a shift right
- rebuild a string-value from the new byte-value
Ralf Meier
26-Jan-23 5:44am
View
Perhaps you can explain why you think that your "Solution" is an acceptable answer to this nearly 9 years old question ?
Ralf Meier
18-Jan-23 5:52am
View
how did you have adressed the Document itself ?
Ralf Meier
13-Jan-23 10:45am
View
I 've seen it -there are no more ... ;-)
Ralf Meier
13-Jan-23 8:48am
View
Sometimes I also have no idea where to start - so I agree with Grame_Grant.
Of course ... this is a quiet easy question and also of course ... with googleling it would be very easy to get also this solution.
So ... I would downvote the question and not the answer ...
Ralf Meier
12-Jan-23 14:15pm
View
Basicly I agree with Gerry ...
What we do here is helping those who stuck at a specific point. Perhaps it is possible to help you ... but without some code from you and a idea what you want to have it is impossible (for me) - or in other way : we don't sit in front of your PC and can't see what is happening.
The concept for game rules (generally) are the rules of the game itself - if you want to create a kind of KI it depends primary also on this rules ...
Ralf Meier
12-Jan-23 11:46am
View
I don't see a question ... or is it the ask for "do the remaining work for me" ?
Ralf Meier
9-Jan-23 16:49pm
View
If ypou don't understand what I mean I must ask you for your knowledge. Did you understood any of that what I've written ?
For example derive or customizing ?
Ralf Meier
6-Jan-23 13:22pm
View
Sorry - this code doesn't help ... :(
What I would do :
- create your owh (customized) Picturebox which derives from Picturebox and has some additional Properties as :
- Back-Image (which as to be seen when the Picturebox is not activated)
- Active-Image (which is to be seen when the Picturebox was activated)
- Active-Image-Code (same Images has the same code)
- Status (tell you that the Picturebox was activated)
and also additional Methods as :
- Change_to_Active_Image (when Clicked change the Image from Background to Active)
- Change_to_Back_Image (when called change the Image from Active to Background)
- now assign the Images (randomly) to those Pictureboxes and give them a code for identifying
- if you click the 1st PB memorise it and it's code
- when you click the 2nd PB memorise it and it's code
- compare the both codes - if they are matching switch them to unvisible
- if they are not matching change both to the Backimage
- the game is over when no PB is visible
Ralf Meier
5-Jan-23 13:43pm
View
The Description from Griff for me is quiet clear - but it seams not for you ...
I suggest you provide some of your code because without it it's complete senseless to give more advises.
I suggest also that you read the solution from Griff once more and this time more carefully ...
Ralf Meier
13-Dec-22 11:54am
View
OK ... very good ... that seems to be exactly (or nearly) what you have asked for ...
Since I am a kind of collector it is very interesting for me - who knows when I need something like that by myself ...
Thanks for your Reply :)
Ralf Meier
12-Dec-22 11:17am
View
Thanks for the Sample - I will take later a deeper look on it ...
The posted Solution I found (on CP) while looking for a complete different approach ...
Ralf Meier
12-Dec-22 8:05am
View
I have posted a way to a Solution for you ...
Ralf Meier
12-Dec-22 7:02am
View
you could be right - it seams to be a mix between C# and VB.Net ... (but perhaps it could be modified)
But now I have a little time - so I will try it by myself. If I get a Solution I will post it for you ...
Ralf Meier
11-Dec-22 11:56am
View
it looks good - you should provide it as a Solution ...
Ralf Meier
11-Dec-22 7:56am
View
Complete correct.
Wheen I do this I normally scan the Controls-Collection for the names and add them to a Listbox inside my Form (so I could see the Names) - often the Name itself says all about the Function of the Control. If not you should do the same with the Types.
I'm very interested on your progress - so please hold me informed ... ;-)
And of course if there are further questions ...
Ralf Meier
11-Dec-22 6:54am
View
As I wrote before :
You must use Reflection. Each Control has a Controls-Collection which holds all Sub-Control inside it (if there are some). Now what you have to do is : iterate through this collection and find the Name (and by this also) the Reference from the Tabcontrol. But perhaps (that could also be possible) the control is the TabControl (that means derives from it).
If you have the TabControls Reference you can add a new TabPage to it.
How familiar are you with doing something like this ?
Ralf Meier
11-Dec-22 6:35am
View
Basicly I can imagine that the Solution from Mike is working - but there is a lot of knowledge neccessary to do this.
In the past I often modified the windows-delivered Editors but mostly to exclude given controls or functions - but I suppose that the other way round is also possible. For this you need to know the content of the UI - that means : what is the Name of the Tabcontrol and where is it located. Now you can perhaps add another Tabpage to it with the content you like to have. The functions of your new Tabpage must deliver the selected value to the Return-Parameter from the original UI - for this you need to know how it is done. I think that this is the most problematicly part (and I have no idea how it could be done).
If you want to have this special function ... why don`t you create you own ColorEditor which works like you want to have ...?
Ralf Meier
23-Oct-22 6:45am
View
How does the data inside the CSV-File look like ... and how should it look inside the DGV ?
Ralf Meier
20-Oct-22 16:45pm
View
use the "improve question" widget to show the actual code - but not as "something like this"
Ralf Meier
20-Oct-22 9:17am
View
But independant from that ... the code, like it is posted, makes no sense and I suppose that there is also an Event-Problem (an Operation is started before it should be startetd) ...
Ralf Meier
20-Oct-22 2:52am
View
... and also makes no sense at all ...
Perhaps you post us the correct code for suggestions ...
Ralf Meier
19-Oct-22 10:48am
View
Show the complete code from this ... and tell when it is called ...
Ralf Meier
17-Oct-22 2:30am
View
Hi ...
I'm glad to see that you have accepted the solution.
If this answer is working for you please be so kind and rate it.
Ralf Meier
17-Oct-22 2:27am
View
Basicly, when working with a Com-Port, you should allways know how the communication-protokoll is. That means : what is the request und what is the answer. If the answer is variable you normally get this information from one of the first bytes of the answer.
In the moment I don't know how to give you more help ...
Ralf Meier
16-Oct-22 10:24am
View
I'm not quiet sure if I had complete understand your problem - but perhaps :
If you use the DataReceived-Event from the Com-Port you should realize that this Event is fired with the first incomming Character - that means that you should check if all the Characters you are awaiting are inside the Receive-Buffer - that may be a time later.
Baiscly you could check how many Chars are inside the Buffer before do anything further ...
Ralf Meier
29-Sep-22 6:10am
View
You should give much more Information - either about your control and also about the code you are using ...
Without this it is impossible to give useful advises - sorry
Ralf Meier
11-Jul-22 3:57am
View
you should 1st identify what is one weighting-sequence - I suppose that each time you get a string from your unit it is the actual value. So I suggest you not append your textbox (richTextBox1.Text += ...) but assign to it (richTextBox1.Text = ...).
but ... what device you are using - I think that your "problem" is to be solved with paramters of the device ...
Ralf Meier
29-Jun-22 3:28am
View
also it's not complete that what the OP has asked for.
In my opinion the 1st Solution from Griff was the best ...
Ralf Meier
2-Jun-22 8:29am
View
you want to have your graphic with more than one String in it ...?
or do you want to print your string inside an area with more than one line ? For example like this :
this is
my string
Ralf Meier
28-Apr-22 8:29am
View
I don't understand ... try to explain the relationship and the maximum content.
I suppose that you will need a main-class, which holds the properties, and some sub-classes, corresponding to the properties ...
Ralf Meier
19-Apr-22 9:31am
View
you have a kind of Line-definition : y= m*x + b
the only thing you need to do is to check how much of the point-pairs have the same Line-definition / matches to one line-definition ...
Ralf Meier
19-Apr-22 8:43am
View
do you know the Specification of the Line you are searching for ?
Or the other way round : with your 1st sample you work with the line (1,1 - 2,2 - 3,3) - who says that this is the right line ? the right line could also be 1,1 - 1,4 and then the 2 points between are wrong ...?
the same with the 2nd line ...
Ralf Meier
19-Apr-22 8:38am
View
Hi Eddie,
I have to say that I'm not quiet sure at the moment if the KeyPressed-Event is exactly the right approach (in the moment I'm not able to look for it). If it is right you will get the Enter-Key as possible KeyCode-selection. Otherwise you should look for what Richard has mentioned - the KeyDown-Event. Also there you have EventArgs which gives you much more Info than the "Standard"-EventArgs - but you are allways able to select that because all Special-EventArgs are deriving from this class ...
Ralf Meier
15-Mar-22 8:00am
View
To answer your question in your reply (to Griff) : Yes i did ...
Perhaps you haven't had any idea - but in this case you should give much more information. You did nothing of that - no ground to start from ...
And ... for me the answer you gave to Griff was abusive ...
Ralf Meier
15-Mar-22 4:17am
View
Think about what you write and don't be abusive ...
Of course you will get an answer if you give information where you stuck - but what you have done is : "do the work for me ..."
Ralf Meier
24-Feb-22 15:05pm
View
Thank you, Maciej ... :)
Ralf Meier
26-Jan-22 4:07am
View
Congratulations ... you have allready answered a question which ist more than 10 years old ...
Also an answer is allready given - more than 10 years ago ...
Ralf Meier
13-Jan-22 9:34am
View
I suppose that you look at it the wrong way round ...
If you have a UserControl which has several other Controls in it - why you don't give the UserControl new Properties which work with the Properties from the Controls inside which could by changed by the User.
I suggest you should be more specific ...
Ralf Meier
2-Dec-21 6:20am
View
Please don't answer a more than 5 years old question with an answer which is allready given ... (see both Solutions before)
Ralf Meier
2-Sep-21 9:03am
View
Which Property do you mean exactly ?
Do you have set the DesignerVisibility to DesignerVisibility.Content at the Property-Attributes ?
Ralf Meier
27-Aug-21 15:14pm
View
I agree completely with Bill because your own desciption says exactly what has to happen - you only have to create a code from it.
To give xou a little start :
- the Selection of you Combobox should depending on the Seletion assign something.
- the Button, if pressed, has to work with that what was previously assigned.
Perhaps you give it a try ...
Ralf Meier
17-Aug-21 5:41am
View
If you have an additional question then start another question and don't post it as a Solution ...
Ralf Meier
5-Aug-21 3:11am
View
Thanks Maciej :)
Ralf Meier
18-Jul-21 16:01pm
View
How do you get access to the Controls of your Form ?
And how do you think that your class could get it ?
How do you instance this class ?
Ralf Meier
17-Jul-21 15:55pm
View
If you have a question then you should ask your own question ...
actually have created a Solution - which isn't one ...
Ralf Meier
3-Jul-21 13:21pm
View
Sorry Richard ;-)
the 1st answer has the wrong average - it must be 7 and not 7,5 ...
Ralf Meier
3-Jul-21 2:44am
View
No ... sorry ... give it a try - it's easier as you think.
If you have some code which makes problems you are invited to come back and ask something ... but not "please write the code for me" ...
Ralf Meier
2-Jul-21 5:41am
View
Excuse me ... what part of my description is unclear for you ?
Don't you know how to handle the SPLIT-Function ? Or to handle Array-Elements ?
Ralf Meier
28-Jun-21 5:21am
View
I asked you to describe what should happen - as you see by the answer of OriginalGriff your code itself makes no real sense.
So what should happen ?
Ralf Meier
28-Jun-21 5:14am
View
Perhaps it is easier if you try to describe what you want to achieve ...
Ralf Meier
28-Jun-21 4:13am
View
If none of the given answers are matching to your issue you should think about the description of what you want to do.
Perhaps you should improve your question with much more information - for me it sounds that you want to have sub-items to your items ...?
Ralf Meier
28-Jun-21 2:50am
View
Hi Griff,
the Brackets ? Right ?
But you are right - today it's really very early in the morning ... ;)
Ralf Meier
20-Jun-21 3:36am
View
It is like Patrice allready has mentioned : you should set a Breakpoint (perhaps at the line 'TextBox2.Text = ArrayTag(2)') and look with the Debugger what REALLY is inside ArrayTag - I suppose that you will see that there are only 2 Elements inside ArrayTag (Index 0 and 1). Give it a try ... ;-)
Ralf Meier
11-Jun-21 4:08am
View
Initilized means that the Variable "exists" - if we speak about a Variable. If we have a Class-type you only have a placeholder - that doesn't mean that the Variable is instanced.
If you want to have a defined content you have to do it. If we speak about a (more or less) Standard-Variable you have to assign it. If we have a Class-type it could be done with the Constructor (to Default) or with a customized Contructor (as in your sample above) to special values.
Ralf Meier
11-Jun-21 1:28am
View
As Richard wrote in the other Solution : if you want to have a defined content you are responsible by yourself to ensure that.
I would never let a Variable unassigned - but that's my 2 cent ...
Ralf Meier
10-Jun-21 4:22am
View
I'm sorry - I refered to your Class-Example ...
The Struct must be initialized when used as a Variable (perhaps with the Constructor of the Class which uses it)
Ralf Meier
4-Jun-21 3:37am
View
it will be helpful to see the code from the method "CreateRoundRectRgn" - perhaps you improve your question (use the widget "improve question") and provide this missing code ...
Ralf Meier
1-Jun-21 14:17pm
View
+5very interesting Solution.
I never thought that it could also be realized in this way - until today I've allready realized that with "conventionell programming".
Thank for it ... :-)
Ralf Meier
19-May-21 9:06am
View
Congratulations ... you have answered a nearly 8 years old question - and this question was allready answered.
Only to get Reputation Points ?
Ralf Meier
1-May-21 15:54pm
View
... and what happens ?
Which result do you get ?
Ralf Meier
20-Apr-21 3:42am
View
to get a useful answer it's very necessary to give information about your issue AND information where you stuck.
Apologize ... but for me your question is complete un-understandable and senseless ...
Ralf Meier
15-Apr-21 8:44am
View
If you have a Question then ask it as Question and do not add it as Answer to an existing Question ...
Ralf Meier
28-Mar-21 6:50am
View
not quiet correct ... I suppose.
As I see each incomming sequence is ended with a LF - I haven't seen that before.
Your Solution might work (in the moment - but could make an error in future). You look if your incomming sequence contains a LF - I would change it to that your incomming data must End with LF ot ENQ or EOT. Also you should work only with that String-part which is ended with one of these Chars ...
Ralf Meier
26-Mar-21 13:43pm
View
Not really. It depends on your Communication-Protokoll.
The Serailport has the Property BytesToRead. This Property gives you the Information how much Bytes are actually inside the Buffer.
If your are awaiting (for exmaple) 10 Chars and there are only 6 in it you should exit the Method - with the next incomming Char the Event raises again.
If the Buffer contains more than 10 Chars - but you need only 10 - you should not ReadExisting - read only those which are needed by you.
Another Approach could be not to use the DataReceived-Event. You could also use a Timer (for example each 100 ms) and check there if the count of Chars are matching to what you need.
Give it a try - you know much better than I what is needed and when ...
Ralf Meier
19-Mar-21 9:04am
View
There is no real difference to the code from the OP. It must work with .Value as well ...
I suppose that one (or more) of the source-Cells doesn't exist ...
Ralf Meier
15-Mar-21 11:07am
View
OriginalGriff exactly wrote what your problem is - your Exeception says : "expected Typed is DateTime" - you give it a string ...
That means in other words : you want to get a car - and the seller gives you a cheese.
Ralf Meier
13-Mar-21 10:14am
View
Hi Bill,
I agree with you ... and I doesn't meant OriginalGriff as reference - I'm definately in the position to see there a difference ... :-)
I think you have also read the rest of my comment - I also try to be serious too ...
Ralf Meier
13-Mar-21 7:06am
View
I don't understand the calculation within your provided code. I suppose you try a kind of scaling.
But when you ask for Screen.PrimaryScreen.Bounds.Height==600 - why do you divide inside your scaling with 768 to get your faktor ?
Ralf Meier
13-Mar-21 7:01am
View
@Bill:
I have to break a stick for Patrice. This is an often given answer (as well as Solution) to questions like this. I you make a downvote here you must make this by each and every question which gets an "Solution" like this.
Of course - you are right - it's not a Solution, the Solution (in my opinion) could one if the OP gives much more Information about his problem. I also stuck at the point "conversion Symblos to Numbers" ...
Ralf Meier
11-Mar-21 14:00pm
View
Excuse me ...
tabselector.SelectedIndexChanged ?
That Event normally should come from the TabControl itself ... what is "tabselector" to you ?
Ralf Meier
11-Mar-21 13:55pm
View
I'm not using your development system - I use a much older version ...
As I understood the Behaviour don't effect the Tabs itself but the Controls inside them ...
But if you don't relocate them there must be another relationship between them ...
Do you have AutoSize enabled and Labels or Textboxes grow with the assigned Text-Strings ?
Ralf Meier
11-Mar-21 13:51pm
View
Thge OP (and me too) also come from Germany ...
Ralf Meier
11-Mar-21 12:42pm
View
Have you used the Dock-Property of some or all of the Controls of the other TabPages ?
I suppose that you haven't a method which calculates the location for the Controls ?
What are the "many changes" you made to your Application ?
Ralf Meier
11-Mar-21 9:07am
View
Why don't you listen to what Richard wrote to you ?
Don't you know the difference between those Types of Variables ?
What I don't understand :
You have a String why those values inside. Why do you first convert it to an Array and after this want it back as a string ?
If you can answer this I suppose you find the real answer by yourself ...
sorry for that ...
Ralf Meier
11-Mar-21 9:04am
View
@Richard:
I admire your patience ...
Ralf Meier
9-Mar-21 4:18am
View
... and also to you ... ;-)
But I suppose (when reading the question) something much more special is needed here ...
Ralf Meier
9-Mar-21 4:17am
View
Thank you Maciej ... it's a kind of "Back to the Roots" ... ;-)
Ralf Meier
7-Mar-21 3:55am
View
What are you trying to show us with this code-snippet ?
For me it makes less sense and isn't an answer to the question ...
Ralf Meier
5-Mar-21 2:58am
View
Deleted
Thank you Maciej ... :)
Ralf Meier
5-Mar-21 2:58am
View
Deleted
Thank you Maciej ... :)
Ralf Meier
5-Mar-21 2:58am
View
Deleted
Thank you Maciej ... :)
Ralf Meier
5-Mar-21 2:58am
View
Thank you Maciej ... :)
Ralf Meier
5-Mar-21 2:36am
View
I have added the C#-Version to the code too (but it is not tested) ...
Ralf Meier
5-Mar-21 2:35am
View
With my code that works ... perhaps youi had made a conversion or copying-mistake.
Did you realized that the re-added Entry is positioned at the end of the List of the ComboBox ? If you want to have it at it's origin place you should make a kind of sorting after re-adding ...
Ralf Meier
4-Mar-21 10:38am
View
I have allready send you an EMail ...
and ...
It's still not clear for me ...
Ralf Meier
4-Mar-21 10:03am
View
Perhaps I could help you ... but in the Moment I don't understand what you mean.
Could you give me an example what you do and what should happen ?
Customized Controls are a Speciality of me - so I think I would find a Solution ...
Another thing : what is your first name ? Is it Shah ... or is it Rashid ? My first name is Ralf and you need not to say Mister ... ;-)
Ralf Meier
4-Mar-21 7:02am
View
I have added some code for you ... perhaps it helps ...
Ralf Meier
4-Mar-21 6:11am
View
Then you should show your actual code ...
Use the "Improve Question" widget at your question ...
Ralf Meier
2-Mar-21 11:57am
View
You are welcome ... and if there are further question ... no problem ... feel free to contact me ...
Ralf Meier
2-Mar-21 3:40am
View
I'm glad to hear that my Solution works for you ...
If you have further questions you can ask it here ...
I don't want to provide my EMail-adress in this Forum - but of course you can give me yours ...
Ralf Meier
2-Mar-21 3:35am
View
Your last comment isn't clear for me - be so kind and explain what you mean ...
Ralf Meier
1-Mar-21 15:21pm
View
What do you want to show us with your very inaccurate and misleading "Solution" ?
And by the way : have you realized that this question is nearly 10 years old ?
Ralf Meier
1-Mar-21 14:50pm
View
I'm fine thanks ...
I'm wondering that I haven't heard anything from you until now. In my opinion this must be the Solution for you.
Ralf Meier
1-Mar-21 11:32am
View
OK ... you were some seconds faster ... ;-)
Ralf Meier
1-Mar-21 11:32am
View
Perhaps you shouuld write something more about what you are doing there ...
Label.Text contains allways a STRING - the same is a Textbox - Textbox.Text is also ALLWAYS a string.
But perhaps your string has a numeric format ... so if you want to compare them you have to convert them to the right type.
What you have done is to be seen in your code-snippet - you made a string from a calculation ...
If you want to compare numerics you should use numerics.
Compare Doublke with Double - for example.
Also ... it doesn't makes any sense to assign strings to your Chart as X-Y-values. Also at this places it is necessary to assign numerics ...
Ralf Meier
1-Mar-21 6:01am
View
of course you have seen that this question is nearly 10 years old ...?
Ralf Meier
24-Feb-21 2:52am
View
Hi ... what's the success until now ?
Does it work like you want ?
Ralf Meier
22-Feb-21 6:15am
View
Thnaks for your vote ... :-)
Ralf Meier
22-Feb-21 6:14am
View
It is a kind of Statemachine - I made it as follows :
The first time is your time before showing the Messagebox.
The next (2nd) time is for showing the Messagebox.
the 3rd time is the time you cvanmn see the Messagebox before it shuts down automaticly ...
My Timer-Tick was 1 Second - so that is also the base of this times.
Ralf Meier
21-Feb-21 3:56am
View
Hi Rick,
where is the difference between your code and mine ?
Of course ... I only provided the Timer-part assuming that the rest is still working ...
Ralf Meier
21-Feb-21 3:52am
View
You are welcome.
I think there could be some questions - feel free to ask them ...
Ralf Meier
20-Feb-21 18:21pm
View
I have modified my cide-snippet - please take a look and try once more ...
Ralf Meier
20-Feb-21 10:48am
View
I would have posted only that what you wrote in your comment. In fact the answer is the reference to the "toString"-,method and it's using ...
Ralf Meier
20-Feb-21 9:09am
View
You should post it as Solution ...
Ralf Meier
18-Feb-21 7:31am
View
Keine Nierensteine oder Blasensteine - Gallensteine - da hilft kein Bier ... :-(
Your Comments inspired me to go into a complete new direction. Also of course the Article from Henry Minute. But in the Moment I don't have MY SOLUTION - but I think I will get it ... ;-)
Virtual +5 to you from me too ...
Ralf Meier
17-Feb-21 6:09am
View
Gall bladder - I have had some stones too much ... and cyclic problems with them ... now (I hope) it is finished ...
Ralf Meier
17-Feb-21 4:11am
View
Thank you Maciej ...
Ralf Meier
17-Feb-21 4:10am
View
I were some days in hospital - now I'm back and now I will try your approach ...
Ralf Meier
14-Feb-21 7:01am
View
Thanks a lot for your efforts - I will try it later and give a Feedback ... but basicly (first look onto it) it looks good :-)
Ralf Meier
13-Feb-21 17:13pm
View
OK ... I think now I understand ...
When you start your Application for example a 10 am it also executes the alarm and stop itself because 10 am is after 8 am - am I right ?
If Yes you have to check when starting your application if your current time is before the alarm-time or after. If it is after you set a flag which prevents the execution of alarm inside Timer1_Tick. But inside the Method Timer1_Tick you reset the bit if the current time is before alarm-time.
Thats all ... ;-)
Ralf Meier
13-Feb-21 11:18am
View
And your problem is ?
I suppose your Application exits without starting the Alarm - right ?
Ralf Meier
13-Feb-21 11:15am
View
I know that this is not an easy question ...
Ralf Meier
13-Feb-21 11:14am
View
I don't have implemented IDesignerHost ... but I created a customized ParentControlDesigner to my Control - I suppose that goes in the same direction ...
With the basic functions of the ControlDesigner I'm very familiar - only this part is a black hole for me ...
Ralf Meier
13-Feb-21 10:43am
View
Hi ...
that is nearly the same as Maciej allready suggested to me. To clarify : my issue is the DesignTime-functionality - there it must work. The Drag-Events from the Control during Runtime will work (I'm sure).
During DesignTime (I suppose) the ParentControlDesigner must be the right address - but all my tries there (without any usable documetation from Microsoft or others) did not solve in any success ... :-(
Ralf Meier
13-Feb-21 9:29am
View
It was only a Suggestion ...
But independant :
You should compare if DateTime.Now is greater than your preset-time. Therefore you should compare DateTime with DateTime - you could also set your preset-time as DateTime ...
So make your Variable eight to a DateTime and set it like this - then the compare will work ...
Ralf Meier
13-Feb-21 6:49am
View
I suppose this is a question ... so ... if you want to get an answer you should ask your own question an not post something as Solution.
Give it a try ...
Ralf Meier
13-Feb-21 4:03am
View
I tried your suggestion but it leads to nowhere ... The point is that in DESIGNMODE my Control doesn't ask for the drag-drop. What I tried now was do enable the functions with a customized ControlDesigner - here exists the method GetHitText with which you can activate underlying parts of the Control during DesignMode (for Example open a ComboBox or Switch Tabs of a TabControl and so on - I have a lot experience with that). But that doesn't work ... :-(
So I tried do do the same inside the customized ParentControlDesigner - there are also existing methods for Drag-Drop - but without success. I think this is the right place but I don't have useable Information about that - at this point the Internet AND Microsoft is very very poor.
The only possible Solution I found until now is a combination of a control with a Panel inside. Of course ... I could do it this way and that will work ... but that seams also very poor to me ...
And CodeProject also doesn't help me to get a step foreward ... :-(
Ralf Meier
12-Feb-21 18:19pm
View
OK ...
How does your String-Value look like when you read it from the serialport ?
How does your Interger-Value look like when you read it directly from the Serialport ? What is the difference between that value and the one which is send by the Arduino ? ... and what does the Arduimno send ?
You see - that is to less Information you gave to us ...?
Ralf Meier
12-Feb-21 10:51am
View
other comment :
I need the definition of MyRectangle and Trans ...
Ralf Meier
12-Feb-21 6:24am
View
In the moment I am not able to simulate that - but independant :
what means "not properly" to you ? What do you get and what do you want to get ?
Ralf Meier
12-Feb-21 6:21am
View
If I have a Solution I will do that ... and earn my first points as Author ... ;-)
But first I must have a Solution ...
Ralf Meier
12-Feb-21 3:58am
View
That's an idea - of course. I haven't tried it that way until now.
What I don't understand is that there is no information or samples availible for this issue ... :-(
Ralf Meier
11-Feb-21 16:24pm
View
---
Ralf Meier
11-Feb-21 16:24pm
View
Hi Maciej,
a very good Article with a functionality which is often used by me - all my Controls have only those Properties which they were using (and which they need).
But this doesn't help me.
I try it once more to clarify :
please see my improved desciption to my question ...
Ralf Meier
11-Feb-21 13:09pm
View
Thanks Maciej - I will try that later ...
But in my opinion is a functionality which comes from the ControlDesigner and not from the Control itself.
I can actually drag other Controls inside my Panel - but I can't prevent that at special (or better unwanted) positions ...
Ralf Meier
30-Jan-21 5:10am
View
I don't know anything about MatLab and so this comment could be not useful - but :
Have heard about the ASCII-Code of Characters ?
For example the ASC of "A" is 65, of "B" is 66 and so on ...
Perhaps it helps ...
Ralf Meier
15-Jan-21 16:53pm
View
Excuse me ... but the OP should at first try (or learn) to provide complete code. Have you took a look at his "snippet" ? It is complete senseless and incomplete ... and nearly the same as in his last question to nearly the same title (see my comment above).
Cheers Ralf
Ralf Meier
15-Jan-21 16:49pm
View
You provided nearly the same senseless and incomplete code as in your last question to the same title (https://www.codeproject.com/Questions/5291675/How-to-jion-weight-scale-to-my-PC)
Perhaps you should try to provide complete code and ask a specific question to get a step further ...
Ralf Meier
14-Jan-21 14:36pm
View
Would you be so kind and explain me what the matter is with you ...?
Ralf Meier
14-Jan-21 14:02pm
View
I still don't understand you. This Link show you a lot of examples how to do it. Have you tried anythink ? If Yes : where do you stuck ?
And ... by the way : why do you shout ? Writing in capital letters means shouting ...
Ralf Meier
14-Jan-21 12:41pm
View
I'm very interested to know your Problem ...
If you generally act like this you will never get a Solution to anything ...
Ralf Meier
14-Jan-21 12:39pm
View
I agree with you when I see the actual version of this question ...
Ralf Meier
14-Jan-21 12:29pm
View
Not with many success - it's gone again ...
Ralf Meier
14-Jan-21 9:30am
View
If you really don't understand the syntax you should so what everyone has done before in the same Situation : try something, study, look with the Debugger what happens ... and perhaps ask specialized/specific questions ...
Ralf Meier
14-Jan-21 9:27am
View
I don't want to be abusive - but I suppose the OP wants to have a "quick'n'dirty" code, which is easy to use ... and without doing anything by himself. Yesterday we had a Solution 3 here, where the OP wrotes something like this ... and his answer to your Solution leads diretly into this direction ...
But ... never the less : +5 from me ...
Ralf Meier
13-Jan-21 14:25pm
View
At first : don't post your answer to something as a Solution.
And then : where do you stuck ? I'm getting nowhere is says to me : I'm not interested in doing something by myself ...
Ralf Meier
12-Jan-21 17:13pm
View
Thank you, Maciej
Ralf Meier
9-Jan-21 14:52pm
View
Sorry Henry - it's not my question and not my issue an I'm not the enquirer. I'm a "Replier" like you ... and my reply corresponds to the so called "very poor code-snippet" ...
Ralf Meier
9-Jan-21 5:00am
View
My question to this code : does anything happen when you start it ? I suppose that nothing really happens - some parts of the code are really senseless for me. And by the way : have youn ever heard something about formatting ...?
See also my comments inside your provided code ...
Ralf Meier
4-Jan-21 4:28am
View
I suppose he gets an Error because his code isn't covered in a method ...
Ralf Meier
30-Dec-20 4:16am
View
Hi Rick,
thanks for your Solution - it answers one part of my question ... but sorry ... not the one for MouseEnter / MouseLeave.
The difference is that MouseHover, MouseClick and so on could be hooked and directed to another method which makes a common Event.
The 2 Events from above neutralize each other ... this is the point where I stuck ...
Ralf Meier
29-Dec-20 9:00am
View
Haven't you used ProvideProperty until now ?
Ralf Meier
29-Dec-20 8:59am
View
No problem ... and to ProvideProperty I can't give a Description and a Categorie directly - but perhaps there is a way I haven't found with Goggle yet ...
Ralf Meier
29-Dec-20 8:50am
View
Okay ... sorry ...
I have a Component which uses ProvideProperty and Implements the IExtendedProvider. Those Properties, which come originally from the Component and are "provided" to the other Controls, I want to change the Category and the Description. With "normal" Properties, which directly belong to the Control, it is quiet clear for me.
Do I have explain it better now ?
Ralf Meier
29-Dec-20 8:13am
View
Sorry Richard ... but I can't see how this Solution matches to my question.
Your example shows "regular" Properties from your customized Control. I have a Component which provides Properties to other Controls which normally don't belong to them ... here the Component really works with the Data of the provided Properties.
Ralf Meier
14-Dec-20 6:18am
View
... and the original question is more than 7 years old ...
Ralf Meier
1-Dec-20 7:04am
View
Thanks a lot for upvoting my Solution ...
Ralf Meier
24-Nov-20 10:45am
View
You are welcome ...
I was not sure if this could be the Solution for you - otherwise I would have posted it as Solution by myself ... ;-)
Ralf Meier
24-Nov-20 9:43am
View
Also ... if you answer my comment you should use the "Reply" widget from my comment. In this case I get a notification ... ;-)
Ralf Meier
24-Nov-20 9:42am
View
Hi Gary,
WindowState is a Property - you must assign the value "Minimized" to it.
With your last comment I suppose you made something wrong - but ... perhaps you modify your question with the "Improve question" widget and provide this part of code ...
Ralf Meier
24-Nov-20 7:31am
View
I don`t understand what you mean - perhaps a Problem of translation ;-)
You speak abou Form2 I think.
Where should it stay ?
How do you want to bring it to foreground if you want to use it ?
Perhaps the Form-Property WindowState is the thing you are searching ...
Ralf Meier
21-Oct-20 5:25am
View
What is the difference between your solution and the solution before ?
And ...
You should not provide your EMail-adresse in any Forum ...
Ralf Meier
13-Oct-20 6:52am
View
You should carefully read what Griff has written.
Most important for you is the first line of the statement.
It is independant if you use a text-editor oder vb.net or something different - the result is allways the same ...
Ralf Meier
30-Sep-20 17:23pm
View
Hi Griff,
I stumbled into your answer to this question.
I have also a Solution to this which is in fact very much easier (und much more understandable) than this approach - but now I`m much more interessted in yours.
I don't have understood the suggestion from you - would you be so kind to explain it for me because perhaps this could be an approach which makes my kind of work a little easier ...
Cheers
Ralf
Ralf Meier
2-Aug-20 14:04pm
View
You answer to a 9 years old question ... AND ... your answer isn't so solution to the question.
The right answer was given (MaximumSize-Property).
Perhaps in future read the questions carefully ... and look when they were asked ...
Ralf Meier
30-Jul-20 4:37am
View
Thank you Maciej ... :)
Ralf Meier
29-Jul-20 2:55am
View
And you have deleted the Code-line inside the Form_Load-method ?
But I'm also a little confused with your descriptions ... which Button from which Form should enable which Button on which Form. I suggest you use unique descriptions.
Basicly your code must work if it's called - but it is possible that another method compromise it ...
Ralf Meier
25-Jul-20 15:18pm
View
A link for what ...? Give it a try ...
Ralf Meier
25-Jul-20 13:18pm
View
Yes ... of course ... you should now set each new Series to a new (different) color ...
That means : inside your loop you have to do this - for eample with a pre-defined array where the 1st element is Green, the 2nd Red, the 3rd Blue and so on ...
Ralf Meier
24-Jul-20 16:50pm
View
in your case ;
Chart1.Series(department).Color = Green // for example
Ralf Meier
24-Jul-20 8:19am
View
Have you tried to attach the method DIRECTLY to an Event of your DGV ?
Of course ... using this method of your Form works ... but as you described : not as you want ... :(
Ralf Meier
7-Jul-20 11:26am
View
Thank you for ypur vote ... ;-)
Ralf Meier
10-Jun-20 5:49am
View
I think you have read what CHill allready has mentioned ... this Forum is for helping and to point out what could/should be changed. Also if you provide some Code we are willing to modify it if that makes sense. So ... Show us YOUR Time-Compare and show us the code of the Method "LEFTCLICK". Also : it is every time very useful to give as much information as possible - notice : the result is as better as you are willing to help us to help you ...
Ralf Meier
10-Jun-20 1:03am
View
at first : to compare DateTime.Now exactly will not work - notice that here are also Milliseconds included. A Match to a Millisecond-Value is nearly impossible ...
then : what should happen in your method "LEFTCLICK" ... or what are you trying to achieve ...?
Ralf Meier
20-May-20 5:43am
View
No ... because it's a bit problematically in the office (where I am) ...
Therefore I suggested it the other way round ... and I think this will also be the right way ...
Ralf Meier
20-May-20 5:19am
View
You should better improve your question with the (new) code-snippet.
Which Event did you have chosen for your action ...?
Ralf Meier
20-May-20 2:58am
View
Hy Maciej,
I'm very impressed of your ability of imagination to understand what "could be" meant by this question - or do you have a better glas-bowl than me ...? ;-)
+5 for this guess ...
To complete your answer I would first check if there is a cell right to the CurrentCell before trying to select it.
Ralf Meier
19-May-20 5:20am
View
Sorry ... with this less information it's impossible for me to imagine what you try to achieve ...
You should improve your question "a little bit" ...
Ralf Meier
23-Apr-20 3:39am
View
Not in the moment - sorry ... but I think that my desciption is unique ...
If it doesn't work for you we should look at your code ...
Ralf Meier
22-Apr-20 2:06am
View
In this case you should show your code which doesn't work ...
Basicly my Suggestion works as described ...
Ralf Meier
20-Apr-20 5:00am
View
Hi,
the decribed behaviour is quiet normal because the Groupbox is NOT translucent. The Control which has the Focus will move to foreground - either the Groupbox (with the Textbox inside) or the DGV. So : let the DGV also be a member of your Groupbox ... OR ... let the Textbox be the member of the Form (to which as it seams the DGV belongs).
Ralf Meier
17-Apr-20 7:20am
View
OK ... where do you stuck ...?
Ralf Meier
17-Apr-20 7:19am
View
I can't follow you (in the moment) ...
Please explain : what should happen with which action ?
And : why do you have the Textbox inside a GroupBox ?
Ralf Meier
17-Apr-20 4:40am
View
So there are some new questions :
- what is the sense of the Groupbox ? Why don't you have the Textbox directly on the Form ?
- Does the GroupBox directly end behind the TextBox ?
- or ... do you want to place the DataGridView over the GroupBox (when under the TextBox) ?
- or ... should the DGV also become a Member of the GroupBox ?
Ralf Meier
9-Apr-20 6:56am
View
to complete the answer of Maciej :
- Location is a point inside your Form where the Textbox should appear - this point has to be calculated by you
- SomeNumber is the Number of the Textbox - inside YOUR Loop this Number must be incremented by you
If your code really doesn't work : improve your question with the new Code - completed by the Suggestion of Maciej ...
Ralf Meier
31-Mar-20 16:30pm
View
From where does this Hex-String comes ?
What is it's sense ?
The reason of my question is that no Interger-Format is able to display such a great value as it's shown above. Perhaps you don't need the conversion as discribed by you - perhaps you need something complete different as conversion-algorhythm ...
Ralf Meier
27-Mar-20 16:11pm
View
I agree with the Solution from Phil.O - but a question :
When you have a Solution for the Form itself - why don't you do the same for the UserControl ? Both are Containers which hold Controls in it's ControlCollection ...
Ralf Meier
26-Mar-20 13:36pm
View
You're welcome ...
Thanks for your voting ...
Ralf Meier
6-Feb-20 4:51am
View
I'm not complete sure but I suppose that at the end of Form_Load the Controls of the Form are instances - not before. I would try it with another event from the Form.
Another point : For me it's allways weird to give a variable the same Name as the Type to which it's refering (For each control as Control ... - better : for each c as control)
Ralf Meier
23-Jan-20 4:33am
View
I made this suggestion because some years ago I had the issue to store data from a HMI-System, which was connected to a PLC (both Siemens), to a Network-Drive. Sometimes the Network-Drive was not accessible but Windows doesn't realized that (perhaps because of cached information). With programming I only had the possibilities of VBA. A normal write-access to the Network-Drive causes a very long Timeout which wasn't akceptable - but the directory-read in this environment causes an error which was handlebar for me inside the Script. But additional : I tried to read the directory from a defined subdirectory - not from the root ...
Show More