Click here to Skip to main content
15,902,893 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding a new row to a dataset Pin
Dave Kreskowiak14-Sep-07 5:29
mveDave Kreskowiak14-Sep-07 5:29 
GeneralRe: Adding a new row to a dataset Pin
Tom Deketelaere14-Sep-07 5:43
professionalTom Deketelaere14-Sep-07 5:43 
GeneralRe: Adding a new row to a dataset Pin
Dave Kreskowiak14-Sep-07 8:00
mveDave Kreskowiak14-Sep-07 8:00 
GeneralRe: Adding a new row to a dataset Pin
Tom Deketelaere16-Sep-07 3:01
professionalTom Deketelaere16-Sep-07 3:01 
GeneralRe: Adding a new row to a dataset Pin
Dave Kreskowiak16-Sep-07 4:39
mveDave Kreskowiak16-Sep-07 4:39 
GeneralRe: Adding a new row to a dataset Pin
Dave Kreskowiak14-Sep-07 5:28
mveDave Kreskowiak14-Sep-07 5:28 
Questionaddhandlers and addressofs Pin
Cedrickdeorange13-Sep-07 14:25
Cedrickdeorange13-Sep-07 14:25 
AnswerRe: addhandlers and addressofs Pin
Luc Pattyn13-Sep-07 15:05
sitebuilderLuc Pattyn13-Sep-07 15:05 
Hi,

some comments:

1.
you can add a single MenuItem Click handler for all four mnuFileRecent MenuItems.
you can find its MenuItem from its sender argument, and the filename from its text.
I see no need for Addressof.

2.
you don't need PerformClick, it simulates clicking something. What I am missing is the
code that sets the texts for mnuFileRecent1-4

3.
You don't need tempArray:
first check whether the new file is already in RecentFiles;
if not, shift them down (from hi to lo index) before you add F at 0.
if it is there, shift them down starting with overwriting the old F, upwards, then put F at 0.

4.
You may want to improve the handling when fewer than 4 recent files are known (initially
or after clearing the list, if that is offered).
suggestion: set up a convention to store/load the situation to/from file; disable menu
items that are not functional yet.

5.
You might consider using Application.UserAppDataPath rather than your AppPath(), since
the latter may be read-only, and the former automatically exists per user.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionHelp me please ,assembly trust and \or security problem Pin
CodeMaster_0513-Sep-07 10:43
CodeMaster_0513-Sep-07 10:43 
AnswerRe: Help me please ,assembly trust and \or security problem Pin
Tom Deketelaere13-Sep-07 21:40
professionalTom Deketelaere13-Sep-07 21:40 
GeneralRe: Help me please ,assembly trust and \or security problem Pin
CodeMaster_0516-Sep-07 3:50
CodeMaster_0516-Sep-07 3:50 
QuestionDIRECTX audiovideoplayback Pin
plural13-Sep-07 9:54
plural13-Sep-07 9:54 
QuestionQuestion on VBScript Pin
T4AMD13-Sep-07 8:49
T4AMD13-Sep-07 8:49 
AnswerRe: Question on VBScript Pin
Dave Kreskowiak13-Sep-07 9:24
mveDave Kreskowiak13-Sep-07 9:24 
QuestionRe: Question on VBScript Pin
T4AMD13-Sep-07 10:28
T4AMD13-Sep-07 10:28 
AnswerRe: Question on VBScript Pin
Dave Kreskowiak13-Sep-07 10:42
mveDave Kreskowiak13-Sep-07 10:42 
QuestionSynchronising data from a client to a sql server database Pin
steve_rm13-Sep-07 8:46
steve_rm13-Sep-07 8:46 
AnswerRe: Synchronising data from a client to a sql server database Pin
Dave Kreskowiak13-Sep-07 9:21
mveDave Kreskowiak13-Sep-07 9:21 
QuestionWait for Shell script to finish Pin
New_Coder13-Sep-07 6:21
New_Coder13-Sep-07 6:21 
AnswerRe: Wait for Shell script to finish Pin
Dave Kreskowiak13-Sep-07 9:09
mveDave Kreskowiak13-Sep-07 9:09 
GeneralRe: Wait for Shell script to finish Pin
New_Coder13-Sep-07 12:06
New_Coder13-Sep-07 12:06 
GeneralRe: Wait for Shell script to finish Pin
MartyK200713-Sep-07 22:00
MartyK200713-Sep-07 22:00 
GeneralRe: Wait for Shell script to finish Pin
Dave Kreskowiak14-Sep-07 4:48
mveDave Kreskowiak14-Sep-07 4:48 
GeneralRe: Wait for Shell script to finish Pin
MartyK200714-Sep-07 4:51
MartyK200714-Sep-07 4:51 
QuestionAnyone out there try TrSpeaker add in component in vb6? Pin
Robert from Florida13-Sep-07 5:55
Robert from Florida13-Sep-07 5:55 

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.