Dr Cube's Q&A profile
SQL Server List all your connection managers
Hello, I'm building a custom task which has a property ConnectionManager which obviously allows you to select which connection manager you're goinng to use. I know how to get the list of connection managers but how do I make them appear in a combo-box in the properties pane Anyone got some code for that Hopefully this is fairly trivial for you developer types out there. Thanks Jamie Adam Tybor wrote: I don't know about dataflow comp ...Show All
Windows Forms Overriding the ToolStripContentPanel .........
I created a usercontrol and changed the derived class to ToolStripContainer, because I want to override the OnPaint and OnPaintBackground events of the ToolStripContentPanel. But, the only way I see so far is creating an event for OnPaint. How do you override the OnPaintBackground Do you create another usercontrol and derive from ToolStripContentPanel and replace the default one How do I solve this Thanks for your help!... ...Show All
Visual Basic GUID
How do I generate a GUID from vb express 2005 beta 2 I have search the internet but all I could find was "select guid from menu". This is not what I want. My program needs to generate a GUID from a button click. Thanks in advance, ...Show All
Visual Basic Tabbed Browsing in VB .Net
Hi, I have a question regarding tabbed browsing. I am writing my own custom web browser in vb .net studio 2005. I can create, dynamically at runtime, additonal tabs on a tab control, which will - in each - have a dedicated webbrowser control. So what will happen is 5 search engines will be searched and the results be placed in seperate webbrowsers under 5 dynamically-created tabs. The user can then tab throw each set of results. The pro ...Show All
Visual Studio Express Editions Cannot create a new project that opens startup form
Have been using vb 2005 express final now for a week or too. Have had no problems using and modifying example code and connecting to a MySQL database. However i am now trying to create a new project and no matter what form is selected under startup form nothing displays when code f5 is pressed. Message that build is ok in status bar screen refreshes and back to IDE. However existing projects work ok. Even creating a ...Show All
Windows Forms Datgridview / C# problem
Hi, I have classes: public class role { string _roleName; ... public string RoleName { ... } } public class person { int _age; string _firtstname; string _lastname; role _role; public role Role { ... } } I try bind properties to datagridview but (person) Role.RoleName doesn't work. Example: person p = new person(); p.FirstName="Niko"; p.LastName="Jalkanen"; role r=new role; r.RoleName="It-Designer"; p.Role=r; dataGridViewTextBoxColumn1.DataPro ...Show All
Windows Forms newbie question on combo box lookups
I have a dataset with two tables Parts and PartCategories. I created a relationship in the schema designer with Parts as the many table. Part Categories is the one table. PartCategories has 2 fields PartCateID and PartCateDesc. Parts has PartCateID as& ...Show All
SQL Server SetDefaultInitFields "TextBody" for Stored Procedure
Following the suggestion in Michael Wories column, have found really nice performance optimization using SetDefaultInitFields (in my case, for the datatype parameter of columns). Tried to use SetDefaultInitFields for the "TextBody" parameter of Stored Procedures, and I get an error saying that "TextBody" is not a valid property for a StoredProcedure. Any thoughts on what might be the issue Thanks! Andy B ...Show All
SQL Server SQL Express Edition licensing issue
Hello Guys, Just would like to check with you guys if SQL Express Edition is allowed to be used for web hosting company to server his client I asked the same question, but didn't received any response... So please, someone knows something about this ...Show All
Visual Basic Programming Challenge since u re great guy
For this challenge, you'll need to write an algorithm to find your way from one corner of a field to another as fast as possible. You will be given a starting point and an ending point, and you'll need to tell us how long it will take you to get from start to finish. The field is a grid, and you can only move up, down, left and right. Each move of one grid square takes 1 second. Unfortunately, there's also walls in the way.....the rest is her ...Show All
SQL Server XMLA and Deadlocks
I have tested this on the RTM, SP1 and SP1+hotfixes and the problem is the same in all environments. What I am doing is using the "Analysis Services Execute DDL Task" in an SSIS package to execute different XMLA files. These files drop items in Analysis Services and then recreates them. What is happening is that in about one out of three times the package will hang at some stage in the process of running the files, Analysis Services be ...Show All
Visual C++ missing ';' before 'type', _CRT_SECURE_NO_DEPRECATE
My file is named "main.c" and in her is: #include <stdio.h> #include <limits.h> # define _CRT_SECURE_NO_DEPRECATE int main() { short h,m,s,h1,m1,s1; unsigned long n,temp1,temp2; printf( "Bitte Stunden eingeben im Bereich 0-23!\n" ); scanf( "%hd" ,&h); while (h<0 || h>23) { printf( "Falscher Wert fur Stunden!\nBitte Stunden erneut im Bereich 0-23 eingeben!\ ...Show All
.NET Development Project Save/Load
In my project, the user has the ability to save the work he has done to a file. As the project got bigger so did the information in the file and I ended up with multiple type of file and version. I wanted to know if there is a 'good practice' involving saving and loading file (multiple type [txt, xml], multiple version). My business class must not know that there are multiple file versions. ...Show All
Visual Studio Team System TypeNamesShouldNotMatchNamespaces AKA CA1724
This rule seems overly constraining. With namespaces (and the advent of the global namespace in C#) and some of the names of the nested namespaces in the FX, it seems to me this rule will generate much noise (e.g. the following nested FX namespaces are really general and could apply to many different projects/applications: Common, Services, Collections, Design, Util, Resources, IO, Configuration, Internal). "Design" is a nested fram ...Show All
Visual Studio 2008 (Pre-release) Request
For the next CTP PLEASE provide a way to disable Cider. The designer is sufficiently broken when working with real files that it is far more trouble than it is worth. The flood of errors it generates completely obscures the real errors in a build. I just had it take 2 minutes to simply decide it could not handle my main window. Until it is more stable and probably more performant please either provide the VS enhancements separate form Cider, or ...Show All
