Click here to Skip to main content
15,919,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionimporting data from excel file and storing in Ms-Access database table? Pin
drmzunlimited17-Oct-02 21:24
drmzunlimited17-Oct-02 21:24 
AnswerRe: importing data from excel file and storing in Ms-Access database table? Pin
Megan Forbes24-Oct-02 22:39
Megan Forbes24-Oct-02 22:39 
AnswerRe: importing data from excel file and storing in Ms-Access database table? Pin
Megan Forbes25-Oct-02 3:26
Megan Forbes25-Oct-02 3:26 
Questionimporting an excel file and storing in MS-Access? Pin
drmzunlimited17-Oct-02 21:21
drmzunlimited17-Oct-02 21:21 
AnswerRe: importing an excel file and storing in MS-Access? Pin
Steven Lyons21-Oct-02 12:03
Steven Lyons21-Oct-02 12:03 
Questionenvironment similar to excel??? Pin
drmzunlimited17-Oct-02 21:19
drmzunlimited17-Oct-02 21:19 
Questiondisable close and starting maximized? Pin
drmzunlimited17-Oct-02 21:05
drmzunlimited17-Oct-02 21:05 
AnswerRe: disable close and starting maximized? Pin
goddess_spanky18-Oct-02 4:58
goddess_spanky18-Oct-02 4:58 
To disable the close button in a form, add this module to your project...
<br />
Option Explicit<br />
Option Private Module<br />
<br />
Public Declare Function GetSystemMenu Lib "user32" _<br />
(ByVal hwnd As Long, _<br />
ByVal bRevert As Long) As Long<br />
<br />
Public Declare Function RemoveMenu Lib "user32" _<br />
(ByVal hMenu As Long, _<br />
ByVal nPosition As Long, _<br />
ByVal wFlags As Long) As Long<br />
<br />
Public Const MF_BYPOSITION = &H400&<br />
<br />
Public Function DisableCloseButton(frm As Form) As Boolean<br />
<br />
Dim lHndSysMenu As Long<br />
Dim lAns1 As Long, lAns2 As Long<br />
<br />
    lHndSysMenu = GetSystemMenu(frm.hwnd, 0)<br />
    '//remove close button<br />
<br />
    lAns1 = RemoveMenu(lHndSysMenu, 6, MF_BYPOSITION)<br />
    '//Remove seperator bar<br />
<br />
    lAns2 = RemoveMenu(lHndSysMenu, 5, MF_BYPOSITION)<br />
    '//Return True if both calls were successful<br />
<br />
    DisableCloseButton = (lAns1 <> 0 And lAns2 <> 0)<br />
<br />
End Function<br />


Then in the form_load() event, add this
<br />
Private Sub Form_Load()<br />
Dim retval as boolean<br />
<br />
retval = DisableCloseButton(frmName)<br />
<br />
End Sub<br />


as for starting the form maximized, there should be a property window for the form with an option labeled "WindowState", just set that to "2-Maximized"
or add this to the form_load() event as well
<br />
frmName.WindowState = 2<br />

GeneralMAPI session.logon Pin
Anonymous16-Oct-02 2:49
Anonymous16-Oct-02 2:49 
GeneralSKinning in VB.net Pin
308holes15-Oct-02 8:28
308holes15-Oct-02 8:28 
Generalhowto get fileinformation Pin
mkrelli15-Oct-02 7:20
mkrelli15-Oct-02 7:20 
GeneralRe: howto get fileinformation Pin
Richard Deeming16-Oct-02 1:40
mveRichard Deeming16-Oct-02 1:40 
GeneralPrint Word Document Pin
Zulfikar Ali15-Oct-02 6:22
Zulfikar Ali15-Oct-02 6:22 
GeneralRe: Print Word Document Pin
Chad Smith15-Oct-02 7:12
professionalChad Smith15-Oct-02 7:12 
Generalcreate "excel" sheet in MDI (child) window Pin
sleepycat14-Oct-02 22:37
sleepycat14-Oct-02 22:37 
Generalprogrammer wanted Pin
Paul Rego14-Oct-02 18:34
sussPaul Rego14-Oct-02 18:34 
GeneralTab Control Pin
injunjoe14-Oct-02 15:40
injunjoe14-Oct-02 15:40 
GeneralSend and receive data Pin
Vipul Bhatt13-Oct-02 19:33
Vipul Bhatt13-Oct-02 19:33 
GeneralRe: Send and receive data Pin
RichardGrimmer20-Nov-02 2:15
RichardGrimmer20-Nov-02 2:15 
Questionhow to get value of one textbox from one form to another in VB.NET? Pin
drmzunlimited13-Oct-02 19:28
drmzunlimited13-Oct-02 19:28 
AnswerRe: how to get value of one textbox from one form to another in VB.NET? Pin
Nick Parker14-Oct-02 1:52
protectorNick Parker14-Oct-02 1:52 
GeneralCollections Pin
mikasa11-Oct-02 6:40
mikasa11-Oct-02 6:40 
GeneralRe: Collections Pin
Nick Parker11-Oct-02 8:11
protectorNick Parker11-Oct-02 8:11 
GeneralASCII Printable Characters Only Pin
Like2Byte10-Oct-02 5:10
Like2Byte10-Oct-02 5:10 
GeneralRe: ASCII Printable Characters Only Pin
Daniel Turini10-Oct-02 5:13
Daniel Turini10-Oct-02 5:13 

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.