Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: object not set to instance Pin
Joshua Quick12-Dec-05 9:09
Joshua Quick12-Dec-05 9:09 
GeneralRe: object not set to instance Pin
ibigpapa12-Dec-05 13:20
ibigpapa12-Dec-05 13:20 
GeneralRe: object not set to instance Pin
Joshua Quick12-Dec-05 13:46
Joshua Quick12-Dec-05 13:46 
QuestionCondition in WHERE clause in SQL Pin
andy389-Dec-05 15:26
andy389-Dec-05 15:26 
AnswerRe: Condition in WHERE clause in SQL Pin
uktrips0079-Dec-05 19:07
uktrips0079-Dec-05 19:07 
QuestionSaving Outsidefiles Pin
Luke_Nava9-Dec-05 13:03
Luke_Nava9-Dec-05 13:03 
AnswerRe: Saving Outsidefiles Pin
Joshua Quick9-Dec-05 13:34
Joshua Quick9-Dec-05 13:34 
QuestionDate conversion problem!!!! Pin
Omar Mallat9-Dec-05 12:13
professionalOmar Mallat9-Dec-05 12:13 
Hi every body.
I have some problem using date while changing My.Application.culture.

let we say that the regional setting have the date MM/dd/yyyy, and My.Application.Culture have the date dd/MM/yyyy, so any parsing from string to date or from date to string will reverse day and month.OMG | :OMG: OMG | :OMG:
in my project I have a combobox that was be filled using some date from a database. while filling it, all date was converted automatically from MM/dd/yyyy to dd/MM/yyyy. when I choose an item and I click on my button, I use CDate(combobox1.text) because I will call a function that need a date parameter: Sub New(ByVal SchoolId As Integer, ByVal YearStartDate As Date)
the cdate return the string to MM/dd/yyyy, so YearStartDate will be in MM/dd/yyyy format. i
n the sub New, I will search the date in a database , I use a command:
Dim command As New OleDb.OleDbCommand( _
"SELECT tYears.* FROM tYears WHERE tYears.YearStartDate = #" & YearStartDate & "# AND tYears.SchoolId=" & SchoolId _
, cn)
in this command the date will be reformatted in MM/dd/yyyy so it was reversed....

example:

1-the date in the first database is 10/05/2005 with MM/dd/yyyy format as same as regional setting.
2-it will appear 05/10/2005 in the combobox because my culture have the dd/MM/yyyy format.
3-when I use CDate it makes it 10/05/2005
4-when I use the Select command the string make it 05/10/2005, so I will search 05/10/2005 that will be never found!!!!!!!!!!!!!!!!!!Confused | :confused: Confused | :confused: Confused | :confused:
what is the solution?????????????????????//
thanksOMG | :OMG:

OmarMallat
AnswerRe: Date conversion problem!!!! Pin
Omar Mallat9-Dec-05 12:56
professionalOmar Mallat9-Dec-05 12:56 
GeneralRe: Date conversion problem!!!! Pin
Joshua Quick9-Dec-05 13:30
Joshua Quick9-Dec-05 13:30 
GeneralRe: Date conversion problem!!!! Pin
Omar Mallat9-Dec-05 18:33
professionalOmar Mallat9-Dec-05 18:33 
Questionpdf 2 image with itextsharp ?? Pin
darth_toni9-Dec-05 9:25
darth_toni9-Dec-05 9:25 
QuestionHi ! Pin
abhishk2001@yahoo.com9-Dec-05 8:03
abhishk2001@yahoo.com9-Dec-05 8:03 
AnswerRe: Hi ! Pin
Brent Lamborn9-Dec-05 10:53
Brent Lamborn9-Dec-05 10:53 
Questionadd chars to text at KEYPRESS Pin
Greeky9-Dec-05 2:45
Greeky9-Dec-05 2:45 
AnswerRe: add chars to text at KEYPRESS Pin
Roy Heil9-Dec-05 7:33
professionalRoy Heil9-Dec-05 7:33 
GeneralRe: add chars to text at KEYPRESS Pin
Roy Heil9-Dec-05 7:54
professionalRoy Heil9-Dec-05 7:54 
AnswerRe: add chars to text at KEYPRESS Pin
George B Gilbert9-Dec-05 9:30
George B Gilbert9-Dec-05 9:30 
Questionsetup wizard and registry handling Pin
Asim N.8-Dec-05 23:17
Asim N.8-Dec-05 23:17 
AnswerRe: setup wizard and registry handling Pin
George B Gilbert9-Dec-05 9:39
George B Gilbert9-Dec-05 9:39 
AnswerRe: setup wizard and registry handling Pin
Curtis Schlak.9-Dec-05 10:28
Curtis Schlak.9-Dec-05 10:28 
GeneralRe: setup wizard and registry handling Pin
Asim N.9-Dec-05 15:45
Asim N.9-Dec-05 15:45 
GeneralRe: setup wizard and registry handling Pin
Curtis Schlak.11-Dec-05 9:33
Curtis Schlak.11-Dec-05 9:33 
QuestionHow can I mount an image in VB.NET Pin
Weddi8-Dec-05 22:48
Weddi8-Dec-05 22:48 
AnswerRe: How can I mount an image in VB.NET Pin
Dave Kreskowiak9-Dec-05 5:47
mveDave Kreskowiak9-Dec-05 5:47 

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.