Click here to Skip to main content
16,020,633 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: PROBLEMS ACCESSING A WINDOWS FORM CLASS FROM ANOTHER WINDOWS FORM IN THE SAME APPLICATION (USING C#) Pin
Henry Minute25-Jun-09 20:42
Henry Minute25-Jun-09 20:42 
QuestionhInstance difference between WNDCLASS and CreatWindow Pin
iceman861621-Jun-09 21:35
iceman861621-Jun-09 21:35 
AnswerRe: hInstance difference between WNDCLASS and CreatWindow Pin
led mike22-Jun-09 4:55
led mike22-Jun-09 4:55 
GeneralRe: hInstance difference between WNDCLASS and CreatWindow Pin
iceman861622-Jun-09 16:01
iceman861622-Jun-09 16:01 
GeneralRe: hInstance difference between WNDCLASS and CreatWindow Pin
led mike23-Jun-09 4:40
led mike23-Jun-09 4:40 
Question[Solved] VS 2010 : TableLayoutPanel does NOT expose RowSpan and ColumnSpan properties at design-time [modified] Pin
BillWoodruff17-Jun-09 23:19
professionalBillWoodruff17-Jun-09 23:19 
AnswerRe: VS 2010 : TableLayoutPanel does NOT expose RowSpan and ColumnSpan properties at design-time Pin
led mike18-Jun-09 4:43
led mike18-Jun-09 4:43 
QuestionSQL query worked fine... until I tried it in Visual Studio 2008 Pin
Andrew Tamberino17-Jun-09 9:12
Andrew Tamberino17-Jun-09 9:12 
I've been pulling my hair out over this for the past week. I finally got the query to work perfectly last night in MS SQL management studio, but when I tried to build it into my VS2008 application it has failed miserable. All day long. For the last 12 hours I've been fighting to make this standard T-SQL syntax work in VS. Here is the code:

SELECT NAME, TIME, AGE,
ROW_NUMBER( ) OVER (ORDER BY TIME) AS RANKING
FROM 'SampleFile.txt'
WHERE AGE<16
UNION
SELECT NAME, TIME, AGE,
ROW_NUMBER( ) OVER (ORDER BY TIME) AS RANKING
FROM 'SampleFile.txt'
WHERE AGE
BETWEEN 16 AND 29
UNION
SELECT NAME, TIME, AGE,
ROW_NUMBER( ) OVER (ORDER BY TIME) AS RANKING
FROM 'SampleFile.txt'
WHERE AGE>29
ORDER BY TIME

What I inevitably get back from the TableAdapter Configuration Wizard is:
Error in SELECT clause: expression near ','.
Missing FROM clause;
Unable to parse query text.

When I click to finish anyway and run the solution I get "OdbcException was unhandled"
ERROR [42000] [ODBC Text Driver] Syntax error (missing operator) in query expression
'ROW_NUMBER () OVER(ORDER BY TIME)'

I have tried every combination of parenthesis, quotes, etc. Nothing has worked.
BTW, I'm using the ODBC text driver, don't know if that makes a difference.
Please help.
Sincerely,
Andrew
AnswerRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Dave Kreskowiak17-Jun-09 10:19
mveDave Kreskowiak17-Jun-09 10:19 
GeneralRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Andrew Tamberino17-Jun-09 11:07
Andrew Tamberino17-Jun-09 11:07 
GeneralRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Dave Kreskowiak17-Jun-09 13:33
mveDave Kreskowiak17-Jun-09 13:33 
GeneralRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Andrew Tamberino17-Jun-09 14:23
Andrew Tamberino17-Jun-09 14:23 
GeneralRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Dave Kreskowiak17-Jun-09 18:03
mveDave Kreskowiak17-Jun-09 18:03 
GeneralRe: SQL query worked fine... until I tried it in Visual Studio 2008 Pin
Andrew Tamberino18-Jun-09 9:54
Andrew Tamberino18-Jun-09 9:54 
Questionhow do i use textbox value from one form on another to access database without releasing the resource(value) Pin
ChiSmile17-Jun-09 7:35
ChiSmile17-Jun-09 7:35 
QuestionPropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 3:00
professionalBillWoodruff17-Jun-09 3:00 
AnswerRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 4:40
led mike17-Jun-09 4:40 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 5:07
professionalBillWoodruff17-Jun-09 5:07 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 5:48
led mike17-Jun-09 5:48 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 6:02
professionalBillWoodruff17-Jun-09 6:02 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
DaveyM6917-Jun-09 6:11
professionalDaveyM6917-Jun-09 6:11 
GeneralRe: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
led mike17-Jun-09 6:20
led mike17-Jun-09 6:20 
Generalto Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 11:06
professionalBillWoodruff17-Jun-09 11:06 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
Scott Dorman17-Jun-09 12:57
professionalScott Dorman17-Jun-09 12:57 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 19:54
professionalBillWoodruff17-Jun-09 19:54 

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.