Click here to Skip to main content
15,890,282 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCannot create Web Site in VS 2005 Pin
DJamesRange25-Jul-07 4:03
DJamesRange25-Jul-07 4:03 
AnswerRe: Cannot create Web Site in VS 2005 Pin
Paul Conrad25-Jul-07 6:21
professionalPaul Conrad25-Jul-07 6:21 
Questionhow to know my IP and write it in a label Pin
saadmechiche25-Jul-07 3:58
saadmechiche25-Jul-07 3:58 
AnswerRe: how to know my IP and write it in a label Pin
Tom Deketelaere25-Jul-07 4:20
professionalTom Deketelaere25-Jul-07 4:20 
GeneralRe: how to know my IP and write it in a label Pin
saadmechiche25-Jul-07 4:38
saadmechiche25-Jul-07 4:38 
Questionrestrict file type Pin
Prem Ranjan25-Jul-07 2:42
Prem Ranjan25-Jul-07 2:42 
AnswerRe: restrict file type Pin
Tom Deketelaere25-Jul-07 3:53
professionalTom Deketelaere25-Jul-07 3:53 
GeneralRe: restrict file type Pin
Sebastian T Xavier25-Jul-07 4:07
Sebastian T Xavier25-Jul-07 4:07 
Hi try the folllowing code.........

string sFilePath;//path of the file
string[] sSeperate;//get the exact name of file without extension
int iarrLength;//get the exact name of file without extension;resets the count
string sExtension;//get the extension of the file.

sFilePath = FileName;
sSeperate = sFilePath.Split('.');
iarrLength = sSeperate.Length - 1;
sExtension = sSeperate[iarrLength].ToString().ToUpper();
if (sExtension.ToUpper().Equals("XLS"))
{
//put your code here
}
else
{
MessageBox.Show("Invalid file selected!");
}

Warm Regards.........


NB:Please score if it is worth.........

Sebastian
GeneralRe: restrict file type Pin
Luc Pattyn25-Jul-07 5:34
sitebuilderLuc Pattyn25-Jul-07 5:34 
QuestionOpenKeyset Recordset - ADODB Pin
Werries25-Jul-07 2:05
Werries25-Jul-07 2:05 
AnswerRe: OpenKeyset Recordset - ADODB Pin
Dave Kreskowiak25-Jul-07 6:55
mveDave Kreskowiak25-Jul-07 6:55 
Questioncouldn't implement stored procedure programming for sql server 2005 in vb dot net 2005 Pin
Dhyanga25-Jul-07 2:01
Dhyanga25-Jul-07 2:01 
AnswerRe: couldn't implement stored procedure programming for sql server 2005 in vb dot net 2005 Pin
kubben25-Jul-07 3:24
kubben25-Jul-07 3:24 
AnswerRe: couldn't implement stored procedure programming for sql server 2005 in vb dot net 2005 Pin
Dave Kreskowiak25-Jul-07 6:53
mveDave Kreskowiak25-Jul-07 6:53 
QuestionMerge two collection with VB Pin
SveinThomas25-Jul-07 1:17
SveinThomas25-Jul-07 1:17 
AnswerRe: Merge two collection with VB Pin
Dave Kreskowiak25-Jul-07 3:37
mveDave Kreskowiak25-Jul-07 3:37 
AnswerRe: Merge two collection with VB Pin
Luc Pattyn25-Jul-07 5:50
sitebuilderLuc Pattyn25-Jul-07 5:50 
Questionsql statement ..., how can i resolve this error Pin
magedhv25-Jul-07 0:05
magedhv25-Jul-07 0:05 
AnswerRe: sql statement ..., how can i resolve this error Pin
WhiteGirl2325-Jul-07 3:08
WhiteGirl2325-Jul-07 3:08 
GeneralRe: sql statement ..., how can i resolve this error Pin
magedhv25-Jul-07 21:05
magedhv25-Jul-07 21:05 
AnswerRe: sql statement ..., how can i resolve this error Pin
Dave Kreskowiak25-Jul-07 6:39
mveDave Kreskowiak25-Jul-07 6:39 
Questionhow to pass parmeters in crystal report ? Pin
help as an alias25-Jul-07 0:01
help as an alias25-Jul-07 0:01 
AnswerRe: how to pass parmeters in crystal report ? Pin
Kschuler25-Jul-07 4:22
Kschuler25-Jul-07 4:22 
QuestionConverting an HTML document to an image Pin
Ahmad Zaidi24-Jul-07 23:44
Ahmad Zaidi24-Jul-07 23:44 
Questioncan i apply windows vista skin/theme to my vb form? Pin
jamilkhan00724-Jul-07 23:00
jamilkhan00724-Jul-07 23:00 

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.