Date/TImePicker Available In Windows Forms, Not Web Forms?

Feb 6, 2010

I am working on an assignment and just making my way all la de da like...suddenly I approach the end and I am rather happy since I then can start finals. This is where the problem arrises...This is what I am required to do... Create a Web user control that has text boxes and labels for inputting a person'sinformation. Integrate a DateTimePicker control in the web page for selecting dates. Create a procedure to calculate the number of days elapsed from the order date tothe estimated shipping date.I have the first part easily completed...no problems..Unfortunately the second part...the DateTimePicker control, since I am working on a web page, is not available to me...unless I have missed something but I can guarantee you it does not show up in the con

View 8 Replies


ADVERTISEMENT

Date Fields On Windows Forms VB2008?

Feb 23, 2009

I've got a data entry form with 3 date fields which can be null.When I open up the form the fields display as today's date when the value is null.I want to be able to display to the user that the value is null and not some spurious or misleading value.Any ideas on how I can do this?

View 3 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

Operator '*' Is Not Defined For Types 'System.Windows.Forms.VscrollBar' And 'Systems.Windows.Forms.VscrollBar

Oct 29, 2011

I am trying to use values from form1 in my project, in form2, but Im not sure how to do it. I've tried

txtboxTotal = (Form1.vsbLength * Form1.vsbWidth) * Pattern

But I get: operator '*' is not defined for types 'System.Windows.Forms.VscrollBar' and 'Systems.Windows.Forms.VscrollBar.'

View 14 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Forms :: Startup A Second Windows Forms Inside The Parent Form?

Aug 26, 2010

I would like to know if its possible to start up a second windows forms inside the parent form. Ex: A button is pressed and a new form is showed. I would like to keep that new form inside the parent form, and have it not be able to go outside the parent form.

View 2 Replies

Forms :: String Cannot Be Converted To System.windows.forms.label

Mar 31, 2010

I am writing a program for my A-level coursework But for some reason I got this build error this has never occurred to me before, I have no idea why I can't use string for the name of my form.

View 8 Replies

Forms :: Windows Forms App Copy A File To A Preset Folder?

Jan 9, 2012

a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.

View 1 Replies

Inherits System.Windows.Forms.Form Is Missing In New Forms?

Mar 5, 2012

When I add a new, empty form to my VB.NET VS9 project, the linenherits System.Windows.Forms.Formis missing.What am I doing wrong here?I thought it would be added automatically.I experienced that some thing get weird if this line is not there (Form_Load is not firing, I think).

View 3 Replies

Forms :: Command Line Args In Windows Forms?

Aug 2, 2010

I was playing a game recently and saw that they could use args in the shortcut, and I decided to try to impliment this into my application...so far, I got: (runs this sub on load)

Sub startup_args()
If Environment.GetCommandLineArgs.Contains("+game") Then
Dim path As Array = Environment.GetCommandLineArgs

[code]....

just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:

If Evnironment.GetCommandLineArgs.Contains("+game") Then
Dim path as string = Environment.GetCommandLineArgs.tostring
MsgBox(path)

[code]....

but that returned the value "SString.Array[]"...

View 7 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

Sharing Business Logic Between Windows Forms And Web Forms?

Feb 4, 2010

My question is, am I able to share a business logic layer seemlessly between the two presentation layers or is there anything I need to watch out for. I'd really like to not have any duplication of business logic, so any advice would be more than welcome.

View 3 Replies

Implicit Conversions From 'System.Windows.Forms.Control' To 'System.Windows.Forms.Webbrowser'

Sep 8, 2010

I have the code which checks if there is a selected tab

Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c

[Code]...

View 2 Replies

Forms :: Displaying Progress Bar On Windows Forms?

Apr 2, 2010

I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.

View 4 Replies

Unable To Cast Object Of Type 'System.Windows.Forms.Button' To Type 'System.Windows.Forms.TextBox'

Apr 28, 2009

I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..

View 4 Replies

Forms :: Error - An Unhandled Exception Of Type 'System.StackOverflowException' Occurred In System.Windows.Forms.dll

Apr 14, 2011

An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll it also says make sure you do not have infinate loop or infinate recursion il give all code in order that they are executed in Check the chechbox and it disables all irelevent stuff and populates the combobox

Private Sub CheckBox_Spray_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox_Spray.CheckedChanged
If Me.CheckBox_Spray.Checked = True Then

[code]....

View 4 Replies

Forms :: Associate Two Windows Forms?

Aug 9, 2010

In my VS-2008 (VB.Net) application, I am using a background worker to make my main form more responsive. In case of any error (in DoWork event) I m displaying the error on another form. In this case main form can�t be a parent of error form so if main form is clicked, error form go in the background (behind main form). I want to restrict the user to interact with the main form while error form is appearing. Is there any way to associate these two forms such that error form always appear in front of main form.

View 1 Replies

Forms :: New Date Doesn't Get Set Until User Has Already Selected A Date

Mar 10, 2009

I have a form that collects user parameters to print a report. There are two DateTimePickers to let the user select a date range for the report. The selection of a date range is optional so I set the From picker to a date before any data could be present. If the user wants to select a date range, the from field is set to a very old date so it takes a long time to get to any current dates. Whe I'd like to do is when the user drops down the picker, reset the date to today and let the user scroll from there.I tried the dropdown even in the picker, but the new date doesn't get set until the user has already selected a date. Any suggestions on how to get this type of UI behavior? Also any better suggestions to streamline the process?The main objective it to collect from and to dates from the user is they want to select them and collect wide ranging dates if the user doesn't enter any.

View 2 Replies

Error - Base Class 'System.Windows.Forms.Panel' Specified For Class 'MenuButton' Cannot Be Different From The Base Class 'System.Windows.Forms.UserControl'

Mar 12, 2010

When I do this

Public Class cInherits : Inherits Panel

I get this: Base class 'System.Windows.Forms.Panel' specified for class 'MenuButton' cannot be different from the base class 'System.Windows.Forms.UserControl' of one of its other partial types.

How do I inherit?

View 4 Replies

Winforms - How To Load Binary To Windows Media Player In Windows Forms

Jul 24, 2011

I've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).

View 1 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

Forms :: Disabling BackGround In Windows Application Same As Windows Cardspace

Sep 24, 2010

I am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.

View 1 Replies

Scroll In Windows Forms Treeview Only On Windows Server 2003

Apr 10, 2012

I have a problem with scroll in a treeview in a Windows forms application (Framework version 3.5).

The strange thing about the problem is that on Windows XP, Windows 7 and Windows 2008 the scroll works as excepted, but in Windows Server 2003 SP2 the scrolling doesn't work. Enable/disable Visual Styles doesn't seem to make a difference on Server 2003.

Steps to reproduce the error:

1. Add a treeview to a form and add x nr of root items (and 1 sub item to each item).

2. Expand a number of nodes. The non-standard thing here is that we are changing the node integral height because we display a usercontrol with the treenode (See example of the code below).

3. When you scroll afterwards, you cannot scroll to the bottom node. The scrollbar is all the way down, but we are not seeing the last node.

Public Shared Sub SetNModeHeight(ByVal Node As TreeNode, ByVal IntegralHeight As Integer)
'Create instance of tvitemex structure.

[Code]....

View 2 Replies

C# - Standard Windows Menu Bars In Windows Forms?

May 6, 2010

I noticed that adding a MenuStrip (from the Toolbox) to my form design doesn't yield a menu bar like many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar.Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.)

View 3 Replies

VB 2010 (Windows Forms Project) Run On The Windows 8 Platform?

Jun 21, 2011

will a VB 2010 (Windows Forms Project) run on the Windows 8 platform?

View 3 Replies

Forms :: Displaying Date As Unanswered Value

Sep 26, 2011

I have a datepicker control that displays an appointment date. This date may be nothing, but the datepicker always displays a date, understandable I suppose.There a plenty of occasions when I want a date to be null, and to display that status, how is this commonly handled in the user interface? I don't want to give up the nice functionality of the datapicker, but I need to somehow indicate that no date has yet been set.

View 3 Replies

Forms :: Showing Both A Start And End Date

Sep 28, 2010

I have the following

[Code]...

and as you can see, I am showing users the next available date open to them is determined with the value dteReturnValue.ToShortDateString .. but what I'd like to do is show the user both the start date and the end date, which will always be +7 days from the field in my database.

View 5 Replies

VS 2008 Passing Date Between Forms?

Mar 18, 2010

I have read many post and none of them worked for me. This is what im trying to do. I made a login box in form 3 and when the user types in his login or pass word both gets saved to different Variables and I want to send to form 2.

[Code]...

Also I was wondering If I made a variable in form 2 and I access it from form3 and what ever value is in form 3 gets sent to form 2?

View 22 Replies

Forms :: Access Remote Date And Time?

Aug 3, 2009

I have to develop a project by which my office employees can record their time to enter into the office and leave from the office. I have 10 PCs in my office. All PCs are under network environment. This project is highly related to date and time factor. All PCs are used by an individual employee and can not be restricted to change their own PCs local date and time. So I think my project took the date and time from a central server.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved