JOSE3007's Q&A profile
Windows Forms Please tell about this exception 'A generic error occurred in GDI+. '
Hi I got this exception while dragging.Could anybody tell me the reason for such an exception.Any ideas to get rid of this Stack trace is here A generic error occurred in GDI+. thrown in Void CheckErrorStatus(Int32) at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.FillRegion(Brush brush, Region region) Thanks in advance Hi I was getting that exception when closing the form that i am paiting on it. before closing i will stop drawing on form. can you help me ...Show All
Software Development for Windows Vista Custom ActivityValidator crashes VS.NET
Hello, I have Jan CTP and I am building a new activity validator for my custom activity. According to several articles I write the following code: public override ValidationErrorCollection ValidateProperties(ValidationManager manager, object obj) { MyActivity activity = obj as MyActivity; if (activity == null) { throw new InvalidOperationException("the parameter obj is not of type MyActivity"); } ValidationErrorCollection errors = base.Validate(manager, obj); // ... check all parameters return errors; } Whe I build the solution the editor crashes. I have to change the line ValidationErrorCo ...Show All
Visual Studio ToolboxItem attribute not honored by AutoToolboxService in VS 2005
The service that automatically creates toolbox items is not using the correct class: it ignores the ToolboxItemAttribute on the component that specifies which ToolboxItem-derived class to use, and instead creates a ToolboxManagerToolboxItem. The result is a bunch of unusable Toolbox items. We have already logic to populate the toolbox with a correct ToolboxItem whenever the designed class is opened in our graphical root designer. So we have good toolbox items placed there, in that circumstance. What we need: How to disable the AutoToolboxService for a Type If there is no way to disable it, how to get it to honor the ToolboxI ...Show All
Windows Forms oleDbDataAdapter and Updating
I am using an oleDbDataAdapter and a dataset. When I use this code to insert a new record, the record instantly is included in the dataset.... this .dataSet11.tblDVD.AddtblDVDRow(field1, field2 ); this .oleDbDataAdapter1.Update( this .dataSet11, "myTable"); this .dataSet11.AcceptChanges(); But, when I use this code to update a record, the changes are in the database, but NOT the dataset.... this .oleDbDataAdapter1.UpdateCommand.CommandText = sql; this .oleDbConnection1.Open(); this .oleDbDataAdapter1.UpdateCommand.ExecuteNonQuery(); this .oleDbDataAdapter1.Fill(dataSet11); this .oleDbConnection1.Close ...Show All
Visual C++ GDI+ : Drawing objects over TabControl
Hi, I've been working my way around GDI+ for a couple of weeks now. I made a little application where user can choose among several shapes and then move/place chosen shape using mouse, building this way a customized furniture set. The area where user can place each shape chosen is delimited by a panel control for which I defined the background color as having transparent. Everything is going smooth but... As second step, I added a tab control in order to have in first tab, the drawing area where use can place graphically each piece chosen and a second tab, the estimate or cost list of his customized furniture set. My problem is that ...Show All
Visual C++ Error when trying to run apps on other computers
Hi! I've just switched to Visual C++ Express Beta. All my apps compile and work well, that's on My PC only! Whenever I move my app to another PC and try to run it It gives me this wierd error: "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this program" . Am I doing something wrong. Am I not getting some files that should be with my apps, or am I not setting the linker correctly Thanks in advance! Ok, you need to run a dependency check on the .dlls that the program uses. Most likely you need the umm...MFC47D.dll or somet ...Show All
SQL Server Data Flow Source for dbf (DBASE IV) files
We're trying to read DBASE IV files as a source, but can't find any providers for that format. Will these be included in the final release Is there another way DBASE has always been supported, so it's kinda stranged. Thanks, Dirk Has anyone had any trouble moving a package using a OLE DB Connection Manager reading DBASE IV files While developing I never had a problem, the confiugration string described here worked just fine. Now I'm finding as I move my package to production I can't access any of the files. I will always get a error as follows... The AcquireConnection method call to the connection ma ...Show All
Windows Forms Image in a TextBox ?
Hello, is it possible to put an image in a textbox If not is there another alternative Thanks add a picture box to the controls collection of the textbox. ...Show All
Windows Forms sort datagrid column like windows explorer.
Hi All, I want to sort datagrid like windows explorer. In windows explorer they sort folders and files separately. I want to add that functionality to datagrid. is it possible to add that functionality to datagrid Thanks Mogli use a DataView in you DataGridView, you'll be able to specify multiple sorts like DataView.Sort ="Type ASC, Folders ASC, Files, ASC" whereas Type will be folder or file, there you will have a more convenient presentation. ...Show All
Visual Studio 2008 (Pre-release) Object-oriented network database
Hi, All! I am Ukrainian scientific researcher and developer. I am developing object-oriented network knowledge database which is based on object-oriented database engine. I already implemented .NET 1.1 support. It's very cool that MS devolops declarative object query language for C#. I hope I'll be able to integrate LINQ features into my engine. Now I have to use three fields to store object soft pointers. One for object handle; One for wrapper instance to pin the object instance in memory; and One for instance of user object. I want to hide implementation details from end user. To make this I need some kin ...Show All
Visual Studio Team System Error 32000 During Installation of TFS Beta 2
I've done some searching but can't find a resolution for this issue yet. I've tried uninstalling ADAM, rebooting, and restarting the install. No go. During the installation of TFS, I get the following error: "Error 32000. The commandline "(temp)\getadminport.exe /vstf" returned non-zero value: 1" where "temp" is my local user's temp folder. When I run getadminport.exe thru the command line myself, I see this: Setting NTAuthenticationProviders for VSTFWeb... Searching VSTFWeb IIS://localhost/w3svc/1 ==> Default Web Site IIS://localhost/w3svc/1253343209 ==> DirectServices IIS://localhost/w3svc/1958305279 ==> *company name here* II ...Show All
Visual Studio Tools for Office Adding an outlook toolbar button
Using VSTO 2005 and VB 2005 I want to add a toolbar button (or a custom button with an image icon) to Outlook (Programmatically when outlook starts may be inside ThisApplication_Startup procedure ) and when a user click on that button do some e-mail processing. Any sample code c_shah, Download the Outlook Add-in Samples for Visual Studio 2005 Tools for Office sample package. This sample is the one you probably are interested in: ShortcutBar This C# sample illustrates how an add-in can add a custom command bar to the Outlook user interface and add a series of buttons to the custom command bar. ...Show All
Visual C++ Application will not launch when double clicking on file.
Hello there, I am writing C++ applications using MFC on Visual Studio .NET 2003. My app has several list ctrls (class CListCtrl) which are populated by data from a serialized file. If I launch the application first and then Open a file everything works fine and the list ctrls populate properly. If I launch the app by double clicking on one of it's files I get an assertion failure as soon as the code trys to access the list ctrls. Here's where the assertion failure occurs: _AFXCMN_INLINE BOOL CListCtrl::SetBkColor(COLORREF cr) { ASSERT(::IsWindow(m_hWnd)); return (BOOL) ::SendMessage(m_hWnd, LVM_SETBKCOLOR, 0, cr); } W ...Show All
SQL Server SQL 2005 Developer Installation Problem (WMI Permission)
I am getting following error from SQL 2005 Developer installation. " SQL Server Setup failed to modify security permissions on WMI namespace \\.\root\Microsoft\SqlServer\ServerEvents\SQL2K5 . To proceed, verify that the account and domain running SQL Server Setup exist, that the account running SQL Server Setup has administrator privileges, and that the WMI namespace exists on the destination drive." More information about my box. - Account I am using to install is an administrator account. - Windows XP SP2. - wmimgmt.msc: browsed to \root\Microsoft\SqlServer\ServerEvents and I see MSSQLSQLSERVER and SQLEXPRESS. - I had June CTP ins ...Show All
.NET Development Networkstream & TCPClient - write does not throw IOException when server goes down.
Hello all, I encountered a strange problem. I use a TCPClient to send messages to a TCP Server (by Network stream's Write function) when the server is connected it all goes well, but when the server closes the connection I get IOException only on my second write! - the first write method is called as nothing had happened. I tried to give my TCPClient true on NoDelay and also fixed the SendBufferSize of the TCPClient to be exactly as my message size (163 bytes). nothing helped. please advise! thanks ahead hi, what about reading from the server when the server close connection itsends ...Show All
