16,016,570 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 .NET 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 Member 12127618 (Top 11 by date)
Member 12127618
26-May-16 1:13am
View
Please look at the video.
For him works for me not.
Why?
Member 12127618
26-May-16 0:29am
View
Thank you.
But I have another question. It's just a question for my knowledge.
With your example I can run with no problem, It changes user's write to uppercase, but I do not understand why it selects a whole row and at the first of running all of rows are selected.
Can you explain me please why?
Member 12127618
26-May-16 0:08am
View
Do you mean my problem does not have any solution?
Please look at this video:
https://youtu.be/bejVqkvsZPc?t=1525
I write his code in vb as you see in my code. For him it works.
All other part of code before this part was OK and exactly the same.
Member 12127618
26-May-16 0:02am
View
Deleted
OK, I will do it. But the problem is that RowIndex just returns -1. I need to change user's write to uppercase. Because RowIndex never returns other number, I cannot do that. Did you understand my problem?
Please help me for my main problem
Member 12127618
26-May-16 0:01am
View
Deleted
OK, I will do it. But the problem is that RowIndex just returns -1. I need to change user's write to uppercase. Because RowIndex never returns other number, I cannot do that. Did you understand my problem?
Please help me for my main problem
Member 12127618
25-May-16 13:09pm
View
You said I have to make sure that the index is valid. I said I tried that and it returns -1.
So what else?
I didn't understand how to solve the problem.
Please Explain more
Thank you
Member 12127618
25-May-16 11:25am
View
no, I don't want to handle a single event for RowIndex = -1.
I didn't understand what is your suggestion for me.
But if it is possible for you, instead of that, explain please, how to do following:
I want user put letter with all upper case. if user didn't, application do it for that cell.
Member 12127618
25-May-16 11:19am
View
I have 21 rows. The code should wait until my selection; but i get problem at the first of running.
Member 12127618
25-May-16 9:30am
View
WinForm
Member 12127618
7-Dec-15 13:02pm
View
Deleted
Thank you for your fast answer.
But the problem is that i take the text of check box from user and i have more than one check box. so when i want to change text of check box, the sub that related to this addhandler doesn't know which check box i want.
This is my code:
Public Class Form1
Dim CheckBoxes As List(Of CheckBox) = New List(Of CheckBox)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim i As Integer = 1
Dim x As Integer = 10
Dim y As Integer = 15
For j As Integer = 0 To 5
Dim chk As New CheckBox
chk.Location = New Point(x, y)
chk.Width = 70
chk.ContextMenuStrip = ContextMenuStrip1
chk.Text = "ABC"
GroupBox1.Controls.Add(chk)
CheckBoxes.Add(chk)
x = x + 70
y = y + 50
AddHandler chk.ContextMenuStrip.Items(0).Click, AddressOf ChkBox_CheckedChanged
Next
End Sub
Private Sub ChkBox_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Dim chkBox As New CheckBox
chkBox = TryCast(sender, CheckBox)
chkBox.Text = InputBox("Write new text")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
Member 12127618
6-Dec-15 15:35pm
View
I have similar problem.
But how did you use the DataRow?
I want to change text of checkbox by inputbox.
I have a context menu strip, and one item as"rename",with that I wanna change text of checkbox.
But the problem is that after using addhandler, when i write this code:
Dim chkBox As CheckBox = TryCast(sender, CheckBox)
chkBox.Text = InputBox("Write new text")
I got this error:
An unhandled exception of type 'System.NullReferenceException' occurred in prosto.exe
Additional information: Object reference not set to an instance of an object.
Can you help me please to solve this problem?
Show More