Click here to Skip to main content
16,007,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralMdi form and Toolbar Pin
adnan aslam29-Oct-04 0:43
adnan aslam29-Oct-04 0:43 
GeneralMdi form and Toolbar Pin
Anonymous28-Oct-04 23:58
Anonymous28-Oct-04 23:58 
GeneralDeveloping Softwares Pin
Ashish C Chaturvedi28-Oct-04 20:13
Ashish C Chaturvedi28-Oct-04 20:13 
GeneralRe: Developing Softwares Pin
Dave Kreskowiak29-Oct-04 2:07
mveDave Kreskowiak29-Oct-04 2:07 
Generalvirtual database interface for VB.Net Pin
Member 147812928-Oct-04 11:54
Member 147812928-Oct-04 11:54 
GeneralRe: virtual database interface for VB.Net Pin
J4amieC28-Oct-04 21:56
J4amieC28-Oct-04 21:56 
QuestionSaving Grayscale JPEGs with GDI+, Is it possible? Pin
tdrice28-Oct-04 10:54
tdrice28-Oct-04 10:54 
GeneralSQL Date in a textbox Pin
bexarcounty28-Oct-04 10:42
bexarcounty28-Oct-04 10:42 
When I display a date from the database I get the date and time. I've been able to create a binding object with events to get rid of the time in about half of the cases.

Private Sub XBINDING_format(byVal sender as Object, by Val e
As System.Windows.forms.converteventargs) handles xbinding.format
e.value = Format(e.Value, "MM/dd/yy")

DIM WITH EVENTS XBINDING AS BINDING
XBINDING = NEW BINDING ("TEXT", DS, "ADATE")
TXT1.DATABINDINGS.ADD(XBINDING)


This works fine if the value is not null. So, I put a try - catch trap to just display the database field directly if the above routine fails.

On about half of the date fields this works, the other half get an error that dosn't seam to have anything to do with the date problem

"Additional information: Argument 'Expression' is not a valid value."

If I comment out the routine everything works find. (Except for having the time in my textbox.


The work "Expression" isn't in any of the code. And, the online help talks about everything but this problem.

Anyone have any ideas?





GeneralRe: SQL Date in a textbox Pin
Christian Graus28-Oct-04 12:11
protectorChristian Graus28-Oct-04 12:11 
Generaloracle 8i connection with VB.Net Pin
Member 147757828-Oct-04 8:56
Member 147757828-Oct-04 8:56 
GeneralRe: oracle 8i connection with VB.Net Pin
Jim Matthews28-Oct-04 9:31
Jim Matthews28-Oct-04 9:31 
GeneralRe: oracle 8i connection with VB.Net Pin
raymond13931-Oct-04 12:22
raymond13931-Oct-04 12:22 
General.NET graphical controls in VB 6 Pin
limeysontherun28-Oct-04 7:50
limeysontherun28-Oct-04 7:50 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak28-Oct-04 16:39
mveDave Kreskowiak28-Oct-04 16:39 
GeneralRe: .NET graphical controls in VB 6 Pin
limeysontherun31-Oct-04 7:32
limeysontherun31-Oct-04 7:32 
GeneralRe: .NET graphical controls in VB 6 Pin
Dave Kreskowiak31-Oct-04 9:48
mveDave Kreskowiak31-Oct-04 9:48 
GeneralPrint file VB.Net Pin
partt28-Oct-04 6:49
partt28-Oct-04 6:49 
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak28-Oct-04 16:33
mveDave Kreskowiak28-Oct-04 16:33 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 2:41
Mekong River2-Nov-04 2:41 
GeneralRe: Print file VB.Net Pin
Dave Kreskowiak2-Nov-04 8:04
mveDave Kreskowiak2-Nov-04 8:04 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 13:48
Mekong River2-Nov-04 13:48 
GeneralRe: Print file VB.Net Pin
Mekong River2-Nov-04 17:24
Mekong River2-Nov-04 17:24 
GeneralVisio ActiveX Drawing Control Pin
pantera728-Oct-04 5:31
pantera728-Oct-04 5:31 
GeneralData Grid Paging Pin
rjcarney28-Oct-04 2:38
rjcarney28-Oct-04 2:38 
GeneralRe: Data Grid Paging Pin
Mekong River31-Oct-04 22:15
Mekong River31-Oct-04 22:15 

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.