15,886,833 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 Perić Željko (Top 77 by date)
Perić Željko
31-Mar-24 4:47am
View
Thanks
Perić Željko
31-Mar-24 4:47am
View
Thanks
Perić Željko
30-Mar-24 6:43am
View
Related to first URL:
You cannot remove the entire back button history. All you can do is replace the last entry with the next page, using window.location.replace('url');
I have already checked that. but I was interested is there a way to do it not by using JavaScript, but for example some C# code...
All other solutions are almost the same and relates to using JavaScript that is not recommended.
Perić Željko
30-Mar-24 6:40am
View
Solution proposed in the article at second URL is only for Mozilla.
Thanks for effort finding solution.
Perić Željko
22-Sep-20 14:31pm
View
https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.hasexited?view=netcore-3.1#System_Diagnostics_Process_HasExited
Perić Željko
9-Aug-20 4:42am
View
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061
Perić Željko
30-Jan-20 14:08pm
View
When I was typing "too expensive",
I meant at the time I need to get the answer.
Anyhow tanks.
Perić Željko
30-Jan-20 12:53pm
View
This solution is too expensive.
Perić Željko
24-Jun-19 15:58pm
View
Thanks for solution.
Perić Željko
11-Feb-19 15:50pm
View
I have managed to create .dll file that contains MainForm.Designer.cs class with small changes in code. Now I can use it as any .dll, and call InitializeComponent() method from .dll to create rearanged GUI for user.
Perić Željko
11-Feb-19 12:30pm
View
Thanks for answer.
Perić Željko
11-Feb-19 12:19pm
View
I want to start program, and on selected option from program user, to rearrange all controls used in program. Is this possible by loading and invoking MainForm.designer.cs class that is used for different program.
Perić Željko
7-Jan-18 5:42am
View
Here is a link to excellent article about connection string, I think that it will solve some of the many problems :
https://www.codeproject.com/Tips/1198443/Simple-SQL-Connection-String-Creation
Perić Željko
17-Dec-17 9:03am
View
Try UTF8 instead of Unicode , it works for Serbian latin and cyrilic fonts.
Perić Željko
2-Dec-17 5:21am
View
Use Windows Task Sheduler Wizard. There is step by step explenation at Windows Help and Suport Center on how to use Windows Task Sheduler.
Perić Željko
29-Nov-17 7:16am
View
I wonder when this program is going to change state of isRunning variable to false and end.
Perić Željko
27-Sep-17 1:00am
View
Thanks.
Perić Željko
3-Jun-17 14:05pm
View
I think that You should sort data first by Date-Time, than by Employee in prefered sort order. After that You do not need multiple looping trough data, just read sorted data succesively.
Perić Željko
4-Mar-17 5:42am
View
Please improve your question with these info : what kind of application is it, what it supposed to do and if possible open source code. If not this question will be discarded or downvoted.
Perić Željko
7-Feb-17 14:27pm
View
Thanks for advice, I have done that and there is no image inside picture box for the url :
https://s.yimg.com/zz/combo?a/i/us/we/52/32.gif
But ! When I have changed url :
https://codeproject.global.ssl.fastly.net/App_Themes/CodeProject/Img/logo250x135.gif
Code project logo appears inside picture box as it should be.
I have made conclusion that there is something wrong with server where is saved image that I want to download. So I have downloaded all images to my computer simply by copy/paste from web browser and now I can use them inside my program. This is stupid solution but it works. By the way images are not copywrite protected :)
Thanks to Karthik for help in resolving this issue,
And all the best,
Željko Perić
Perić Željko
5-Feb-17 11:32am
View
Url is valid.
Perić Željko
29-Jan-17 7:29am
View
Here is all explained : https://en.wikipedia.org/wiki/Sieve_of_Atkin
Perić Željko
8-Nov-16 11:21am
View
Thanks for answer.
I have done that and found out that I do not need
using Microsoft.DirectX.Direct3DX;
statement inside program code.
It is only necessary that Microsoft.DirectX.Direct3DX is referenced inside Project / References folder.
Now I can use Microsoft.DirectX.Direct3D.Font class and all other classes needed for my program.
Perić Željko
1-Nov-16 7:04am
View
http://www.codeproject.com/Articles/350252/From-one-to-another-number-system
Perić Željko
31-Oct-16 9:36am
View
On this link there is interesting stuff about strings and dates inside them :
http://www.codeproject.com/Answers/297126/Csharp-How-to-check-if-a-string-contains-a-date#answer8
Perić Željko
23-Oct-16 9:06am
View
If the question is how game minesweeper works, and how program opens all empty fields on board and sorrounds them with numbers representing how many mines are near field border, after user click random field,
I think that answer to that problem is in learning something about cellular automata and how it works. Learn something about computer simulation of John Horton Conway's 'Game of life' especially. There is everything necessary for solving Minesweeper game.
Perić Željko
28-Aug-16 3:16am
View
Thanks, I have changed type of variable k to decimal and it vorks fine.
Perić Željko
28-Aug-16 3:15am
View
It seems that I am going to use variable type of Decimal to partially solve my problem.
https://msdn.microsoft.com/en-us/library/system.decimal%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396&cs-save-lang=1&cs-lang=cpp#code-snippet-1
Perić Željko
23-Aug-16 3:56am
View
Thanks for suggested solution
Perić Željko
23-Aug-16 3:56am
View
Thanks
Perić Željko
23-Aug-16 3:54am
View
Thanks for link
Perić Željko
21-Aug-16 5:58am
View
What would happend if computer have selected number zero.
Perić Željko
29-Dec-15 12:16pm
View
Program code partially solves problem, explained at the beginning of this article. It is possible to adjust it to solve Your problem but it is not recommended. It is better to write new one based on previously acquired knowledge. Try to learn something from articles at submitted links.
All the best,
Željjo Perić
Perić Željko
5-Apr-15 16:09pm
View
This example works excellent.
Do not forget the 'using System.Linq' directive.
Perić Željko
27-Oct-14 13:49pm
View
I would not go so far, far, away in another galaxy.
Let's try <- CodeProject/Articles/Search/Prime numbers
And we get...
http://www.codeproject.com/Tips/228317/Find-Prime-Numbers-in-Csharp-Quickly
http://www.codeproject.com/Articles/429694/Finding-prime-numbers
http://www.codeproject.com/Articles/31085/Prime-Number-Determination-Using-Wheel-Factorizati
http://www.codeproject.com/Messages/4771788/All-numbers-are-prime-numbers.aspx
http://www.codeproject.com/Tips/86905/Prime-Number-Test
ETC...
All the best,
Perić Željko
Perić Željko
1-Apr-14 6:49am
View
Thanks for answer and effort to find it.
This problem is interesting to me and many more developers in the world, but the solution requires extensive knowledge in mathematics. Searching the Internet, I came to the conclusion that this problem is solved only by a mathematical experts in the rank of master's degree or greater. And the solutions are usually Copyright protected. I have made a program that partially, in the rank of all other solutions, solves this kind of problem. However, my knowledge of the expression of such solution through professional and widely accepted mathematical terminology is negligible and probably unacceptable for writing an article. Pity that on the Code Project there are no one of the Top Experts interested to write an high-quality article dedicated to resolving this kind of problem, perhaps more comprehensive than those that can be found on the Internet, and make that kind of knowledge available to everyone in the world. For resolving this problem is not a matter of understanding the theory but the high-quality general mathematical solutions implemented through algorithms and computer programs understandable to wide public.
Since You are one of Top Experts, based on the exposed biography and awards, perhaps You could move things in that direction.
All the best,
Perić Željko
Perić Željko
26-Dec-13 12:40pm
View
Thank's for clarification, now I understand.All the best, Perić Željko
Perić Željko
26-Dec-13 12:38pm
View
Thanks for answer Adam, now I completely understand. I had overlooked the fact, in the definition of 'Decimal' type of number, that as result of any calculation it is going to be displayed maximum 28 digits including decimals, not float point number with 28 decimal places as I thought. Both proposed solutions constitute the answer. Thank You. All the best, Perić Željko
Perić Željko
25-Dec-13 18:22pm
View
Thanks for answer but :
"Decimal is not a floating-point data type. The Decimal structure holds a binary integer value, together with a sign bit and an integer scaling factor that specifies what portion of the value is a decimal fraction. Because of this, Decimal numbers have a more precise representation in memory than floating-point types (Single and Double)."
Taken from MSDN
"Holds signed 128-bit (16-byte) values representing 96-bit (12-byte) integer numbers scaled by a variable power of 10. The scaling factor specifies the number of digits to the right of the decimal point; it ranges from 0 through 28. With a scale of 0 (no decimal places), the largest possible value is +/-79,228,162,514,264,337,593,543,950,335 (+/-7.9228162514264337593543950335E+28). With 28 decimal places, the largest value is +/-7.9228162514264337593543950335, and the smallest nonzero value is +/-0.0000000000000000000000000001 (+/-1E-28)."
So if I have understood correct when I subtruct such small value as
0,0000000000000000000001 (22 decimals or 1e-22)
from any decimal number there should be correct result and not like in this case incorrect,
since we can see all 28 decimal places when we show result, or precision and accuracy of calculation should not have anything to do with number presentation of numbers because in this case all numbers are within specified range.
All the best,
Perić Željko
Perić Željko
7-Nov-12 5:39am
View
My first attempt to answer :
'In principle you are right,' ?! ( too much philosophical... )
Perhaps you could clarify what would be 'the end of typing', in general sense.
Or even more to define 'typing'.
Safety was not the issue in the question.
'If we could not find out did we ended typing or not oo
My second attempt
My answer (comment) was too short or insufficiently substantiated,
but has continued in a Solution No.5 as written.
I had error in comment. I have not sufficiently explained my comment.
My third attempt
If we do not know when the user have ended simple operation as typing in some text in text box
whell I surrender
'what does this means bro.
can you explain plz
i am a beginer'
You win I loose
hope you would not be angry afther this
cheers
I apologise too all readers of this comment for syntax errors in text.
Perić Željko
6-Nov-12 14:34pm
View
If pressed key on keyboard is 'enter' than we assume that user has finished entering password into text box. If that is the case call CheckPassword() sub for checkout if password is the same in both text boxes.
void CheckPassword()
{
if (textbox1.text != textbox2.text)
{
do something...
}
}
EventHandlers must be coded for both text boxes if You want that your code works correct.
You may set same code for both text boxes.
Perić Željko
6-Nov-12 11:41am
View
Not true !
Look at solution No. 5
Perić Željko
23-Oct-12 7:06am
View
Well such solution exists as 'Solution number three'.
Perić Željko
23-Oct-12 7:02am
View
No, it is the same code but range is different , if you try to run it from 10 up to 1836547290 it will take about one hour more or less to finish. It is much faster when You skip Console.WriteLine() statement.
Perić Željko
23-Oct-12 6:58am
View
Thanks for clarification , and I got mixed up on that issue.
Perić Željko
23-Oct-12 6:21am
View
Here is my final result
Range[10 ,183654729]
Count = 455
Total oddly count is 456 , last number is 1836547290
CPU total elapsed time 00:02:53.9782297 (HH:MM:SS.ms)
Processor Intel Dual Core D805 2.0 GHz, OS Windows XP Home SP3 , 1GB RAM
10 12 14 16 18 30 32 34 36 38 50 52 54 56 58 70 72 74 76 78 90 92 94 96 98 103 105 107 109 123 125 127 129 143 145 147 149 163 165 167 169 183 185 187 189 305 307 309 325 327 329 345 347 349 365 367 369 385 387 389 507 509 527 529 547 549 567 569 587 589 709 729 749 769 789 1230 1250 1270 1290 1430 1432 1450 1452 1470 1472 1490 1492 1630 1632 1634 1650 1652 1654 1670 1672 1674 1690 1692 1694 1830 1832 1834 1836 1850 1852 1854 1856 1870 1872 1874 1876 1890 1892 1894 1896 3250 3270 3290 3450 3452 3470 3472 3490 3492 3650 3652 3654 3670 3672 3674 3690 3692 3694 3850 3852 3854 3856 3870 3872 3874 3876 3890 3892 3894 3896 5270 5290 5470 5472 5490 5492 5670 5672 5674 5690 5692 5694 5870 5872 5874 5876 5890 5892 5894 5896 7290 7490 7492 7690 7692 7694 7890 7892 7894 7896 12305 12307 12309 12507 12509 12709 14305 14307 14309 14325 14327 14329 14507 14509 14527 14529 14709 14729 16305 16307 16309 16325 16327 16329 16345 16347 16349 16507 16509 16527 16529 16547 16549 16709 16729 16749 18305 18307 18309 18325 18327 18329 18345 18347 18349 18365 18367 18369 18507 18509 18527 18529 18547 18549 18567 18569 18709 18729 18749 18769 32507 32509 32709 34507 34509 34527 34529 34709 34729 36507 36509 36527 36529 36547 36549 36709 36729 36749 38507 38509 38527 38529 38547 38549 38567 38569 38709 38729 38749 38769 52709 54709 54729 56709 56729 56749 58709 58729 58749 58769 143250 143270 143290 145270 145290 147290 163250 163270 163290 163450 163452 163470 163472 163490 163492 165270 165290 165470 165472 165490 165492 167290 167490 167492 183250 183270 183290 183450 183452 183470 183472 183490 183492 183650 183652 183654 183670 183672 183674 183690 183692 183694 185270 185290 185470 185472 185490 185492 185670 185672 185674 185690 185692 185694 187290 187490 187492 187690 187692 187694 345270 345290 347290 365270 365290 365470 365472 365490 365492 367290 367490 367492 385270 385290 385470 385472 385490 385492 385670 385672 385674 385690 385692 385694 387290 387490 387492 387690 387692 387694 547290 567290 567490 567492 587290 587490 587492 587690 587692 587694 1432507 1432509 1432709 1452709 1632507 1632509 1632709 1634507 1634509 1634527 1634529 1634709 1634729 1652709 1654709 1654729 1832507 1832509 1832709 1834507 1834509 1834527 1834529 1834709 1834729 1836507 1836509 1836527 1836529 1836547 1836549 1836709 1836729 1836749 1852709 1854709 1854729 1856709 1856729 1856749 3452709 3652709 3654709 3654729 3852709 3854709 3854729 3856709 3856729 3856749 16345270 16345290 16347290 16547290 18345270 18345290 18347290 18365270 18365290 18365470 18365472 18365490 18365492 18367290 18367490 18367492 18547290 18567290 18567490 18567492 36547290 38547290 38567290 38567490 38567492 163452709 183452709 183652709 183654709 183654729
And manually added 1836547290 as 456-th number in total.
There is no oddly numbers in between 183654729 and 1836547290.
All the best,
Perić Željko
Perić Željko
23-Oct-12 5:14am
View
Thanks to CPAllini for hi five. When 'string' type is in question, for some reason that I shall keep to my self , I decided not to use 'char' type any more except it is really,really,really... necessary. I shall always use 'string' type for non-numeric type of variables.
Perić Željko
22-Oct-12 18:35pm
View
I think that the largest ODDLY number that satisfy conditions is 1836547290. My program is not set to that max value because it is too slow, and maj000 declared range up to 183654792. Since the question was for code in C,
I think that cheating with C# code won't be possible, but it can be educational.
Perić Željko
22-Oct-12 18:34pm
View
Deleted
I think that the largest ODDLY number that satisfy conditions is 1836547290.
My program is not set to that max value because it is too slow, and maj000 declared range up to 183654792.
Perić Željko
22-Oct-12 17:51pm
View
Thanks for clarification of BTW, I really didn't know that, and I see some illogical sequence shown in output row. Here is my output so if you have time and energy to test program that way...program was written in C# .Net 4.0 as console application... output: 12 14 16 18 30 32 34 36 38 50 52 54 56 58 70 72 74 76 78 90 92 94 96 98 103 105 107 109 123 125 127 129 143 145 147 149 163 165 167 169 183 185 187 189 305 307 309 325 327 329 345 347 349 365 367 369 385 387 389 507 509 527 529 547 549 567 569 587 589 709 729 749 769 789 1230 1250 1270 1290 1430 1432 1450 1452 1470 1472 1490 1492 1630 1632 1634 1650 1652 1654 1670 1672 1674 1690 1692 1694 1830 1832 1834 1836 1850 1852 1854 1856 1870 1872 1874 1876 1890 1892 1894 1896 3250 3270 3290 3450 3452 3470 3472 3490 3492 3650 3652 3654 3670 3672 3674 3690 3692 3694 3850 3852 3854 3856 3870 3872 3874 3876 3890 3892 3894 3896 5270 5290 5470 5472 5490 5492 5670 5672 5674 5690 5692 5694 5870 5872 5874 5876 5890 5892 5894 5896 7290 7490 7492 7690 7692 7694 7890 7892 7894 7896 12305 12307 12309 12507 12509 12709 14305 14307 14309 14325 14327 14329 14507 14509 14527 14529 14709 14729 16305 16307 16309 16325 16327 16329 16345 16347 16349 16507 16509 16527 16529 16547 16549 16709 16729 16749 18305 18307 18309 18325 18327 18329 18345 18347 18349 18365 18367 18369 18507 18509 18527 18529 18547 18549 18567 18569 18709 18729 18749 18769 32507 32509 32709 34507 34509 34527 34529 34709 34729 36507 36509 36527 36529 36547 36549 36709 36729 36749 38507 38509 38527 38529 38547 38549 38567 38569 38709 38729 38749 38769 52709 54709 54729 56709 56729 56749 58709 58729 58749 58769 143250 143270 143290 145270 145290 147290 163250 163270 163290 163450 163452 163470 163472 163490 163492 165270 165290 165470 165472 165490 165492 167290 167490 167492 183250 183270 183290 183450 183452 183470 183472 183490 183492 183650 183652 183654 183670 183672 183674 183690 183692 183694 185270 185290 185470 185472 185490 185492 185670 185672 185674 185690 185692 185694 187290 187490 187492 187690 187692 187694 345270 345290 347290 365270 365290 365470 365472 365490 365492 367290 367490 367492 385270 385290 385470 385472 385490 385492 385670 385672 385674 385690 385692 385694 387290 387490 387492 387690 387692 387694 547290 567290 567490 567492 587290 587490 587492 587690 587692 587694 1432507 1432509 1432709 1452709 1632507 1632509 1632709 1634507 1634509 1634527 1634529 1634709 1634729 1652709 1654709 1654729 1832507 1832509 1832709 1834507 1834509 1834527 1834529 1834709 1834729 1836507 1836509 1836527 1836529 1836547 1836549 1836709 1836729 1836749 1852709 1854709 1854729 1856709 1856729 1856749 3452709 3652709 3654709 3654729 3852709 3854709 3854729 3856709 3856729 3856749 16345270 16345290 16347290 16547290 18345270 18345290 18347290 18365270 18365290 18365470 18365472 18365490 18365492 18367290 18367490 18367492 18547290 18567290 18567490 18567492 36547290 38547290 38567290 38567490 38567492 163452709 183452709 183652709 183654709 183654729
program is slow because I am still beginner in C# coding. Code of program is shown as solution number 4, even if the question was for C.
Perić Željko
22-Oct-12 17:20pm
View
Well if they are all positive :) that is if upper range limit is all positive numbers to the infinity I would like to see that program written in C.
Perić Željko
22-Oct-12 17:16pm
View
What shall I conclude from output of C program;
And what BTW is ?
Perić Željko
22-Oct-12 15:24pm
View
My suggestion do not do it in C
Perić Željko
22-Oct-12 15:17pm
View
Program above works fine up to value 99999 as it is written to do. I have tested it as console app in C#, and last value printed is 87694 . Only if it is not important that first digit must be odd, in that case code is even simpler. My five to Rai.
Perić Željko
22-Oct-12 14:41pm
View
And one more question: is it rule that first digit in number must be odd number ? If not the solution number three is good up to value 99999, you could upgrade code so it will give you the correct result up to 183654729 as upper limit of range. If it is important as I understand from rule number one in yours question, the program is even simpler. I apologize for late response.
Perić Željko
22-Oct-12 10:24am
View
Interesting math problem, you did not declare range of numbers, where you search for the oddly numbers. Is it all positive numbers from 100000 to 999999 ?
Perić Željko
19-Oct-12 12:16pm
View
It seems that you can't set "jpg" file as cursor, but You can use any *.ico (Icon) file to set different picture to mouse pointer: Cursor red_horizontal_ico; red_horizontal_ico = new Cursor("Graphics\\Linkage red icon horizontal.ico"); try link http://msdn.microsoft.com/en-us/library/4w858ek0(v=vs.80).aspx
Perić Željko
28-Sep-12 8:23am
View
Deleted
I think that you have some sintax error in code : unnecessary parentheses
look at the third line from end
Perić Željko
28-Sep-12 7:21am
View
You need to call LogIn Form from Main Form. When user enters password Log In Form automatically closes and Main Form continue running.
Look at solution no. 5
Perić Željko
2-Jul-12 15:34pm
View
It depends on the "back end".
If you use DataGridView control only to show to user some sort of data, than it won't have any reflection to "back end". In that case you should protect cells in grid from editing trough properties tab( read only propertie set to true ).
If you retrieve data from DataGridView for purpose of "back end" it will reflect to whole program.
Perić Željko
11-Jun-12 16:30pm
View
Hello,
It is obvious that string was not recognised as valid DateTime format. So check this links for solution :
http://msdn.microsoft.com/en-us/library/system.datetime.aspx
http://msdn.microsoft.com/en-us/library/1k1skd40.aspx
Perić Željko
5-Jun-12 16:15pm
View
Ok.This would be solution for me.
Perić Željko
5-Jun-12 15:59pm
View
It works fine, but what about deleting text, by using 'backspace' I can delete whole text ?
Perić Željko
6-Mar-12 3:33am
View
Hello,
I had a similar problem. I guess that is because the check box is inside the cell as a content ( or a value ) of the cell. So if you click outside of check box it will result not as cell value click event but cell clicked event and the value of the variable that represents value of check box in code do not gets new value. So I solved the problem by handeling the both events for updating the values of variables in the program and forced the new value of check box in data grid view, so there is no mistake after user make click on data grid view check box cell.
Perić Željko
6-Mar-12 3:24am
View
Hello,
all about arrays in C you have on this link
http://msdn.microsoft.com/en-us/library/aa288453(VS.71).aspx
[
^
]
for sorting arrays try
http://msdn.microsoft.com/en-us/library/5735wxff.aspx
[
^
]
Perić Željko
6-Mar-12 3:14am
View
Hello,
try this link
how to formate textbox value .....in window application
[
^
]
Perić Željko
6-Mar-12 3:00am
View
Hello,
try this link
DataGridViewButtonColumn text problem
[
^
]
Perić Željko
2-Mar-12 8:35am
View
Solution for your problem is complicated or not functional. It is because of logic of using DataGridview control. If you have within DataGridView control CheckBoxColumn, and you want to get information on how many rows where selected after checking checkbox it is impossible because of losing focus on selected rows (selected rows become deselected) and info of how many rows where selected , after clicking on checkbox is lost.
But, there is a way by connecting two events one is that user have checked checkbox first and the other is MouseUp event after selecting rows.
So if you connect these two events you can get something like this :
void DataGridView1MouseUp(object sender, MouseEventArgs e){
// TODO: Implement DataGridView1MouseUp
if ( dataGridView1[Column,Row].Value.ToString() == "True" ) {
MessageBox.Show(dataGridView1.SelectedRows.Count.ToString()); }}
Make sure that instead of Column and Row it is necessary to enter the coordinates of the cell that contains a check box.
Now the logic is the following, the user checks first the check box and then starts to select rows, by releasing the mouse button (DataGridView1MouseUp event) the program throws a message with the number of selected rows.
Dysfunction of the program is that you release the button each time when you clicks.So the event MouseUp occurs each time mouse button is clicked.
Perhaps you could find different solution for your problem.
Perić Željko
24-Feb-12 8:00am
View
Deleted
You allso have error in condition for stopping the for..next loop, it should be i < s.Lenght-1
Perić Željko
28-Dec-11 3:39am
View
Sorry but I do not have solution for your problem.
Perić Željko
27-Dec-11 11:05am
View
Deleted
Sometimes when I try to edit the entered solution by clicking on Improve solution it kicks me onto some sort of advertisment page.
How interesting :)
And thing with </pre> is not working.
Perić Željko
27-Dec-11 8:39am
View
Did you mean DataGridViewComboBoxColumn , column that contains ComboBox ?
I ask this beacouse ListBox type of column do not exist in my C#.
Perić Željko
9-Dec-11 12:39pm
View
<Pre tags> are still enigma for me ?
Perić Željko
9-Dec-11 11:14am
View
Thank you Mika.
Perić Željko
8-Dec-11 14:14pm
View
What would happen if the user inputs the following message:
My birthday is06/11/2011.
Would program recognize date in that kind text message.
Perić Željko
8-Dec-11 13:59pm
View
Sorry, but I do not know why sometimes the text editor want accept the </pre> tags so the code is not highlighted as in other solutions.
Perić Željko :( ?
Perić Željko
27-Nov-11 10:16am
View
As in life, and in programming there is not shortcut,
especially when it comes to the area of encryption.
It is necessary to study thoroughly the theory of cryptography,
then select the type of encryption that works best for you,
create an algorithm, usually in the literature which explains the cryptography exists a pseudo code that can be used for algorithm development, and then make the program in some of the programming languages.
The programs used for cryptography are complicated and most likely You will not find them on the web in the form of open source(they are too expensive), what would then be the purpose of such programs if everyone could see how it works.If you know fully how the program works then you are able to break the code
So you'll have to try and learn computer programming in C#,
or to hire one of Yours friends who already know to program a computer and together realize your goal. Since I had some free time I wrote this small console application in Sharp Develop C# , it should be enough for start.
In the CodeProject under
Learning Zones ,
Solutions Center ,
General Programming,
Cryptograpfy & Security
you have a whole chapter devoted to cryptography. (http://www.codeproject.com/KB/security/)
Show More