Topics
-
- 3 replies
- 1.6k views
Given a DataSet [ds] that will be used to populate a DataGrid [dgTasks] as DataSource which has the following format: ds.Tables[0]: [CLIENT] [ASSIGNMENT] [ELAPSED TIME] [FORMATTED ELAPSED] Client1 Assignment1 150 XX:XX:XX Client1 Assignment2 500 XX:XX:XX Client2 Assignment1 456009 XX:XX:XX In my DataGrid [dgTasks] I want to display the columns [CLIENT], [ASSIGNMENT], and [FORMATTED ELAPSED] therefore omitting the [ELAPSED TIME] column that was used to generate the [FORMATTED ELAPSED] column. Now if I rememeber correctly it is very difficult to hide a column once the dataset it attached (datasource) to the Datagrid - so I thought of a good soluti…
Last reply by penfold69, -
-
- Leaders
- 4 replies
- 853 views
hi to all, I'm making a windows application and i want it to be more visual and to be standard like windows, o users will easaly toogle through the application. So what i wanted to do is something like a window in windows in title mode. There woukd be icons (folders) where the user could double click and enter a certain area. how can i have something like that? thx to all
Last reply by penfold69, -
-
- 0 replies
- 662 views
Wow, sweet 16 and never been kissed. But you are a dog after all... :p
Last reply by sgt_pinky, -
- 1 reply
- 1.2k views
Im trying to install directx 9.0 c , but i simply cant . When i run the installer it just says " The installed components are ready to use". This is the report on directx.log : 09/10/05 23:24:44: dsetup32: === SetupForDirectX() start === 09/10/05 23:24:44: dsetup32: DXSetupCommand = 0. 09/10/05 23:24:44: DXSetup: DSetupCallback(): Phase = 0, Steps = 0 09/10/05 23:24:44: dsetup32: DirectXSetupIsJapanese == 0 09/10/05 23:24:44: dsetup32: DirectXSetupIsJapanNec == 0 09/10/05 23:24:44: dsetup32: Installing on WinXP SP2 09/10/05 23:24:44: dsetup32: Installation ended with value 0 = Installation succeeded 09/10/05 23:24:44: DXSetup: WM_APP_ENDINSTALL 09/10/05 23:24…
Last reply by sgt_pinky, -
-
- Administrators
- 1 reply
- 7.6k views
Given a Double value (dElapsedTime) which represents the amount of SECONDS elasped - what I need is to represent this value in the form hh:mm:ss (hour:minute:second). Problem is I have noticed TimeSpan doesn't support such formatting (TimeSpan is d.hh:mm:ss, I don't want the "Days" - this is used to caluclate the amount oh hours a project was worked on for billing purposes). Also - DateTime doesn't seem to be able to represent this correctly - I can get it in the hh:mm:Ss format (.ToString("HH:mm:ss");) BUT this represent a DateTime so if the HOURS go over 24hours it starts back at 0 instead of counting... (obviously this won't work) So I need a way to convert SECOND…
Last reply by PlausiblyDamp,
-
-
-
- Administrators
- 1 reply
- 945 views
Values of textbox are not being saved in the following routine: Function FillTextBox(ByRef TextBox As TextBox, ByVal Value As Object) If Not IsDBNull(Value) Then TextBox.Text = Value Else TextBox.Text = "" End If End Function Private Sub EditForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Poluate text box. FillTextBox(txtAccountName, TOverride.Account_Name) FillTextBox(txtPolicyNumber, TOverride.PolicyNumber) FillTextBox(txtUserId, TOverride.ModifiedUID) End Sub
Last reply by PlausiblyDamp,
-
-
- 0 replies
- 667 views
I have code in this method that uses the system colors to create other colors for a gradient using ControlPaint.(Light/Dark). However, this method seems to fire before the system color changes. Any advice?
Last reply by IceAzul, -
- 0 replies
- 763 views
I'm making this posting here because it was some of you fine folks who first pointed out SourceGreat Vault to me and I thought perhaps some of you who use the product might be able to help clue me in on something. I have been handed some source code files for a project that I know had to have been tied in to VSS and I am pretty certain that the VSS bindings were not removed from the source code files before they were handed off to me. I do have access to VSS if necessary, but after working with SourceGear Vault for some time now I really like it and don't really want to have to change or use two separate source control systems. Am I oversimplifying things if I ju…
Last reply by irasmith, -
-
- Leaders
- 4 replies
- 1k views
I found one particular problem in ur implementation, it's not ur fault but the following codes: Dim t As DateTime t = Now.AddMilliseconds(150) Do Application.DoEvents() Loop While t > Now eats up 99% of my CPU, is there anyway to improvise it? The attachment come with it might be clearer for wat i'm doing. DeskPet_V0[1].1.zip
Last reply by snarfblam,
-
-
-
- Leaders
- Administrators
- *Experts*
- 9 replies
- 1.8k views
Are there a way to have typeless delegates ? For example delegate void VoidDelegate() delegate bool BoolDelegate(bool parm1, bool parm2) Take for example you want to call a function ProcessDelegate. and the parameter you want to transfer could either be a VoidDelegate or a BoolDelegate. Instead of writing two function with exactly the same contents except for one of the function has the type VoidDelegate. Is it possible to make the delegate typeless ? void ProcessDelegate( delegate could either be VoidDelegate or BoolDelegate) { }
Last reply by snarfblam,
-
-
-
- Administrators
- 5 replies
- 909 views
My code should explain whats going on so I will be breif in my explanation I have an ArrayList I have added to the arrayList from an another array I remove the list, it removes the name as I can see its results but the arrList count remains the same as though it hasnt been removed I assume that what it has done is simply remove the data from a an element and the element has a value now of zero but still will be counted So I used trim to Size of which I understood would then trim the ArrList down to elements only containing data Right? Anyway.... I am trying to add and remove and the counts reflect the change as well Help vbMarKO
Last reply by vbMarkO, -
-
- 2 replies
- 3.5k views
Hi, I need To open Compound File, is this possible in C#? Thanks
Last reply by RedLeader, -
- 7 replies
- 929 views
How to Create Months Sept to August on load OK, Here is what I have..... The reporting year for the reports to be generated are from September to August.... FOr example this Reporting year just started since its September so September 2005 - August 2006 is one reporting Year. Ok what I am needing to do is this; Lets say a User starts up my software for the first time and it goes through it preparation steps so the user can begin inputting data... this is what it does Step 1: Gathers User Personal Info Step 2: Checks to see what Year it is then Creates a Folder by the name of the Year ie; IF its 2006 then a Folder w…
Last reply by vbMarkO, -
- 5 replies
- 1.6k views
I am trying to add a dropdownlist to a web form and failing I have the following code: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim x As New DropDownList() With x .Font.Bold = True .Style.Add("position", "absolute") .Style.Add("left", "420px") .Style.Add("top", "50px") .Style.Add("Width", "250px") End With Controls.Add(x) End Sub I recieve the following message: Control '_ctl0' of type 'DropDownList' must be placed inside a form tag with runat=server. If I change: Dim x As New DropDownList(…
Last reply by bri189a, -
-
- Leaders
- 1 reply
- 852 views
How do I programatically set my OpenFileDialog (OFD) settings so that every time I open an OFD will be in for example, Thumbnails mode? You Know like Under View then details.
Last reply by dynamic_sysop,
-
-
-
- Leaders
- 3 replies
- 3.2k views
Hi, does anyone know how to make a chm file from a word document? It should be semi automatic, because the word file is still changing... I want to connect this chm file with HelpProvider later. thx in advance
Last reply by travisowens, -
-
-
- Administrators
- 4 replies
- 786 views
every once in awhile our app generates the following error.. it's not consistent but i'm not sure what is causing it. Does anyone have any insight? this is an asp.net/c# app. An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error. Time: 9/8/2005 10:38 AM The error occurred in: /RequestInspection.aspx User IP Address: xx.x.xx.xx Error Message: General network error. Check your network documentation. -------------------------------------------------------------------------------- Stack Trace: System.Data.SqlClient.SqlException: General network error. Ch…
Last reply by reagan123, -
-
- 2 replies
- 1.4k views
I have some code that says something like: ListView lv = ...; lv.BeginUpdate(); foreach (piece of data) { if (an appropriate row already exists) item.SubItems.Add("blah"); else item = lv.Items.Add("blah"); } lv.EndUpdate();[/Code] This used to work as expected in .NET 1.0/1.1. However, since I installed 2.0 Beta 2, the 'if' part never runs; every iteration always inserts a new row, even if I've actually already inserted the specified row. Surely, BeginUpdate/EndUpdate should only affect what's displayed, not what actually gets inserted into the ListView? Is this a bug? Cheers. :)
Last reply by _SBradley_, -
- 15 replies
- 2.9k views
Hi, Have a .CSV file, and I am basically doing a select all on the file to retrieve all the data. The file has a total of twelve rows, however when I do a Rows.count on the dataset I get a total of 23. The .CSV file is accessed using Microsoft Excel. The code that I am using to access the .CSV file is a follows: 'Read the data stored in the .CSV file into a dataset. Public Function readFromCSV(ByVal filetable As String, ByRef data As DataSet) As Boolean readFromCSV = True Dim ds As New DataSet Dim fileLocation As String Dim sql_select As String Dim obj_oledb_con As System.Data.Odbc.OdbcConnection Dim obj_oledb_da …
Last reply by mike55, -
- 2 replies
- 2.5k views
Hi Folks... Is it possible to use a relative Path to open a File with the System.IO.File ? In ASP.Net or similar Langs you can use .open("../../file.txt"). Do I have to use the absolut path to open a file in VB.Net, I can't even remeber how it was in VB6. Anyway if someone has a answer to my question or a better sugestion how to handle files let me know.
Last reply by Ryanshirt,
-
Who's Online 0 Members, 0 Anonymous, 82 Guests (See full list)
- There are no registered users currently online