Topics
-
-
- Administrators
- Leaders
- 11 replies
- 1.2k views
Hi, I'm planning on having a BinaryLog class for all the logging I need and I would like to be able to attach objects and their events dynamically to different instances of my BinaryLogs. The logee events all implement iBinaryLogItem and typically look like Public Event NewData(ByVal Values As UnitData) ' UnitData is implementing iBinaryLogItem What I want to be able to do is something like... Dim oUnitLog as new BinaryLog ("c:\temp\Units.log") oUnitLog.Attach(objUnit(1), objUnit(1).NewData) Any object with an event matching the typical event above should be allowed to be attached. (Maybe I need some overloaded procedures as well further down the lane) This s…
Last reply by mhildner, -
-
-
- Administrators
- Leaders
- 13 replies
- 2k views
Files getting replaced I am using the following code to take a screenshot of the window when the user clicks a button but im having a problem.. when the form is closed and then reopened it will start over with the numbering and replace existing screenshots.. Dim Type As String Try If System.IO.File.Exists(Application.StartupPath & "\Sidekick Files\Settings\Screenshot.dat") = True Then Dim srType As System.IO.StreamReader = _ New System.IO.StreamReader(Application.StartupPath & "\Sidekick Files\Settings\Screenshot.dat") Dim line, vals() As String Do line = srT…
Last reply by Lanc1988, -
-
- 0 replies
- 1k views
DataGrid1 will display rows from tables in a DataSet. When the DataSet is created, a DataViewManager is also created. Let's say two tables are added to the DataSet, DataTable Summary and DataTable Support. The DataGrid1.DataSource property is set to the DataViewManager oject, but I'm having trouble assigning the DataGrid1.DataMember property. The difficulty is the end-user can apply filtering in the form of a DataColumn Expression at any time. Therefore, I need to have access to the RowFilter property at all times. I can't figure out a way to apply a DataColumn.Expression string to a RowFilter while the DataGrid.DataSource is assigned to a DataViewManager. Is…
Last reply by VagabondSW, -
- 3 replies
- 911 views
Ok, well basically, I have a main form, and another form, on the main form is a status bar, and what I want to do is, from the other form, when someone picks something out of a listbox, and presses the OK Button, then the text on one of the panels on the statusbar on the main form changes to what was picked in the listbox....can anyone help me with this?
Last reply by dcahrakos, -
- 2 replies
- 846 views
Hello All, I have an urgent problem. I have a site that I am developing, and part of the data being used for this project is one or more drawing or document files. These can be any number of formats (all web-displayable), such as TIF, JPG, PDF, DOC, XLS and so on. I am relying on IE (required platform) to launch the appropriate applciation (this is on a company Intranet) to display the documents. The problem is, say there are four TIF images for a particular order. The user wants to be able to select the drawing name from a dropdown list, click a "Display Drawing" button, and have each succesive image open in a NEW window, so after choosing the four drawings, …
Last reply by SteveoAtilla, -
-
- Leaders
- 4 replies
- 832 views
Hi, I need some help and i've been googling all night long and cannot find any decent examples or help on this matter im using C# I have a form (Main form) and several class files. One of these class/method file are executed on a seperate thread. Now, on the main form there is a label, which shows the user whats happening (like a status label) From the thread created, it will update the status text on the form. I would like to know how to make use of eventhandler/delegates (control.invoke) so that the label status can be updated safely from the thread method that wishes to update it. please, any help is most welcome but do give clear examples so I can…
Last reply by firehawk, -
-
-
- Leaders
- 2 replies
- 823 views
Hi volks, I'm working on an Word Add-In, with VSTO2005. Well no problems so far. What I want to do is : When the user installs the Add-In, an Icon should apear in the System Tray and stay there. And every time the user restarts the computer, the Icon should apear again. Should I make a Windows Service that starts automaticly or what ? Is there a better why to do that ? If so, how ? This is just a "nice to have" thing, so I am only intrested in 5 min. solutions. But if its realy good, I accept also 10 min solutions. Thanks !
Last reply by Wraith, -
-
- 1 reply
- 890 views
Okay - note that I am open to all kinds of suggestions to solve this problem, there are probably millions of different/better ways to solve this then what I am about to propose so please feel free. Given a DataGrid [dgTask] and a DataSet [ds], I want to populate the Datagrid with the information from the dataset (at this point usually you just set dgTask.DataSource=ds.Tables[0];) BUT I need to make one minor customization to the results - this is where I am not sure of HOW to proceed. The DataSet.Tables[0] (and consequently resulting Datagrid) looks like this: [CLIENTS] [ASSIGNMENTS] [sTATUS] [ELAPSED TIME] Client1 Assignment1 PAUSED 150 Client1 Assignme…
Last reply by penfold69, -
- 3 replies
- 1.5k 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
- 823 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
- 641 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
- 910 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
- 644 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
- 736 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
- 934 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, -
-
-
- Administrators
- Leaders
- *Experts*
- 9 replies
- 1.7k 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
- 875 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,
-
Who's Online 0 Members, 0 Anonymous, 62 Guests (See full list)
- There are no registered users currently online