Click here to Skip to main content
14,870,416 members

Comments by BillWoodruff (Top 200 by date)

BillWoodruff yesterday View
   
does this kind of gimmecodez question really deserve a response ?
BillWoodruff yesterday View
   
repost of: https://www.codeproject.com/Questions/5301979/When-selecting-a-dropdownlist-that-loads-the-infor
BillWoodruff yesterday View
   
consider posting an issue on https://github.com/JKorf/Binance.Net/issues ?
BillWoodruff 3 days ago View
   
+5 unwarranted vote of #3 countered
BillWoodruff 3 days ago View
   
where did you get the Control ?
BillWoodruff 3 days ago View
   
+5
BillWoodruff 3 days ago View
   
You need to ask specific questions based on specific parts of your code, with clear descriptions of what works and what does not work, including specific error messages and where they occur.
BillWoodruff 4 days ago View
   
Voted #1: random thoughts from someone who has obviously never really worked with a TableLayoutTable.
BillWoodruff 4 days ago View
   
When I click yes, it doesn't remove the row I want, it just closes the page entirely.

in the code shown, this is incorrect: a 'yes would delete the Controls.
BillWoodruff 4 days ago View
   
+4 The user SHOULD use a local variable, but, in this case ... if there is no other code uses the Form's DialogResult ... it will not potentially cause an error.

Note that the Form.DialogResult property is not exposed in the design-time Property Browser view.
BillWoodruff 5 days ago View
   
+5
BillWoodruff 5 days ago View
   
see the solution I added
BillWoodruff 2-May-21 8:00am View
   
I think the OP just wants to save/load the Text in each TextBox ... that is not difficult.
BillWoodruff 2-May-21 7:57am View
   
Are there always the same number of TextBoxes, or are they added/deleted during game play ?

Do you need to save/load only the TextBox Text ... that's easy ... or, do you need to save both Text and visual state ... that's harder ?
BillWoodruff 1-May-21 20:37pm View
   
Sorry, we're not here to play the game of trying to guess what you mean, and, you respond by saying: "not that."
BillWoodruff 30-Apr-21 20:01pm View
   
You are mistaken: any code inside the first {} will be called only if the user clicks the 'Yes button.
BillWoodruff 28-Apr-21 7:50am View
   
Explain what "mark the answer" means, and show your code.

"tool could accidentally switch the correct answer" explain in detail.
BillWoodruff 26-Apr-21 14:03pm View
   
With that attitude, you will never reach your potential as a programmer.

Revenge down-voting is childish.
BillWoodruff 26-Apr-21 12:48pm View
   
read the description of the assignment which I quoted from.
BillWoodruff 26-Apr-21 12:41pm View
   
"TesxtBox2, TextBox3, and TextBox4, then multiply the result with the value of TextBox5. Show the final result in textBox6." 4 for data entry.
BillWoodruff 26-Apr-21 12:20pm View
   
with 5 textboxes, this is even more of a DRY red-flag.

it's the kind of homework answer from one of my students that is the perfect setup for introducing concepts of validation, and, using inheritance to create created modified Controls.
BillWoodruff 26-Apr-21 12:16pm View
   
my vote acknowledges you have posted 20% of a solution; that's really charity on my part :)
BillWoodruff 26-Apr-21 11:52am View
   
You are really confused, which is okay, but, how about improving your knowledge before you post on QA.

If you start a .NET FrameWork Console app, there is no way to display a WinForm in design-view, or, display a toolbar with WinForm Controls.

If you ADD a WinForm to the Project, only then do you get the design-time view.

If you start a .NET Core Console app, you cannot use Windows.Forms in any way.

The .NET Core WinForm project designer is still not in final form, and is available only for .NET Core WinForm apps. It won't work in my Visual Studio 16.9.4

https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-preview

https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-preview
BillWoodruff 26-Apr-21 6:05am View
   
+2 not a solution
BillWoodruff 24-Apr-21 8:19am View
   
+5
BillWoodruff 24-Apr-21 8:18am View
   
+5
BillWoodruff 24-Apr-21 7:44am View
   
see my reply here.
BillWoodruff 24-Apr-21 7:38am View
   
A {1} with a {2} is exactly the same as a {1} without a {2} except for that it has a {2 }.

Depends.
BillWoodruff 24-Apr-21 7:31am View
   
Yes, a chimeric app is not good food for this OP :)

Not the big picture: "they do not support the message loop and suchlike that is required of a Windows app with forms." There is a fix for that: adorn the Console app Main method with [STAThread]

You may find this thread interesting:

https://stackoverflow.com/questions/4362111/how-do-i-show-a-console-output-window-in-a-forms-application
BillWoodruff 24-Apr-21 7:22am View
   
Hi Piebald,

I feel strongly that newcomers to C# and WinForms should not be distracted by the complexity of chimeric apps.
Interesting ! I'd enjoy seeing an article by you on this. This SO thread was helpful back when I was doing my chimeric app:

https://stackoverflow.com/questions/4362111/how-do-i-show-a-console-output-window-in-a-forms-application
BillWoodruff 23-Apr-21 18:09pm View
   
+5 A good example of constructive feedback (as opposed to rewriting the code for the OP) where you discuss the OP's logic AND show the relevant code. This type of analysis is all too rarely seen here.
BillWoodruff 23-Apr-21 18:03pm View
   
You created a golem.
BillWoodruff 23-Apr-21 17:59pm View
   
A long time ago I did a Console app that used several WinForms for data input ... what drove this chimeric choice :) was the client's demand for the end-user to have a highly controlled experience, almost a kiosk-like ui.

Well, we all have things we'd like to forget.
BillWoodruff 23-Apr-21 17:53pm View
   
Console apps can use Windows Forms ... but, that is not good programming practice.
BillWoodruff 23-Apr-21 13:05pm View
   
this is a repost by the OP
BillWoodruff 23-Apr-21 10:26am View
   
Not to worry ! I just hope you are not missing what I'm missing :)
BillWoodruff 23-Apr-21 9:12am View
   
I say, in the previous comment: "CPallini's solution does prevent duplicates."

You are missing ... something :)
BillWoodruff 21-Apr-21 9:11am View
   
put breakpoints in your code and single-step through it until you isolate where the error occurs.
BillWoodruff 21-Apr-21 3:18am View
   
+5 bulls-eye
BillWoodruff 21-Apr-21 3:15am View
   
and what happened when you tried it ?
BillWoodruff 18-Apr-21 6:14am View
   
So, I just considered the technical merit of your response, and, acted on it by modifying my judgement/response, and, you respond with an ad hominem attack.

If your personal opinions had any value to me, I would respond to them.
BillWoodruff 18-Apr-21 5:52am View
   
You're right, it is an alternative, and it is more on-topic than Schmitz' usual rep-bloating spew: I am raising my vote to #3.
BillWoodruff 18-Apr-21 5:49am View
   
If you want to see a code example that demonstrates simplifying creating the two decks, and guarantees each player does not have duplicate cards in their hand: let me know. Note that CPallini's solution does prevent duplicates.
BillWoodruff 18-Apr-21 5:43am View
   
Some of us take teaching seriously; others enjoy showing off.
BillWoodruff 18-Apr-21 5:41am View
   
OP means "original post/poster" ... the author, i.e.: you.
BillWoodruff 18-Apr-21 5:40am View
   
Deleted
OP means "original post/poster" ... the author, i.e.: you.
BillWoodruff 17-Apr-21 12:57pm View
   
+5
BillWoodruff 17-Apr-21 12:53pm View
   
You do not separate the construction of the player decks from testing for a "winner" ... that seems odd.
BillWoodruff 17-Apr-21 11:02am View
   
And, when the OP gets a job, are you going to rewrite his code for him ?
BillWoodruff 17-Apr-21 11:00am View
   
Voted #1: irrelevant ... if you are sampling the deck randomly, you do not need to shuffle.
BillWoodruff 16-Apr-21 0:12am View
   
Post the exceptions, and, describe exactly where they occur.
BillWoodruff 13-Apr-21 0:15am View
   
contact Solution
BillWoodruff 13-Apr-21 0:15am View
   
Deleted
contact Solution
BillWoodruff 9-Apr-21 1:23am View
   
put a breakpoint before _context.Add(job);

inspect the value of Reference
BillWoodruff 8-Apr-21 6:26am View
   
OP: "... compiler is reaching the first method"

suggests it compiles ?
BillWoodruff 8-Apr-21 4:10am View
   
"compiler is reaching the first method always though I am passing value with str variable only."

doesn't make sense: both methods require: IDbDataParameter[] parameters
BillWoodruff 6-Apr-21 23:12pm View
   
changed vote to #3:

"Curiously though, you should be able to write a WinForms or WPF app without actually having to display a window, unless you choose to do so."

indeed, you can, using WinForms Application Context, but, why would you ?
BillWoodruff 6-Apr-21 6:18am View
   
:)
BillWoodruff 6-Apr-21 6:18am View
   
feed elephants bananas, and they are very happy ... but, they do not turn yellow.
BillWoodruff 6-Apr-21 4:07am View
   
"that depends on what the meaning of 'is' is." Bill Clinton :)

the example shown was created as a Console app; the VS compiler thinks it's a Console app.
BillWoodruff 5-Apr-21 20:00pm View
   
A good idea to test and experiment before posting what you "doubt." See my post,
BillWoodruff 5-Apr-21 19:09pm View
   
Vote of #1: absolutely wrong ... you can use MessageBox.Show, and you can create and show (modal, or non-modal) Forms in a console app. See example here.

However, just because you CAN, does not mean you should, or that it is a good idea !

BillWoodruff 3-Apr-21 23:27pm View
   
+5
BillWoodruff 3-Apr-21 23:27pm View
   
+5
BillWoodruff 3-Apr-21 23:25pm View
   
my vote of #1: after not telling us you were using a Global Keyboard Hook ... wasting our time ... you now post this incomplete code which does not handle F3.
BillWoodruff 31-Mar-21 8:53am View
   
homework: just do it.
BillWoodruff 27-Mar-21 20:17pm View
   
+5
BillWoodruff 27-Mar-21 20:14pm View
   
I have found PostSharp support excellent.
BillWoodruff 27-Mar-21 20:13pm View
   
Deleted
Please do report this to PostSharp; I have found their support excellent.
BillWoodruff 27-Mar-21 19:22pm View
   
ask DevExpress
BillWoodruff 27-Mar-21 18:36pm View
   
see reply below
BillWoodruff 27-Mar-21 18:14pm View
   
Where does the data (lines) come from ? Do you have any control over its format ?
BillWoodruff 24-Mar-21 22:32pm View
   
+5
BillWoodruff 24-Mar-21 22:30pm View
   
Yax text ... what's that ?
BillWoodruff 24-Mar-21 22:28pm View
   
+5
BillWoodruff 24-Mar-21 22:27pm View
   
+5
BillWoodruff 20-Mar-21 23:06pm View
   
show the code/and or xaml for the button and its event handlers
BillWoodruff 20-Mar-21 11:51am View
   
show the code you are using now, show the xaml for the grid.
BillWoodruff 19-Mar-21 16:23pm View
   
+5
BillWoodruff 18-Mar-21 18:21pm View
   
see if this is helpful: https://www.codeproject.com/Answers/5297564/What-is-the-counterpart-of-this-C-pointer-programm
BillWoodruff 18-Mar-21 13:29pm View
   
see my post below
BillWoodruff 18-Mar-21 11:06am View
   
Are you asking how to use "unsafe" code in C# ... or, are you asking how to write a C# equivalent to the C function ?
BillWoodruff 18-Mar-21 11:00am View
   
+5 to counteract an unwarranted vote of #1
BillWoodruff 16-Mar-21 19:34pm View
   
+5
BillWoodruff 16-Mar-21 19:33pm View
   
+5 kudos for ... cmbcam1Id , cmbcamera2Id ... viva Hungarian notation !
BillWoodruff 16-Mar-21 19:31pm View
   
+5 ReSharper is not free, but, I can't imagine coding in C# washout it :)
BillWoodruff 16-Mar-21 19:29pm View
   
+5
BillWoodruff 16-Mar-21 19:24pm View
   
single-step through the code, and look at the value of variables: compare what you see with what you expect. that should help you isolate the problem.
BillWoodruff 15-Mar-21 7:22am View
   
Thank you, Maciej
BillWoodruff 14-Mar-21 14:59pm View
   
+5
BillWoodruff 14-Mar-21 14:56pm View
   
+5
BillWoodruff 14-Mar-21 10:23am View
   
more confused code. you define 'training and never use it.
BillWoodruff 14-Mar-21 10:16am View
   
A ListBox Items collection is just a collection of Type Object ... not ListViewItem ... you can add anything to it ... anything with a built-in, or user-defined ToString method will cause the expected result in the displayed control.

NewItem.Text = listBox1.SelectedItem.ToString() + " - " + listBox2.SelectedItem.ToString();

This is wrong: it would result in a single item being added, not two items
BillWoodruff 14-Mar-21 10:04am View
   
Voted #5 to counter unwarranted down-vote.
BillWoodruff 14-Mar-21 3:08am View
   
I looked at the screen capture.

Your goal is clear, but the code shown here is fragmented, and does not show where many variables used are initialized. We can't read your mind.
BillWoodruff 13-Mar-21 11:26am View
   
Your code here is fragmented, and does not show where many variables used are initialized. We can't read your mind !
BillWoodruff 13-Mar-21 10:46am View
   
Hi Ralf, I respond at length only to people I take seriously :) fwiw: I respect you and Patrice. You have every right to question my behavior and intent: the truth I face liberates me; the truth I hide from destroys me :)

The "ideal" QA solution could be every mentor and mvp taking a major role in managing QA ? Oh, I forgot ... this is not an ideal world :)
BillWoodruff 13-Mar-21 9:52am View
   
Hi Ralf, I take my responsibilities as a CP Mentor seriously, and, I really hesitate to down-vote ... if I can see a shred of relevance to the technical content of the OP's post, usually I don't vote.

Any solution that insults, discourages, the OP gets down-voted and/or reported.

imho, OriginalGriff has earned the right to make frequent advisory comments posted as solutions by his almost unique contributions to CP and QA over so many years: his imitators who post inferior me-too stuff (to pad their reps ?) have earned nothing.

Because "lots of people do it" doesn't make it "right."

At age 77.5, near blind in one eye, increasingly limited vision in the other, leaky heart valve, etc., I don't have time to read/respond to many posts :)
BillWoodruff 13-Mar-21 5:57am View
   
"whenever I tried, I get an error for not being able to access the *.csv file."

show error details, where does it occur ? you do not show the code that calls ReadAndStoreLinesIn01
BillWoodruff 13-Mar-21 5:48am View
   
I we do your homework, you will learn nothing !
BillWoodruff 13-Mar-21 5:45am View
   
"I submitted what I have tried in the problem part." Where's the code ?
BillWoodruff 12-Mar-21 18:49pm View
   
Describe the structure of the data in the file in detail. Is it comma separated strings each of which can be converted to an integer ? What do non numeric entries mean ?
BillWoodruff 12-Mar-21 18:44pm View
   
My vote of #1: This is not a solution; it's a comment, and repeats the comments you've already made.
BillWoodruff 12-Mar-21 18:42pm View
   
My vote of #1: This is not a solution; it's a comment with an explicit "go away" message.
BillWoodruff 12-Mar-21 18:34pm View
   
"with approximately 5 million functions ... compiled on different platforms, and different OS versions." This sounds like either science-fiction or madness.
BillWoodruff 12-Mar-21 18:29pm View
   
+5
BillWoodruff 10-Mar-21 10:40am View
   
The incomplete code you show does not provide any information about user data. We can't read your mind.
BillWoodruff 8-Mar-21 7:11am View
   
"my requierments are when ever I edit the user name than all the checkbox will become zero but I want when I change the name than all the the permission checkbox stay put." So: who defines the requirements ?
BillWoodruff 7-Mar-21 23:09pm View
   
describe the structure of your tables.
BillWoodruff 6-Mar-21 4:47am View
   
We can't read your mind: show the code that creates the Class.

How do you handle "state of motion:" not running, starting run, running, stopping, stopped ? Show the code for that.
BillWoodruff 6-Mar-21 4:26am View
   
Deleted
We can't read your mind: show the code that creates the Class.
BillWoodruff 6-Mar-21 4:14am View
   
We can't read your mind: show the code that creates the Class, and the code where the error occurs.
BillWoodruff 5-Mar-21 3:38am View
   
How do you create the DataGridView Columns ?
BillWoodruff 5-Mar-21 3:08am View
   
What stops you from asking the instructor for clarification ?
BillWoodruff 5-Mar-21 2:32am View
   
How could we guess your app was an Android project ? Use Tags on your questions.
BillWoodruff 5-Mar-21 2:24am View
   
We can't read your mind: which variable, where ?
BillWoodruff 4-Mar-21 4:40am View
   
Given the user can select up to 3 distinct values from 5 values, are ComboBoxes the best UI ? Perhaps use a CheckedListBox where selection is limited to 3 choices ?
BillWoodruff 4-Mar-21 4:35am View
   
+5
BillWoodruff 3-Mar-21 15:58pm View
   
+5
BillWoodruff 3-Mar-21 15:55pm View
   
Use the dedicated ImageMagick section on StackOverflow ?

https://stackoverflow.com/questions/tagged/imagemagick
BillWoodruff 3-Mar-21 15:35pm View
   
You create 'listB, but we can't see what you do with it. Show the code that produces those outputs.
BillWoodruff 1-Mar-21 1:55am View
   
+5
BillWoodruff 1-Mar-21 1:55am View
   
+5
BillWoodruff 1-Mar-21 1:09am View
   
start here: https://www.google.com/search?q=c%23+createan+eecutable+app+within+an+app&oq=c%23+createan+eecutable+app+within+an+app&aqs=chrome..69i57j69i58.20295j0j7&sourceid=chrome&ie=UTF-8
BillWoodruff 27-Feb-21 21:51pm View
   
+5
BillWoodruff 24-Feb-21 13:39pm View
   
Unless your exchanges need to transfer very large data, consider using JSON for communication,
BillWoodruff 24-Feb-21 2:12am View
   
Several ways you can handle this, but, first:

"after the web page is called from the running program"

how is the WebBrowser instance/process created/launched ?

are you using Process.Start, or, are you using a WebBrowser Control on a Form ?
BillWoodruff 20-Feb-21 7:25am View
   
Gosh, Patrice, you have expressed respect for my choice to downvote publicly several times in the past, but, now, you are a proxy for Dave ?
BillWoodruff 20-Feb-21 7:20am View
   
Salaam, Naeem, I deliberately left the code missing in the loop, as explained in the comments.

My goal is to try and help you start solving the problem yourself ... to teach ... not write the code for you.

Whether you accept the solution, or not, is up to you ... I'm am old man with enough reputation :)
BillWoodruff 20-Feb-21 3:24am View
   
I was writing my response when you posted this. When I can fantasize we are on the same wavelength, I almost feel (temporarily) like I am not past my use-by date :)
BillWoodruff 20-Feb-21 2:49am View
   
Voted #1: this is not a solution; it's gratuitous advice. The OP is asking for help with a problem; you respond with a not so subtle "go do it yourself" as if the OP had asked you to write his code for him.
BillWoodruff 7-Feb-21 19:21pm View
   
+5
BillWoodruff 4-Feb-21 18:51pm View
   
Hey, Considering the state of this body keeping a mind afloat, right now, I'm glad you've got my back :)
BillWoodruff 4-Feb-21 13:15pm View
   
Dave, I am responding to Brian's request for help (in a comment) posted 2 days ago :) Since it's a long response including code, I thought answering with solution rather than comment was an appropriate format.
BillWoodruff 9-Jan-21 12:22pm View
   
I have a suspicion there's some weirdness you could do using 'groupby ... but, i am not going there :)
BillWoodruff 9-Jan-21 12:17pm View
   
You have not shown any code you TRIED: you just show the result you want.
BillWoodruff 9-Jan-21 9:05am View
   
+5
BillWoodruff 9-Jan-21 2:21am View
   
Sorry, I don't use ASP; perhaps post a new question; be sure and clarify if you are asking about a screenshot, or an active window shot, or a browser screen shot.
BillWoodruff 8-Jan-21 18:58pm View
   
This is yet another question, like many others you have posted recently, where you don't describe the context clearly, and appear to have done no experimentation.

Describe the UI the end-user interacts with: describe the server side code structure.

And, get to work.
BillWoodruff 4-Jan-21 4:27am View
   
"First of all, i'm not sure what OP wants to achieve..." Exactly why I went to the trouble of writing a lengthy reply reminding the OP what we need to know to further assist him.

"If there's a set of columns with comparable data" ... in this case we know the column structure in the tables is different.

Voted #1 for being a vague collage of assumptions and irrelevant code.
BillWoodruff 4-Jan-21 3:18am View
   
Hi Maciej, Does this work given the different column structure in the two DataTables ... given we don't know, yet, what those differences are.

Please, prove me wrong when I claim you cannot directly compare a selected Row from one DataTable with a Row from another DataTable that has a different Column structure ... without a much deeper kind of comparison :)
BillWoodruff 3-Jan-21 22:36pm View
   
Deleted
Are the NAMES of the two columns with the same values the SAME in each Table ? The INDEXES in the column collections identical ?

"for example in the common two columns in table A there is code=x , Nature =y and in table B there is also code=x , Nature =y , so this record should be removed when I fetch the table A records"

By remove: I assume you mean FILTER table A, not actually remove a ROW ?

Filter out ALL instances of rows where the two columns have matching values, or ONLY rows with identical values you specify ?

Can't read your mind :)
BillWoodruff 2-Jan-21 21:38pm View
   
until i have a better crystal ball :) ... what's critical is knowing the structure of the Columns ... like this:

dt.Columns.Add(new DataColumn("TypID")
{
AllowDBNull = false,
DataType = typeof(System.Char),
Unique = false
});
BillWoodruff 2-Jan-21 21:31pm View
   
Hi Griff, I'd consider it a gift if you would let me know if you think I am misinterpreting the OP's question in my response below. thanks, Bill
BillWoodruff 2-Jan-21 21:25pm View
   
Hi, Do you see the concern I am expressing about the generic Dictionary's requirement for unique keys ? I am willing to post a code example, if you clarify what the relationship is between the DataSet and the "multi-valued dictionary." cheers, Bill
BillWoodruff 31-Dec-20 10:24am View
   
+5
BillWoodruff 30-Dec-20 19:51pm View
   
what handles/loads/reads/finds tags in/with the pdf files ? some 3rd. party utility ?
BillWoodruff 30-Dec-20 19:48pm View
   
"What I have tried:" Okay, that sounds good, and, now, what is the question ?

fwiw: the idea of doing things at the same time with two open db's which somehow replicate, and "can contain different set of data for similar tables" ... fills me with horror :)
BillWoodruff 29-Dec-20 21:12pm View
   
+5 Your thoughtful posting of appropriate links to many questions deserves recognition !
BillWoodruff 29-Dec-20 21:06pm View
   
If you show the actual structure for the DataSet (or, for each DataSet in the DataTable), I think you may get more specific responses,
BillWoodruff 28-Dec-20 5:28am View
   
+5
BillWoodruff 27-Dec-20 0:50am View
   
+5
BillWoodruff 26-Dec-20 16:15pm View
   
Do nothing and you will stay where you are :)
BillWoodruff 26-Dec-20 15:21pm View
   
Deleted
If you purchased DevExpress, use their technical support.

Without specific knowledge of what your app is doing ... how it gets input data; what the user does ... how can we possibly help you ?
BillWoodruff 26-Dec-20 15:21pm View
   
Deleted
If you purchased DevExpress, use their technical support.

Without specific knowledge of what your app is doing ... how it gets input data; what the user does ... how can we possibly help you ?
BillWoodruff 26-Dec-20 15:21pm View
   
If you purchased DevExpress, use their technical support.

Without specific knowledge of what your app is doing ... how it gets input data; what the user does ... how can we possibly help you ?
BillWoodruff 26-Dec-20 1:03am View
   
"There maybe a group by option, but I'm not sure how to do it." What's stopping you from studying 'groupby, and experimenting with it ?
BillWoodruff 25-Dec-20 21:05pm View
   
+5
BillWoodruff 24-Dec-20 21:57pm View
   
"directing them "to do it the right way" If you actually believed your reply "directed" anyone anywhere ... you are lost.
BillWoodruff 24-Dec-20 21:49pm View
   
Do you have control over the format of table ?
BillWoodruff 23-Dec-20 16:53pm View
   
Voted #1: Did you even read the OP's code and realize what a mess it is ?
BillWoodruff 23-Dec-20 14:51pm View
   
+5
BillWoodruff 23-Dec-20 14:50pm View
   
Start studying the code Maciej generously provided you and THINK about it rather than talking about what you don't understand.
BillWoodruff 23-Dec-20 14:47pm View
   
You don't need Visual Studio to make a diagram, an outline, a sketch, a list of inputs, outputs, required functions. You need to think !
BillWoodruff 22-Dec-20 21:09pm View
   
Well, then, accept Rick's answer, and vote it up !
BillWoodruff 22-Dec-20 21:04pm View
   
I suggest you make a diagram/sketch of what you want the UI to look like in actual use, and post that.

Describe the Classes and the inheritance relationships.
BillWoodruff 18-Dec-20 8:26am View
   
It's obvious from the OP's code that he never tried anything.
BillWoodruff 18-Dec-20 8:24am View
   
It is obvious from this code that will never compile that have not tried anything,
BillWoodruff 17-Dec-20 1:28am View
   
Come back when you have actually tried something: see all those "Related Questions" links on this page ? Study a few of them.
BillWoodruff 16-Dec-20 10:47am View
   
+5
BillWoodruff 16-Dec-20 10:46am View
   
+5 bullseye !
BillWoodruff 15-Dec-20 14:54pm View
   
Well, you can, but, it takes some hacking. And, .NET 5 will make it "easy" (insert snicker) ... if it is ever usable. See below.
BillWoodruff 15-Dec-20 11:34am View
   
if we do your homework, you will learn nothing !
BillWoodruff 15-Dec-20 2:10am View
   
How are the two tables associated ... I don't see any shared field.
BillWoodruff 14-Dec-20 13:45pm View
   
repost of: https://www.codeproject.com/Questions/5289685/How-do-I-display-data-simultaneously-in-gridview

edit your first post, rather than making a new one.
BillWoodruff 14-Dec-20 4:00am View
   
DataSet !
BillWoodruff 14-Dec-20 3:55am View
   
have you tried Propeller support: support@propeller.in ? have you posted in their on-line chart room ? have you licensed the basic or pro version ?
BillWoodruff 13-Dec-20 9:56am View
   
You've only tried "nothing" ten times, and you expect results ?
BillWoodruff 13-Dec-20 9:50am View
   
I don't know; based on what I read, I choose to stick with TCP. CodeProject has good resources for TCP.
BillWoodruff 13-Dec-20 0:12am View
   
UDP is a simple protocol compared to TCP, and not as reliable: it does not guarantee packet order. or even that a given packet is received. Use TCP.
BillWoodruff 8-Dec-20 16:41pm View
   
+5
BillWoodruff 8-Dec-20 9:56am View
   
You do not show creating a Timer and setting its interval and/or starting or stopping it.
BillWoodruff 8-Dec-20 9:50am View
   
His code suggests he uses a Timer, but he never instantiates a Timer.
BillWoodruff 5-Dec-20 1:22am View
   
As Patrice suggests, I think adding a solution based on Split with the '# desired result' parameter would be valuable.

I'm surprised that Index/IndexOf has not been extended to accept a Func argument so it has the functionality of Array.FindIndex
BillWoodruff 3-Dec-20 22:45pm View
   
+5
BillWoodruff 3-Dec-20 1:28am View
   
+5
BillWoodruff 3-Dec-20 1:27am View
   
+5
BillWoodruff 2-Dec-20 17:11pm View
   
+5
BillWoodruff 2-Dec-20 11:22am View
   
you're welcome. keep in mind that an ObservableCollection only raises events for modification of the collection items ... adds, deletes, moves, replace, reset. it will not fire any event when an internal field or property of its items has its VALUE changed. for that, you need to use INotifyPropertyChange.
BillWoodruff 2-Dec-20 9:41am View
   
show the definition of 's
BillWoodruff 1-Dec-20 10:26am View
   
+5 That thread on StackOverflow is a great resource !
BillWoodruff 28-Nov-20 23:55pm View
   
WinForms ?

Since a Panel has no row/column/grid structure, you need to explain what those terms mean.

Is this question about design-time drag-drop ? If it is about run-time drag-drop, then: where does the PictureBox you drag come FROM ... you create a new one in code ?

Is it possible all you really want to do is MOVE the PictureBox, and make it "snap" to some location ?
BillWoodruff 28-Nov-20 8:50am View
   
What makes you think it is possible to decrypt a file encoded with such strong encryption ?
BillWoodruff 28-Nov-20 7:20am View
   
do you have the password or decryption key ?
BillWoodruff 27-Nov-20 0:09am View
   
Hi Steve, I often think of CodeProject as a school where I learn from my peers and mentors ... but, being human :), I sometimes have to struggle to reach "beginner's mind."

You might enjoy this comparison of different techniques for composing/interpolating strings:

https://dotnetcoretutorials.com/2020/02/06/performance-of-string-concatenation-in-c/

cheers, Bill
BillWoodruff 26-Nov-20 1:26am View
   
Note: I did not down-vote, or report, this post. Please understand that comments like this posted as solutions confuse everybody :)
BillWoodruff 26-Nov-20 1:24am View
   
Hi Steve, I have raised my vote on your solution to #4: I know your intention is to help the OP, and, you took your time to write code relevant to what the OP asked for.

From my experience teaching programming, and, what I see in the code the OP posted, I do not see a "beginner."

"In my opinion it is not necessary to frighten a beginner who does not now how to save a file on disk with a perfect and highly sophisticated solution." This kind of projective identification onto a vague context is your personal experience speaking.

You can improve your solution by using StringBuilder, and, by explaining your use of the advanced ASync facilities.
BillWoodruff 25-Nov-20 8:28am View
   
for me, a #3 is not a down-vote. there is often a fine-line between what a QA poster wants, and, what they will probably need in the future. since the entire state of the observable collection can be so easily saved/re-instanced with a relatively small effort ... i prefer serialization to XML using DataContract/DataMember ... thus making writing a hand-rolled parser not necessary: imho, that's the direction i think the OP should be made aware of.

there is a "mystery" here: why did the OP use Observable Collection ... the code shows no use of its event-raising facilities.
BillWoodruff 25-Nov-20 7:26am View
   
voted #3 And then, if the OP wants to re-build the List from the text file, they'll have to write a complex parser. .NET's serializers are useful to avoid exactly this kind of re-inventing the wheel.
BillWoodruff 25-Nov-20 7:21am View
   
is there a reason you have to use plain-text, ot JSON ? imho, for Windows: so much easier to use DataContract Serialization ... which encourages you to write more maintainable code at relatively low expense ...

if you request, i'll post a code example.