I want 1 dialog box which is having a login username and Password field.
ANd it must have 12 buttons. whenever i click on any button, it must open 1 Excel sheet associated with it.

Just want 1 skeleton code.

Recommended Answers

All 2 Replies

I dont think we have dialog box with 12 buttons, So you need to write ur own Dialog box.

You could just create a windows form put the Username and Password textboxes with the appropriate buttons for the login and 12 hidden buttons for the Excel files. When user logs in successfully hide the login boxes and buttons and make your 12 Excel buttons visible. Then when the button is clicked run Process.Start(XL_FILE_NAME) in the click event. You could also just use a combobox with the XL file names in it and you wouldn’t have to create so many buttons.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.