Topics
-
- 1 reply
- 908 views
I'm not sure how easy this is going to be to follow but... heres my problem. 1. User clicks button for new quiz 2. Application creates instance of Quiz class 3. The constructor of the Quiz class creates a wizard form (passing in itself so the wizard can change its properties) If the user clicks cancel on the wizard form I'd like to destroy the class so that the main application knows a quiz wasn't created. The way i'm currently doing it is to set a 'Cancel' property in the Quiz class, then back in the main form checking this property and setting the Quiz class = null if 'Cancel' = true. Has anybody got any suggestions of a better way of achieving this?
Last reply by Tygur, -
-
- Leaders
- 3 replies
- 1.1k views
My application modifys the contents of a text box during the leave event. I'd like for the user to be able to overide the update by pressing the control key when he leaves the text box. Ideas... TIA
Last reply by Mick Dugan, -
-
- 2 replies
- 775 views
Is there a way to "pad" the text in a datagrid so the text isn't completely jambed against the vertical border? I don't want to center the text, just move it over a bit.
Last reply by Mick Dugan, -
- 3 replies
- 1.5k views
I have a stream to read, which is like this: <Import> <Name>Fred Jones</Name> <Address>101 Main Street</Address> </Import> <Import> <Name>Fred Smith</Name> <Address>103 Front Street</Address> </Import> Obviously it is more complicated than that - I just have to read the first import then the next, into multiple datasets. If I don't know for sure that the first Node will be 'Import' (it could be 'Imports', 'Data', 'Feed', 'Contact') how can I tell the thing to take all of the Nodes with the start item of 'whatever' and read them?
Last reply by david7777, -
- 1 reply
- 894 views
I have an access database file with Table1 and would like to copy its rows to another database file with table TempTable1. With the statement below, I can run it without any problem. Insert Into TempTable1 (TempField1) Select Field1 From Table1 In 'c:\database.mdb' BUT if I set a password for database.mdb, then error occurs Not a valid password. Anybody know how to solve it?
Last reply by kejpa, -
- 2 replies
- 1.5k views
Hi All, What I am tring to find out is if it is possible to set a single columns width during runtime within a datagrid. For Example. I load the information straight from an Access database on the form load event. The datagrid has the PreferredColumnWidth set to 100. I want to change the second column width to 300. Is this possible???. Thanks in advance. :)
Last reply by SonicBoomAu, -
-
- Leaders
- 1 reply
- 1.4k views
Is there any quick and easy way to download or create a stream for a text file on the internet?
Last reply by snarfblam, -
-
- 3 replies
- 909 views
I have a program that receives (UDP) data then plays the correct audio file. I have added a timer that will ignore the incoming data and loop audio in a player. I am current ly doing this with a timer set at 500 milliseconds. Private Sub tmrTimedEvents_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles tmrTimedEvents.Elapsed Dim dTmp As Date Dim lTime As Long Dim lhour As Long, lminute As Long, lsecond As Long Dim CurrentDayStr = Format(System.DateTime.FromOADate(Today.ToOADate), "dddd") On Error Resume Next If Trim$(strTimeEvent(SE)) <> "" Then dTmp = CDate(strTime…
Last reply by ZeroEffect, -
- 1 reply
- 1.4k views
hello i am trying to add a new row to my dataset but one of my collumns in the dataset has an autonumber in it. So when i try to add a new row there is an error that says that the autonumber doesn't accept nulls. How can i insert a new row without having to type in the auto number?
Last reply by michael_hk, -
-
- *Experts*
- 1 reply
- 590 views
I'm just wondering how you guys (and girls) present a demonstration of an application for commercial purposes?
Last reply by DiverDan, -
-
- 1 reply
- 1.2k views
I want to make my form display properly on a pocket pc emulator as althought the form is very small in vb when i deploy it to the emulator i can only see about half of this form. I have tried changing its size and it doesnt seem to effect the size that is appears on the pocket pc ? I wish to use multiple forms as its for an assignment that i have already handed the design stage in so dont really want to change to tabs or whatever that has been mentioned to me. Any advice would be much appreciated. Many Thanks Zed
Last reply by ZedEx, -
-
- Administrators
- 2 replies
- 986 views
I have the following code that places some text for a specific day on the Calendar control: <code> strNewDescription = ControlChars.NewLine & strNewDescription Dim lblTimeOffDay As Label = New Label lblTimeOffDay.Text = strNewDescription e.Cell.Controls.Add(lblTimeOffDay) </code> However, I would like the text to begin on a new line UNDERNEATH the day number shown in the calendar. So, instead of having something like this: 14 abc I would like it to read like this: 14 abc I tried placing the ControlChars.NewLine and ControlChars.CrLf and also "\n" to the beginning of the description, bu…
Last reply by wsyeager, -
-
- 1 reply
- 3k views
Hi, I have a ASPX form ,which is basically a data entry form. User has to enter details about a news item. One field of the form requires the user to select a company name. I cannot use a Dropdownlist for this field because I want to display more than one field (company name , Country,City). What I thought , was to have a button next to the Company field which when clicked opens a Popup window that displays all the companies (with Country and City) in a datagrid. When User selects the Company name , it pass back the Company name,Country and City back to the parent form and close the pop-up form. I know how to open the pop-up form. But how do I return the three v…
Last reply by tate, -
- 1 reply
- 851 views
hi i have a function who returns a string as a xml format but i don't know how to use this xml how can i display that? with datalist? label? table? i have tried the datalist but i'm lost... thanks in advance
Last reply by david7777, -
- 2 replies
- 1.1k views
I am currently developing a website which will generate all income from advertising. I need advice on the best ad management system to use. Should I go third party, or use an asp.net solution? Obviously a simple add rotator will not do. I need to be able to manage impressions and all that... Any advice would be much appreciated!
Last reply by david7777, -
- 1 reply
- 1.1k views
Can I check uploaded file type? This is my code: if (file.ContentType=="application/vnd.ms-excel") But if I rename a txt file to .xls it not run :( Thankss Breakdance
Last reply by kahlua001, -
-
- Administrators
- 1 reply
- 1.6k views
Hi all ISS has been deleted from a machine which has visual studio.net 2003, can I simple reinstall IIS without having to uninstall and reinstalling VS.NET afterwards. OR if I simple install IIS am I up the creek without a paddle??? Mike55
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 5 replies
- 955 views
Every now and then my program comes up with a unhandled exception win32 error and the program will be closed. I have Try/Catch statements in every routine and even in the Sub Main so the error should be caught there at least. Also the error sometimes appear about five minutes after the screen has been left, I go and make a cup of tea and I come back and the error is being shown on the screen. :eek: I have just changed the default setting in Exceptions to Break into debugger instead of continue and when I run the program exceptions are being displayed that are not picked up by the Try/Catch statements. The errors are coming from the Infragistics UltraWinGrid control…
Last reply by Data Danger, -
-
-
- Leaders
- 2 replies
- 3.4k views
if i have a class that has attributes: attr01, attr02, ... attr16, and i want to check a same thing for each of these attributes it would be convenient if i can evaluate his string : for(int i=1; i<=16; i++) { if(eval["myClass.attr" + i] ..... } i know System.Controls("...") from VBA hat evaluate strings to commands. Are there something like this in C# too? thx in advance.
Last reply by ThienZ, -
-
-
- Administrators
- 5 replies
- 1k views
Basically, what I'm trying to do, is write a basic scheduler to use cygwin's scp utility to copy files to a Unix box. I have a console application which accepts a file path as a parameter, and calls cygwin's scp.exe to transfer the file. If I call this console application from the command line, or a dos-prompt, the file transfers succesfully, without need of interaction, as I have the id_dsa keys correctly set up. If I call this console app from a Windows service, which runs under my domain account, the process accepts the parameter correctly, launches the scp utility, but never completes. Debugging the console application by writing to a text file, I can see that…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 88 Guests (See full list)
- There are no registered users currently online