JCakeC's Q&A profile
Windows Forms Custom Control With SelectedValue Property - How to determine correct "default" data type to return?
I have a custom control that has a SelectedValue property. It is basically a ComboBox control, if that helps. Anyway, I have a business object that I'm binding to this control. In some cases, the business object property that I'm binding to the control is a System.GUID, in other cases, it is a System.Int32 or System.String. My delimea is that if the custom control's internal _selectedValue member is Nothing, because the user never selected a value or the selection was cleared, I want to return a valid data type to my custom business object. So if I'm binding to a property on my business object that is a System.GUID an ...Show All
SQL Server SqlCePeplication.Synchronize
I am attempting to follow the example from VB.NET 2005 on synchronizing and SQL Database and an SQL Mobile 2005 db. I have verified that the PALM device (Treo running WM 5) when the device is connected to my desk top by using IE on the Palm to browse to the shared Folder I set up with IIS and the Configuration Web Synchronization Wizard. The error I get is "An incorrect or unsupported HTTP function call was made." and I have not been able to find any referiences to this error directly related to SQL M 05. Any help wil be greatly appreciated. Thanks Step 1 in testing replication or RDA ...Show All
Windows Forms exe file creation
hi, i want to create a stand alone exe of my windows application. After creating a windows application I simply copied the exe file found in the "bin" directory much to my dismay that the file reqires .net v 1.1 when tried running in a different machine. I am at loss regarding how to create exe .. Any of you have any suggestions Varun ...Show All
Visual Studio Team System Project creation failing with error "The identity [Project Name]\Project Administrators is not a recognized identity. "
Error The identity [Test]\Project Administrators is not a recognized identity. Explanation The identity [Test]\Project Administrators is not a recognized identity. User Action Warning TF30144: The New Team Project Wizard attempted to roll back all of the steps taken to this point but was unsuccessful. Contact your Team Foundation Server administrator for further instructions. Here is what Team Project Creation log file says.... 10/20/2005 1:56:17 PM | Module: ELeadServiceMediator | Team Foundation Server proxy retrieved | Completion time: 0 seconds 10/20/2005 1:56:17 PM | Module: Wizard | Retrieved IAuthorizationSer ...Show All
Windows Forms How can I change text of button in Form1 from Form2 ??????
Hi, How can I change button1->text in Form1 from Form2 please reply, and sorry for my bad english. thx juvi Thanks for replying so quickly, but I am new to visual c++ and windows forms and it would be really helpfull, if somebody could send me an example project written in c++, so that I can easily understand it... balazssarreti@gmx.at thx juvi ...Show All
SQL Server nVarCharMax SMO Create field
Download the spk1 with SQL Server 2005 Express. http://msdn.microsoft.com/sql/express The spk1 was correct the problem. ...Show All
Windows Forms Forms-only components
Hello everyone, I was wondering if it is possible to do the following and it is, how to do it. I have a component but that particular component should be added only to a form. People should not be able to add it to an user control. I am afraid that I do not know of any automatic method however if were to create an EventHandler for the ParentChanged event of it you could do something like this: void MyComponent_ParentChanged( object sender, EventArgs e) { if ( this .Parent is UserControl ) { this .Parent.Controls.Remove( this ); MessageB ...Show All
Visual C# C++/Win32 for the C# Programmer
Hello, My name is Vincent and I did not know what a semaphore was (until recently). Recently I've noticed (and it's been pointed out to me) that my lack of C++ and the resulting lack of intimate knowledge of Win32 is not helping me as I continue to dive deeper into C# (and as the language matures). Generics for instance have their roots in C++. Concurrent programming in .Net is all about the OS. I know and have studied the CLR abstraction of threading concepts (books, papers, code samples, etc) and have experience writing concurrent code but still I feel a little in the dark not knowing C++ and the intricacies of the OS. ...Show All
.NET Development Execute an Application an remote System C#
Hi, I have a question. How can I execute an Aplication on a remote machine in my LAN in C# Should I necessary use Server/Client with .Net Remoting(im the Administrator there also). Thanks a lot, Zero_Cool You could do the above or a lot of other things. I personally think that WMI is the exact thing that you want. http://msdn.microsoft.com/library/en-us/wmisdk/wmi/creating_processes_remotely.asp frame=true ...Show All
Visual C++ CDialog::DoModal asserting in CWnd::DestroyWindow
To Brian and Martin, who were involved in helping me out with this , please don't shout at me... This thread does follow on from that post - and I'm now investigating refactoring a static library which contains a few MFC classes into a shared DLL - using __declspec(dllexport) to export functions and classes that will be needed across all facets of the solution that need the shared functionality. I've looked all over the place for an answer to this question - and found loads of other people using MFC 6, 7 and 8 with similar problems. I'm not going to be naive enough to suggest that MFC has a bug - I'm well prepared for this being a s ...Show All
.NET Development "Speaking" with windows service
Hi all, I want to build a windows service that read data from external device through the COM port. How can to request data from the web service and how to send it parameters for certain functions on it. Please help. best regards... You used "windows service" in one sentence and "web service" in another. Was this discrepency on purpose I believe reading from a COM port is done through the System.IO.Ports.SerialPort (new to v2.0 of the framework). If you want to communicate with the windows service, you can do several things. Some suggestions could be to use Remoting or S ...Show All
Visual Basic Save a Form
How can you save a form in VB ...Show All
SQL Server File Connector w/ Execute Package Task Expression Bug?
Hi. We are trying to 'drive' the list of package to be executed by placing the package file names in an external datasource (a flat file). The idea being that the end user can modify the file to switch on / off the packages to execute or modify the order they are executed without having to use the Visual Studio IDE. We've gone about this by the following: 1) Read the external datasource into a recordset using a dataflow task. 2) Used a foreach loop to iterate the recordset, saving the value in a package scope variable so we can use it later on. 3) Within the loop there is a Execute Package Task which ha ...Show All
Visual C# Pass variables to form2 forom form1 using form 2 constructor
I have following error System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." I am trying to send values from form1 to properties of form2. I try to acomplish this by calling form2 constructor, but when constructor is called i get this error. I tried to debug and checked if valid values are passed to construcor and answer is - yes. This is code from Form2.Designer.cs i grayed out VS generated code... my code is in blue namespace CoinToss { partial class Form2 { /// <summary> ...Show All
Visual Studio Express Editions Bookmarks window
I can't work out how to open the bookmarks window in Visual Studio 2005 beta -- it's not there in the view menu, and there's no View.Bookmarks entry in the keyboard configuration. I can still set bookmarks by enabling the text editing toolbar, but I can't associate any text with them. Is it there at all How do I open it TIA. Tim In Visual Studio 2005 Beta 2, Bookmarks window may not visible depending of your settings. You may always display it by using Ctrl+W,B or View > Command Window, then type 'View.BookmarkWindow' in command window. Pietolit ...Show All
