Click here to Skip to main content
15,921,226 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Extra line breaks while uploading the file on ftp server Pin
MAP Tiger31-Jul-08 1:59
MAP Tiger31-Jul-08 1:59 
QuestionHow can I center a picture box within an MDI Windows form????? Pin
Joey Picerno30-Jul-08 8:43
Joey Picerno30-Jul-08 8:43 
AnswerRe: How can I center a picture box within an MDI Windows form????? [modified] Pin
Gregory Gadow30-Jul-08 9:30
Gregory Gadow30-Jul-08 9:30 
GeneralRe: How can I center a picture box within an MDI Windows form????? Pin
Joey Picerno30-Jul-08 9:33
Joey Picerno30-Jul-08 9:33 
GeneralPROBLEM Pin
Joey Picerno30-Jul-08 9:51
Joey Picerno30-Jul-08 9:51 
GeneralThat was one of the bugs I fixed Pin
Gregory Gadow30-Jul-08 9:52
Gregory Gadow30-Jul-08 9:52 
GeneralRe: That was one of the bugs I fixed Pin
Joey Picerno30-Jul-08 10:07
Joey Picerno30-Jul-08 10:07 
QuestionCan Sub New be extended? Pin
Gregory Gadow30-Jul-08 7:00
Gregory Gadow30-Jul-08 7:00 
DataGridViewTextBoxCell has a single constructor, which takes no parameters. I would like to extend it to have a constructor with an object parameter, which will set its value in one statement, like this:

DGVRow.Cells.Add(New DataGridViewTextBoxCell(StartingValue))
The extension method should look like this:

Public Module Extensions

    <Extension()> _
    Public Sub New(ByVal this As DataGridViewTextBoxCell, ByVal Value As Object)
        this.Value = Value
    End Sub

End Module
This produces error squiggles under Public ("Shared 'Sub New' cannot be declared 'Public'") and New ("Shared 'Sub New' cannot have any parameters.") Using any name other than New eliminates the errors.

Can what I want to do be done without subclassing?
AnswerRe: Can Sub New be extended? Pin
Thomas Stockwell30-Jul-08 10:39
professionalThomas Stockwell30-Jul-08 10:39 
GeneralThat's what I was afraid of Pin
Gregory Gadow30-Jul-08 10:51
Gregory Gadow30-Jul-08 10:51 
GeneralRe: That's what I was afraid of Pin
Guffa30-Jul-08 13:06
Guffa30-Jul-08 13:06 
QuestionExporting excel 2003 contents to access 2003 database using vb.net 2003 Pin
chandrubngit30-Jul-08 5:11
chandrubngit30-Jul-08 5:11 
AnswerRe: Exporting excel 2003 contents to access 2003 database using vb.net 2003 Pin
Paul Conrad30-Jul-08 7:01
professionalPaul Conrad30-Jul-08 7:01 
Questionrunning batch file within an application Pin
Matodzi30-Jul-08 4:40
Matodzi30-Jul-08 4:40 
AnswerRe: running batch file within an application Pin
jzonthemtn30-Jul-08 5:32
jzonthemtn30-Jul-08 5:32 
Questiondid tcplistener can listen to one specified client ip Pin
shee_dee8630-Jul-08 4:23
shee_dee8630-Jul-08 4:23 
AnswerRe: did tcplistener can listen to one specified client ip Pin
jzonthemtn30-Jul-08 5:30
jzonthemtn30-Jul-08 5:30 
QuestionIs ocx registered? Pin
cstrader23230-Jul-08 3:18
cstrader23230-Jul-08 3:18 
AnswerRe: Is ocx registered? Pin
jzonthemtn30-Jul-08 4:26
jzonthemtn30-Jul-08 4:26 
GeneralRe: Is ocx registered? Pin
cstrader23230-Jul-08 5:12
cstrader23230-Jul-08 5:12 
QuestionGenerating a report using wizard and storing as PDF Pin
Subzito30-Jul-08 2:45
Subzito30-Jul-08 2:45 
AnswerRe: Generating a report using wizard and storing as PDF Pin
Paul Conrad2-Aug-08 19:01
professionalPaul Conrad2-Aug-08 19:01 
Questionmuch confused Help!!!! Pin
morena.harris30-Jul-08 1:59
morena.harris30-Jul-08 1:59 
AnswerRe: much confused Help!!!! Pin
Eduard Keilholz30-Jul-08 4:28
Eduard Keilholz30-Jul-08 4:28 
AnswerRe: much confused Help!!!! Pin
rprateek4-Aug-08 15:47
rprateek4-Aug-08 15:47 

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.