Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: dynamically setting pictures for a picbox Pin
Ray Cassick14-Mar-05 14:30
Ray Cassick14-Mar-05 14:30 
GeneralRe: dynamically setting pictures for a picbox Pin
JMS7614-Mar-05 15:33
JMS7614-Mar-05 15:33 
GeneralRe: dynamically setting pictures for a picbox Pin
Ray Cassick14-Mar-05 17:44
Ray Cassick14-Mar-05 17:44 
GeneralRe: dynamically setting pictures for a picbox Pin
JMS7615-Mar-05 19:09
JMS7615-Mar-05 19:09 
GeneralRe: dynamically setting pictures for a picbox Pin
Ray Cassick14-Mar-05 14:36
Ray Cassick14-Mar-05 14:36 
GeneralRe: dynamically setting pictures for a picbox Pin
JMS7614-Mar-05 15:35
JMS7614-Mar-05 15:35 
QuestionImage buttons? Pin
oswaldoh14-Mar-05 6:02
oswaldoh14-Mar-05 6:02 
GeneralRecent Files Menu Management Pin
rswipe14-Mar-05 4:33
rswipe14-Mar-05 4:33 
Hello All,

Does anybody have any neat code (VB.NET) to manage the "recent files" part of a main menu like in WORD. I'm using just a simple note editor and i'm going crazy over the logic although i'm sure it's simple.
To start with I read in 4 files from a *.ini file and create the menuitems having declared the menu array name at form level:

'at form level
Dim RecentFile(3) as MenuItem

'at frm_Load to create menuitems after reading file names/path from *.ini file
...RecentFile(3)=New MenutItem (FileString(4))

Read files then create menuitems..

mnuMain.MenuItems.Add(RecentFile(I))

Then from the Open file event using the OpenDialog box..I have

Filename=dlgOpen.Filename

This then passes to a subroutine to sort the recent files and delete any file that was the same as the current one.

so..
FileString(1)= RecentFile 1 from last edit/open/new procedure
FileString(2)= RecentFile 2 from last edit/open/new procedure
FileString(3)= RecentFile 3 from last edit/open/new procedure
FileString(4)= RecentFile 4 from last edit/open/new procedure

I'm looking for code that puts the new Filename in the top position but also deletes any of the existing ones if they are the same as Filename.

Thanks for your help.


QuestionHow can I access controls on parent-form Pin
MaWeRic14-Mar-05 4:26
MaWeRic14-Mar-05 4:26 
AnswerRe: How can I access controls on parent-form Pin
Dave Kreskowiak14-Mar-05 6:27
mveDave Kreskowiak14-Mar-05 6:27 
GeneralRe: How can I access controls on parent-form Pin
MaWeRic14-Mar-05 7:19
MaWeRic14-Mar-05 7:19 
GeneralRe: How can I access controls on parent-form Pin
Dave Kreskowiak14-Mar-05 10:28
mveDave Kreskowiak14-Mar-05 10:28 
GeneralRe: How can I access controls on parent-form Pin
Omar Mallat15-Mar-05 3:20
professionalOmar Mallat15-Mar-05 3:20 
GeneralRe: How can I access controls on parent-form Pin
Dave Kreskowiak15-Mar-05 16:21
mveDave Kreskowiak15-Mar-05 16:21 
GeneralHTA and External VB Script Pin
pn199514-Mar-05 4:25
pn199514-Mar-05 4:25 
GeneralRe: HTA and External VB Script Pin
Dave Kreskowiak14-Mar-05 6:21
mveDave Kreskowiak14-Mar-05 6:21 
GeneralHiding the Title Bar Pin
Thirumalaraj14-Mar-05 4:14
Thirumalaraj14-Mar-05 4:14 
GeneralRe: Hiding the Title Bar Pin
Dave Kreskowiak14-Mar-05 6:06
mveDave Kreskowiak14-Mar-05 6:06 
GeneralRe: Hiding the Title Bar Pin
Bad Sector15-Mar-05 20:29
Bad Sector15-Mar-05 20:29 
GeneralRe: Hiding the Title Bar Pin
Dave Kreskowiak16-Mar-05 0:59
mveDave Kreskowiak16-Mar-05 0:59 
GeneralDeserialization Troubles Part 2: GAC and adding assemblies Pin
Dahoolio14-Mar-05 3:16
Dahoolio14-Mar-05 3:16 
QuestionHow I access messege? Pin
sam_pune14-Mar-05 2:50
sam_pune14-Mar-05 2:50 
AnswerRe: How I access messege? Pin
Dahoolio14-Mar-05 3:09
Dahoolio14-Mar-05 3:09 
AnswerRe: How I access messege? Pin
scottgp14-Mar-05 5:15
professionalscottgp14-Mar-05 5:15 
QuestionHow to search through the database from vb.net? Pin
ADY00714-Mar-05 1:46
ADY00714-Mar-05 1:46 

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.