Click here to Skip to main content
15,900,254 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Outlook Mail Drag Drop into Textbox of a Win Form Pin
Richard Deeming25-May-18 2:35
mveRichard Deeming25-May-18 2:35 
GeneralRe: Outlook Mail Drag Drop into Textbox of a Win Form Pin
HPS-Software26-May-18 20:51
HPS-Software26-May-18 20:51 
GeneralRe: Outlook Mail Drag Drop into Textbox of a Win Form Pin
Eddy Vluggen26-May-18 23:05
professionalEddy Vluggen26-May-18 23:05 
GeneralRe: Outlook Mail Drag Drop into Textbox of a Win Form Pin
HPS-Software27-May-18 18:14
HPS-Software27-May-18 18:14 
QuestionSave in datagriedview in application Pin
Member 1361197220-May-18 8:13
Member 1361197220-May-18 8:13 
AnswerRe: Save in datagriedview in application Pin
Dave Kreskowiak20-May-18 11:40
mveDave Kreskowiak20-May-18 11:40 
GeneralRe: Save in datagriedview in application Pin
Member 1361197221-May-18 1:26
Member 1361197221-May-18 1:26 
AnswerRe: Save in datagriedview in application Pin
Richard Deeming21-May-18 2:11
mveRichard Deeming21-May-18 2:11 
Member 13611972 wrote:
Dim text As New BinaryFormatter
...
text = DataGridView1.Item(Col, Ran).Value

Unless the Value of every cell is a BinaryFormatter object, that code will throw an InvalidCastException.

Compile your code with Option Explicit, Option Strict and Option Infer all turned on. That way, you'll be more likely to catch simple mistakes like this.

Option Explicit Statement (Visual Basic) | Microsoft Docs[^]
Option Strict Statement | Microsoft Docs[^]
Option Infer Statement | Microsoft Docs[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Save in datagriedview in application Pin
Member 1361197222-May-18 6:00
Member 1361197222-May-18 6:00 
QuestionWhat am I missing with Clone()? Pin
mo149218-May-18 13:48
mo149218-May-18 13:48 
AnswerRe: What am I missing with Clone()? Pin
Eddy Vluggen18-May-18 14:03
professionalEddy Vluggen18-May-18 14:03 
GeneralRe: What am I missing with Clone()? Pin
mo149218-May-18 14:10
mo149218-May-18 14:10 
GeneralRe: What am I missing with Clone()? Pin
Eddy Vluggen18-May-18 14:13
professionalEddy Vluggen18-May-18 14:13 
AnswerRe: What am I missing with Clone()? Pin
Richard Deeming21-May-18 2:06
mveRichard Deeming21-May-18 2:06 
QuestionHow can obtaing the filename of spool job? Pin
bGuidi7-May-18 4:59
professionalbGuidi7-May-18 4:59 
QuestionExternal Media player sdk for vb Pin
Asanka Akash Sovis5-May-18 22:27
professionalAsanka Akash Sovis5-May-18 22:27 
QuestionRe: External Media player sdk for vb Pin
Eddy Vluggen6-May-18 23:55
professionalEddy Vluggen6-May-18 23:55 
QuestionRe: External Media player sdk for vb Pin
Asanka Akash Sovis7-May-18 19:58
professionalAsanka Akash Sovis7-May-18 19:58 
AnswerRe: External Media player sdk for vb Pin
Eddy Vluggen7-May-18 22:39
professionalEddy Vluggen7-May-18 22:39 
Questionscrollable imagebox / change sizemode picturebox Pin
Michael Wild5-May-18 3:29
Michael Wild5-May-18 3:29 
QuestionHow overwrite the word after the specific word in text file... Pin
KimbleGray4-May-18 7:13
KimbleGray4-May-18 7:13 
AnswerRe: How overwrite the word after the specific word in text file... Pin
Dave Kreskowiak4-May-18 9:20
mveDave Kreskowiak4-May-18 9:20 
AnswerRe: How overwrite the word after the specific word in text file... Pin
Mycroft Holmes4-May-18 13:17
professionalMycroft Holmes4-May-18 13:17 
GeneralRe: How overwrite the word after the specific word in text file... Pin
KimbleGray5-May-18 4:25
KimbleGray5-May-18 4:25 
GeneralRe: How overwrite the word after the specific word in text file... Pin
Mycroft Holmes5-May-18 14:30
professionalMycroft Holmes5-May-18 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.