Click here to Skip to main content
15,881,424 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net combo box Pin
Richard MacCutchan10-Jun-15 22:56
mveRichard MacCutchan10-Jun-15 22:56 
GeneralRe: vb.net combo box Pin
Jens Madsen, Højby14-Jul-15 21:19
Jens Madsen, Højby14-Jul-15 21:19 
AnswerRe: vb.net combo box Pin
Sascha Lefèvre10-Jun-15 14:21
professionalSascha Lefèvre10-Jun-15 14:21 
SuggestionRe: vb.net combo box Pin
Richard Deeming11-Jun-15 2:17
mveRichard Deeming11-Jun-15 2:17 
GeneralRe: vb.net combo box Pin
Sascha Lefèvre11-Jun-15 2:40
professionalSascha Lefèvre11-Jun-15 2:40 
QuestionUpdate only some classes on entity framework model Pin
satc8-Jun-15 20:45
satc8-Jun-15 20:45 
AnswerRe: Update only some classes on entity framework model Pin
Dave Kreskowiak9-Jun-15 7:01
mveDave Kreskowiak9-Jun-15 7:01 
Questionvb.net 2010 desktop app value displayed in combo box Pin
classy_dog8-Jun-15 11:48
classy_dog8-Jun-15 11:48 
In a Visual basic.net 2010 desktop application, I am loading a list of Access 2013 files that the user needs to select to work with. The code listed below is correct but the file names are too long for the combo box.

Here is the code:

Try           

Dim dirAccessFiles As String() = Directory.GetFiles("H:\FilesTest", "*.accdb")

Dim dir As String

For Each dir In dirAccessFiles

cboAccessFile.Items.Add(dir)

Next

Catch except As Exception

Console.WriteLine("The process failed: {0}", e.ToString())

End Try

Thus I have the following questions to ask you:

1. If there is a way to expand the size of the combo box values while the application is executing, can you show me how to do that?

2. Right now in dropdownlist box, the values look like,

'H:\Testfiles\Diane__Currentyear.accdb'.

I would like the value only of 'Diane__Currentyear' that is listed above to display. Also where hardcoded value of 'H:\Testfiles' is displayed in the code above, I will get the actual value from the app. config file.

Thus would you show the code on how to display only the value of 'Diane__Currentyear' in the list of combo box values?
AnswerRe: vb.net 2010 desktop app value displayed in combo box Pin
Sascha Lefèvre8-Jun-15 18:27
professionalSascha Lefèvre8-Jun-15 18:27 
GeneralRe: vb.net 2010 desktop app value displayed in combo box Pin
Ralf Meier9-Jun-15 3:00
mveRalf Meier9-Jun-15 3:00 
QuestionDefine a property on 2 partial classes ? Pin
satc8-Jun-15 0:33
satc8-Jun-15 0:33 
AnswerRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 2:24
professionalSascha Lefèvre8-Jun-15 2:24 
GeneralRe: Define a property on 2 partial classes ? Pin
satc8-Jun-15 10:00
satc8-Jun-15 10:00 
GeneralRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 18:32
professionalSascha Lefèvre8-Jun-15 18:32 
GeneralRe: Define a property on 2 partial classes ? Pin
satc8-Jun-15 19:59
satc8-Jun-15 19:59 
GeneralRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 20:15
professionalSascha Lefèvre8-Jun-15 20:15 
QuestionVisual Basic problem Pin
Member 113991345-Jun-15 23:09
Member 113991345-Jun-15 23:09 
AnswerRe: Visual Basic problem Pin
Dave Kreskowiak6-Jun-15 4:12
mveDave Kreskowiak6-Jun-15 4:12 
AnswerRe: Visual Basic problem Pin
Mycroft Holmes7-Jun-15 14:37
professionalMycroft Holmes7-Jun-15 14:37 
QuestionI have problems when implementing INotifyPropertyChanged on Entity framework Pin
satc5-Jun-15 17:18
satc5-Jun-15 17:18 
AnswerRe: I have problems when implementing INotifyPropertyChanged on Entity framework Pin
Dave Kreskowiak6-Jun-15 4:09
mveDave Kreskowiak6-Jun-15 4:09 
Questionvb.net visibility o form objects Pin
classy_dog5-Jun-15 11:04
classy_dog5-Jun-15 11:04 
AnswerRe: vb.net visibility o form objects Pin
Richard MacCutchan5-Jun-15 21:25
mveRichard MacCutchan5-Jun-15 21:25 
GeneralRe: vb.net visibility o form objects Pin
classy_dog8-Jun-15 5:06
classy_dog8-Jun-15 5:06 
GeneralRe: vb.net visibility o form objects Pin
Richard MacCutchan8-Jun-15 5:34
mveRichard MacCutchan8-Jun-15 5:34 

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.