Click here to Skip to main content
15,891,409 members
Home / Discussions / C#
   

C#

 
GeneralRe: image process Pin
Xmen Real 4-Apr-09 13:49
professional Xmen Real 4-Apr-09 13:49 
AnswerRe: image process Pin
Xmen Real 4-Apr-09 13:53
professional Xmen Real 4-Apr-09 13:53 
Questionexcel data display Pin
mist_psycho4-Apr-09 4:22
mist_psycho4-Apr-09 4:22 
AnswerRe: excel data display Pin
Xmen Real 4-Apr-09 5:53
professional Xmen Real 4-Apr-09 5:53 
AnswerRe: excel data display Pin
fly9044-Apr-09 6:06
fly9044-Apr-09 6:06 
Questionexcel data display Pin
mist_psycho4-Apr-09 4:21
mist_psycho4-Apr-09 4:21 
Question[Message Deleted] Pin
hkjghkj14-Apr-09 3:43
hkjghkj14-Apr-09 3:43 
AnswerRe: Using Folder in the project Pin
Luc Pattyn4-Apr-09 3:57
sitebuilderLuc Pattyn4-Apr-09 3:57 
myventsi wrote:
Sol1.Data.


what's with all the dots?
Windows uses a backslash as a path separator.
Visual Studio shows solution and project items in its solution pane, they reflect real files and folders.


myventsi wrote:
RegFile = new FileInfo("Sol1.Data." + MyCombo.SelectedItem.ToString() + ".mdb");


Bad style. What if nothing was selected in the ComboBox?
Split the line in several lines, compute the filename first, so you can look at it, then call FileInfo.
For the filename, safest approach may be to use an absolute path, something like:
object item=MyCombo.SelectedItem;
if (item!=null) {
    string filename=@"C:\myfolder\myproject\Sol1\data\"+item.ToString()+".mdb";
    RegFile=...


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


General[Message Deleted] Pin
hkjghkj14-Apr-09 4:08
hkjghkj14-Apr-09 4:08 
GeneralRe: Using Folder in the project Pin
Luc Pattyn4-Apr-09 4:55
sitebuilderLuc Pattyn4-Apr-09 4:55 
General[Message Deleted] Pin
hkjghkj14-Apr-09 5:07
hkjghkj14-Apr-09 5:07 
GeneralRe: Using Folder in the project Pin
Luc Pattyn4-Apr-09 5:09
sitebuilderLuc Pattyn4-Apr-09 5:09 
GeneralRe: Using Folder in the project Pin
Xmen Real 4-Apr-09 5:46
professional Xmen Real 4-Apr-09 5:46 
QuestionHow to link in a web page within windows project Pin
Rahad Rahman3-Apr-09 23:18
professionalRahad Rahman3-Apr-09 23:18 
AnswerRe: How to link in a web page within windows project Pin
DaveyM693-Apr-09 23:28
professionalDaveyM693-Apr-09 23:28 
Questiontreelistview key Navigation problem Pin
hirenkshah3-Apr-09 22:46
hirenkshah3-Apr-09 22:46 
AnswerRe: treelistview key Navigation problem Pin
Xmen Real 4-Apr-09 1:14
professional Xmen Real 4-Apr-09 1:14 
QuestionGridview Binding Pin
K V Sekhar3-Apr-09 22:33
K V Sekhar3-Apr-09 22:33 
AnswerRe: Gridview Binding Pin
Christian Graus3-Apr-09 23:16
protectorChristian Graus3-Apr-09 23:16 
QuestionCreating application settings at runtime? Pin
Sokka933-Apr-09 21:33
Sokka933-Apr-09 21:33 
AnswerRe: Creating application settings at runtime? Pin
DaveyM693-Apr-09 22:41
professionalDaveyM693-Apr-09 22:41 
AnswerRe: Creating application settings at runtime? Pin
Henry Minute4-Apr-09 6:21
Henry Minute4-Apr-09 6:21 
Answer[Message Deleted] Pin
rick05565-Aug-09 5:25
rick05565-Aug-09 5:25 
AnswerRe: Creating application settings at runtime? Pin
rick05565-Aug-09 5:26
rick05565-Aug-09 5:26 
GeneralRe: Creating application settings at runtime? Pin
Sokka935-Aug-09 5:48
Sokka935-Aug-09 5:48 

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.