sutorius's Q&A profile
.NET Development Accesss Properties of Object at Runtime
I have to access Properties of an Object at rumtime, that means I do not really know the type of the Object. I do not konw which class it declared with. But I have to access all the properties of it, including its value and the type of properties. I would like to access it similar with Access Hashtable. Does it possible in Dot Net / C# Cheers The .NET feature you want to use is called Reflection. Basically, this allows you to query an object to find out what properties and methods it has, and to access them. If you google "C# reflection" you will get a ton of hits. There wasn't one that looked better t ...Show All
Visual FoxPro video control
While waiting for answers to my other post I tried to play with a video control. It gives me an error I cannot understand: cFileName = JUSTSTEM ( JUSTFNAME ( cLine )) THISFORM . O_VIDEOPLAYER1 . cfilename = cLine THISFORM . O_VIDEOPLAYER1 . playvideo ( cFileName , 100 , 100 ) cLine is the complete path to an .AVI file. The error is that "no parameter statement is found" Is anybody familiar with this control Thanks. Alex, While you're reading other:) go to VFP9 tools\task pane. Click more panes (chevron) and check solution samples. There at least 2 samples for playi ...Show All
Windows Forms Firing a button event after form has loaded
I've got a login screen which if ran with certain parameters logs the user into the product automatically. The problem I have is I try to simulate the pressing of the btnOK to make the product login but I've put this at the end of the load. This results in the screen not being fully drawn before the login starts so it stays half drawn for a few seconds and looks terrible. Ideas appreciated. Assuming VS 2005 you could try the following (I haven't tried these): A. Insert the statement "Application.DoEvents" just prior to you calling the btnOK event. This should let all queued wind ...Show All
Windows Live Developer Forums Messenger API call function?
I'm not really familiar with the messenger API, but is it possible to : - develope an application that can triggers the messenger API to make voice or video calls (using the messenger's native function) If so, which document describes how this is done -JM I am not faimilar with this, but several days ago I've just bumped into the following document. Real-time Communication (RTC) Client It's not directly related with the messenger. I am trynig to find some documents about the messenger and think you must know this. Windows Messenger Hope these can be of some help to you. ...Show All
SQL Server returned status value 2 error
Could someone please explain why I get the following errors I have them in 15 out of 20 packages and its always the same, I have tried, removing the columns from the data source but it just seems to jump then to another column. I have also tried redirecting the errors to a differnet error database but ALL the rows just seem to be errors then In event viewer I get no further information simply Event Type: Error Event Source: SQLISPackage Event Category: None Event ID: 12291 Date: 14/01/2006 Time: 14:57:56 User: Computer: Description: Package "Policy_PC" failed. [Flat ...Show All
Windows Forms DoubleClick event effect on all controls
Hi there I'm beginner and my problem is i want to make "DoubleClick" event effect on all controls like ContextMenuStrip you can see it's handle all the controls so is there any solution for this this is my code Private Sub Form1_DoubleClick( ByVal sender As Object , ByVal e As System.EventArgs) Handles _ Me .DoubleClick, FlowLayoutPanel1.DoubleClick, CpuGroupBox.DoubleClick, _ CpuGraphPanel.DoubleClick, CpuLabel.DoubleClick, _ RamGroupBox.DoubleClick, _ Label1.DoubleClick, TotalMemLabel.DoubleClick, Label2.DoubleClick, MemLabel.DoubleClick, _ TabControl1.DoubleClick, Time.DoubleClick, UpTime.DoubleClick, Label4 ...Show All
Windows Forms Making child controls of UserControl editable
I have a UserControl subclass, CompanyInfo, with various controls (Labels and Textboxes) on it. When I'm designing this class, I can edit the controls, move them around etc., which is fine. However, when I build CompanyInfo into a DLL, then add it to the Toolbox and drop it onto a form in the Designer, I can no longer edit and move the various controls that CompanyInfo encapsulates. I have tried setting these controls to public access, but that hasn't helped. I'm using C# in VS .NET 2003. Is there any way to get these child controls to be editable when my subclass is placed on a form If you have ANY solution to this problem, I'd be ha ...Show All
SQL Server Bubble chart x & Y axis titles disappear
When I invoke the use of either the X and/or Y axis' "Cross At" parameters in a bubble chart, the opposing axis title does not display upon rendering. Can someone please assist ...Show All
Windows Forms wm_copydata event to receive data in Form application
Hello I would like to use the wm_copydata event to receive data from other applications to my c++ .net application (VS2003). I already know how to send data, and it works fine with: static void add(char *msg) { HWND logwindow = FindWindow("TForm1", "Simulator"); if (logwindow == NULL) MessageBox(0, "mol", "mol", 0); COPYDATASTRUCT MyCDS; //MYREC MyRec; //StringCbCopy( MyRec.string, sizeof(MyRec.string), msg ); MyCDS.dwData = NULL;& ...Show All
Visual Studio Express Editions doubly linked list(urgent) help!
i don't know how to write the code of creating doubly linked list {i have given 3 elements that a predecessor(pointer), a successor(pointer), and data} I suggest you visit the following url: www.planetsourcecode.com On the top there is a search box, there you can type 'double linked list'. Select the one suited to you from the list. ...Show All
Windows Forms Documentation links
FYI- It looks like several of the documentation links at http://www.windowsforms.net/Terrarium/docs/ObjectModel/OrganismBase.(none).aspx give error messages. For example click on the 'Animal' class. oh, great! looks like it's been fixed. Thanks! ...Show All
Windows Forms Dynamic forms - generated at runtime from xml
Does anyone know if it's possible with C#/.NET to dynamically create windows forms at runtime. I plan to read an xml definition of the form (probably into a ADO.NET dataset) then build the form as the xml dictates - where the xml might look something like: <form> <height>150</height> <width>250</width> <controls> <tabcontrol>   ...Show All
SQL Server Conditional color in Matrix subtotal column
I am using matrix in my report with calculated fields, for example I have 3 columns : Actual amount, Budget and Variance. Variance should be in Red if it is negative. I can set up an expression to change the color on the row level, but not in Subtotal ot Total row. I cannot use sum of Fields! values, because Budget amount is also calculated field based on the "Category" value which is columns group on the matrix. So anyway, if I am trying to reference ReportItems!Variance.Value in Subtotal Level, it gives me an error about group scope. How can I access the cells values in subtotal and total group levels If anybody knows any t ...Show All
Windows Forms Chat room server/client program?
Does anyone have any idea of using web services to host a chatroom by using .NET framework for both server and client programs that will also function as crossing between different operating system such as Mac. and PC the support for windows form, System.Windows.Forms is still in work by those 20 odd mono developers. mono use for front en ...Show All
Windows Forms Crystal Report using Dataset
Hi, I'm having problems in using an report that uses a dataset . My other reports are not using datasets and they work fine . And this problem only occurs when i install my application in the clients. In my developing machine works fine. The error is "query error engine". All other reports works fine. I've even copied the dataset files ".xsd" ...Show All
