Click here to Skip to main content
15,891,033 members

Videos


Page 4 of 1,135
1 2 3 4 5 6 7 8 9 10


61. Excel program maximizing
ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "excel.exe"; psi.Arguments = "myfile.xlsx"; psi.WindowStyle = ProcessWindowStyle.Normal; Process.Start(psi); should do it, but Google seems to tell me there are some sizing...
Luc Pattyn Updated: 3 Mar 2022
Rating: ( (No votes))
62. My search with radio button in C# doesn't work
Hi, one way would be to use a DataTable and a BindingSource. The DataTable is to hold all the books. The BindingSource is a go-between that passes the DataTable to the DataGridView; it has a Filter capability. DataTable dt = new DataTable();...
Luc Pattyn Updated: 2 Mar 2022
Rating: 5.00/5 ( (1 vote))
63. Why is the hide not working?
JavaScript isn't Python, indentation does not create code blocks. As you wrote it originally, disableValidation and enableValidation are executed conditionally, whereas Hide() and Show() are always executed (in that order), so nothing gets...
Programming Languages » Javascript »
Luc Pattyn Updated: 2 Mar 2022
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
64. How do I select words that contain certain letter at certain positions using C# LINQ lambda expressions
How would you do it without LINQ? With LINQ it is the same: var res = digits.Where(w => w[1]=='i')
Luc Pattyn Updated: 1 Mar 2022
Rating: 5.00/5 ( (3 votes))
65. If not working with PI calculation
Floating point numbers aren't accurate. You can try dividing one by N, in the next line multiply again by N, and check for 1. It may fail for N=3 or N=10 or many others, as 1/3 and 1/10 cannot be represented exactly in binary floating point...
Luc Pattyn Updated: 28 Feb 2022
Rating: 5.00/5 ( (1 vote))
66. Control the application using C# application.
Hi, SendMessage waits for a reply by the addressee, which is OK for most purposes; however it is the wrong choice for sending a "stop all activity" command, as the destination will obey and not reply, causing your sending app to hang forever. ...
Programming Languages » C# 7.1 »
Luc Pattyn Updated: 28 Feb 2022
Rating: ( (No votes))
67. C# - Moving a File, Access denied?
replace File.Move by File.Copy to find out whether your lack of permission is in source or destination folder. Most probably it is in destination, as Program Files is a no-go zone for running programs. :)
Luc Pattyn Updated: 28 Feb 2022
Rating: ( (No votes))
68. Where could I find information and examples to get the best fitting rectangle given a set of points?
If I understand you correctly the sensor array can't discern bags and pallet, all you get is a matrix with zeroes and ones (representing "something" and "nothing"). If all the bags are within the bounds of the pallet, and assuming the pallet is...
Mathematics » »
Luc Pattyn Updated: 28 Feb 2022
Rating: ( (No votes))
69. Excel process not closing
Just a wild guess, as you didn't show much of the code (nor the line that throws): maybe your code applied some changes to the workbook, and Excel wants to know whether it should save or not. If you want to close without saving, just set ...
.NET » »
Luc Pattyn Updated: 28 Feb 2022
Rating: ( (No votes))
70. I need help with linq
To add to what Richard said, the loop inside method ProductsOutOfStock is redundant, it does not add anything to your query variable. So you can simplify to public static IEnumerable ProductsOutOfStock() { return products.Where(p...
Luc Pattyn Updated: 28 Feb 2022
Rating: 5.00/5 ( (2 votes))
71. How to solve this error 'the property 'ID' is part of the object's key information and cannot be modified.' in C# ?
Hi 1. When I read this thread (c# - The property 'Id' is part of the object's key information and cannot be modified - Stack Overflow[^]) it seems EF is protecting you; their advise is not to try and change the ID of an existing object, instead...
Luc Pattyn Updated: 27 Feb 2022
Rating: 5.00/5 ( (1 vote))
72. What do I do to get correct answer? (For this)
scanf("%d %d ",&X,&y); I have never done it this way, I assume C is needing more input to match the extraneous space at the end of your format string. :)
Luc Pattyn Updated: 27 Feb 2022
Rating: 4.00/5 ( (1 vote))
73. How to get rows with specific stockid=1 and website source type ?
select DISTINCT partnumber from [#stockyes] where stockid=1 and sourcetype='website' :)
Database Development » SQL Server »
Luc Pattyn Updated: 27 Feb 2022
Rating: 5.00/5 ( (1 vote))
74. How do I write sqlite insert query to add date in correct format?
That is not OK, for several reasons: 1. a good INSERT statement lists the fields and the values; it may work without explicitly naming the fields but then any change to your table structure is bound to break your code. 2. Date literals (as well...
Sqlite » »
Luc Pattyn Updated: 15 Feb 2022
Rating: ( (No votes))
75. Finding the number of pages from the number of digits used to number the pages
Going from number of pages P to total number of digits D is pretty easy, and unfortunately that is what most solutions have offered (with some errors or limitations). Your problem goes the other way, you want the inverse function: the number of...
Luc Pattyn Updated: 15 Feb 2022
Rating: 5.00/5 ( (2 votes))
.

()
» »
Updated:
Rating: ()
76. How do I solve this? The given number is n, then the output should have n terms
Fix the first error first. Keep doing this until you run out of errors.
Luc Pattyn Updated: 14 Feb 2022
Rating: 5.00/5 ( (1 vote))

Page 4 of 1,135
1 2 3 4 5 6 7 8 9 10