Click here to Skip to main content
15,880,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRun .bat file from ftp using console apps Pin
SHAHROL AZMI BIN AMZAT13-Mar-22 21:07
SHAHROL AZMI BIN AMZAT13-Mar-22 21:07 
AnswerRe: Run .bat file from ftp using console apps Pin
Richard Deeming13-Mar-22 22:30
mveRichard Deeming13-Mar-22 22:30 
GeneralRe: Run .bat file from ftp using console apps Pin
SHAHROL AZMI BIN AMZAT15-Mar-22 13:14
SHAHROL AZMI BIN AMZAT15-Mar-22 13:14 
AnswerRe: Run .bat file from ftp using console apps Pin
Eddy Vluggen14-Mar-22 14:44
professionalEddy Vluggen14-Mar-22 14:44 
Questionconvert image to matrix Pin
CR7 Madara13-Mar-22 2:23
CR7 Madara13-Mar-22 2:23 
GeneralRe: convert image to matrix Pin
Richard MacCutchan13-Mar-22 2:32
mveRichard MacCutchan13-Mar-22 2:32 
AnswerRe: convert image to matrix Pin
Kenneth Haugland13-Mar-22 6:08
mvaKenneth Haugland13-Mar-22 6:08 
QuestionSimple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist577-Mar-22 13:57
lewist577-Mar-22 13:57 
I do not code for a living, and infrequently use VB.net under Visual Studio.

When starting a new project, the statup up form name is Form1 in vb.net (this is under VS 2022 community).

If I leave the form name as Form1, then no problems when I build the project. But it seems (and this could be user error on my part), if I change the form name to something else like frmMain, then when I build the project, VS provides compiler errors such as:

Error BC30420 'Sub Main' was not found in 'ModuleTest2.frmMain'

or

Warning BC40046 class 'frmMain' and partial class 'frmMain' conflict in namespace 'Moduletest', but are being merged because one of them is declared partial.

So apparently I am doing something wrong but it seems to me that changing the first form name to something other than Form1 should not cause such a fuss.

Input?
AnswerRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Richard MacCutchan7-Mar-22 21:21
mveRichard MacCutchan7-Mar-22 21:21 
QuestionRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
CHill607-Mar-22 21:22
mveCHill607-Mar-22 21:22 
AnswerRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist578-Mar-22 11:34
lewist578-Mar-22 11:34 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak8-Mar-22 15:57
mveDave Kreskowiak8-Mar-22 15:57 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 8:17
lewist579-Mar-22 8:17 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak9-Mar-22 9:11
mveDave Kreskowiak9-Mar-22 9:11 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 13:57
lewist579-Mar-22 13:57 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Dave Kreskowiak9-Mar-22 14:59
mveDave Kreskowiak9-Mar-22 14:59 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Richard MacCutchan8-Mar-22 22:14
mveRichard MacCutchan8-Mar-22 22:14 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
lewist579-Mar-22 8:10
lewist579-Mar-22 8:10 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Richard MacCutchan9-Mar-22 21:37
mveRichard MacCutchan9-Mar-22 21:37 
GeneralRe: Simple question: why does Visual Studio "freak out" when changing Form1 name to something different Pin
Slow Eddie20-May-22 8:21
professionalSlow Eddie20-May-22 8:21 
Questionspur gear Pin
Member 155582647-Mar-22 9:29
Member 155582647-Mar-22 9:29 
AnswerRe: spur gear Pin
Dave Kreskowiak7-Mar-22 10:23
mveDave Kreskowiak7-Mar-22 10:23 
SuggestionRe: spur gear Pin
CHill607-Mar-22 21:27
mveCHill607-Mar-22 21:27 
GeneralRe: spur gear Pin
Member 155582648-Mar-22 11:16
Member 155582648-Mar-22 11:16 
QuestionRe: spur gear Pin
CHill608-Mar-22 21:31
mveCHill608-Mar-22 21:31 

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.