alij's Q&A profile
Visual C# combo box display tables
hi can someone please tell me how to display all tables from some database in a combobox using ADO.NET. thanx I have recently been learning a lot about how to pull metadata and information from a database using ADO.NET so any one of the following posts on my blog can help you. 1. Getting a List of Tables in a Database Using INFORMATION_SCHEMA.Tables http://davidhayden.com/blog/dave/archive/2006/01/31/2781.aspx 2. You can use GetSchema, which is new in ADO.NET 2.0: http://davidhayden.com/blog/dave/archive/2006/01/15/2734.aspx 3. You can explore all the possibilities of SQL Server Manage Objects. ...Show All
SQL Server How to view Time Series Chart in in Reportting Services
i have a Time Series mining model. I want to view the chart in Reporting Services. Help me!!!!!! Check out this article on MSDN. It does a little more than you want (e.g. forecasting on the fly at report rendering time), but you can change it to just produce the response you need from the model. You can get the training data from the model by using SELECT * FROM <model>.CASES ...Show All
Microsoft ISV Community Center Forums Difference between FORMS and CONTROL TOOLBOX
Hello there, my questions goes to the difference between using the FORM TOOLBAR or the CONTROL TOOLBOX When do I have to use each one Are they both Visual Basic for Applications It is the same SAVING A MACRO and CREATE ONE in the Editor The difference between programming in a SHEET, MODULE or a USER FORM I have just started today with VB, I am used working with MATLAB (Engineering Program) but in most organizations used VBA, so eventhough I am an expert in MATLAB, I have to change. P.D: Sorry for my terrible English, I am from Peru (LATIN AMERICA) so I guess I should be better with spanish. Can you answer my questions to: alex_ve ...Show All
Visual C# Can't get 100% code coverage
We're attempting to achieve 100% code coverage for a project, and we're having a hard time. On one particular class, it looks like all code is being covered, but our code coverage report says 12.5% is not being covered. I looked at the code, and one line is showing as partially covered, and I can't figure out why. I've included the code below. The line " if (disposing && (components != null )) " is colored blue, and everything else is colored green. I can't figure out why that one line would be only partially covered. Both conditions in the "if" are true, and so both should be being evaluated.&nb ...Show All
Windows Forms Customizing TableLayoutPanelDesigner
Hello, I'm developing a custom control that is to be used in a custom forms designer that I created. The control should have exactly two cells behaving like cells in a TableLayoutPanel, so I thought I'd build my control as an extension to TableLayoutPanel. Now I need to customize its designer, since I do not need all the design-time options that TableLayoutPanelDesigner offers. Problem is: TableLayoutPanelDesigner is an internal class, and can therefore not be inherited! Now I was wondering what my options are... I was thinking about developing a custom designer from scratch (extending from ParentControlDesigner). How to achieve ...Show All
SQL Server Date matching
I have done this twice now. I am sure I will do it again. I have a date dimension. Among other things the dimension contains columns for a meaningless id and raw date. If I want to translate a date to a the meaningless id for storage in a fact table, I use a look up component. All fine and dandy until I run the data flow and all of the look up's fail. Now what could be wrong with that I look at the redirected rows and for a split second think, what is wrong with that data Then it hits me. There is time information in the source and not in the date dimension. Wouldn't it be nice if I could match on just the date! Off I go to put in another ...Show All
.NET Development SoapOutputFilter Customization
Here is a DotNet webservice generated SOAP XML which calls a third-party Java webservice. As per the Server side (Java webservice) requirement I need to filter the Security->UsernameToken element so that I need to pass only the Username and Password. I am trying to remove the parameters Nonce and Created from the UsernameToken. Here is the DotNet code I use to generate the UsernameToken token = new UsernameToken( _sUserName, _sPassword, PasswordOption.SendPlainText ); ws.RequestSoapContext.Security.Tokens.Add( token ); This is what the SOAP call generated to be sent out to the third party Webservice. <wsse:Securi ...Show All
Visual Studio 2008 (Pre-release) WinFX CTP install issue
Cheers, I am posting to this group because I have not found any groupe dedicated to general WinFX issues. I am having problem installing WinFX January CTP. When I launch the install, the window with progress bar saying "Setup is loading installation components. This may take a minute or two." shows up, advances to 80 percent, and CPU usage jumps to 100%. It is impossible to kill the process. Task manager doesn't kill it, taskkill doesn't kill it, nor Process.Kill() from .NET framework. The only way to stop is to restart the machine. I've got the same problem with the Februrary CTP. The machine is WinXP Professional, with o ...Show All
Windows Forms List of Generic Collections? Trees?
Where is there a published list of generic collection classes available in Whidbey If there's no list available, are there any Tree classes such as red-black, AVL or b-trees I realize this is an old post, not sure if anyone is still monitoring it anymore or not but I wrote a generic implementation of an AVL tree that you are welcome ...Show All
.NET Development Access WMI to nated machine
Hi, I try test access WMI to a nated machine with the utility wbemtest and give me this error: error number "0x80070776", The object exporter specified was not found. I make the same test, with out the nat, and work fine. Anyone knows why this I cant access the WMI via a nated IP Thanks Is this problem only related to WMI Have you tried to access a share Run the MMC services snap-in and connect to the natted remote machine ...Show All
Visual Studio Express Editions CS0246: The type or namespace name 'Constants' could not be found
I'm using Visual Web Express and i'm including a c# file named Constants to access the common functionalities. The C# file is included in App_Code directory and when i access the c# file using the code below it shows the error: Compiler Error Message: CS0246: The type or namespace name 'Constants' could not be found (are you missing a using directive or an assembly reference ) public partial class _Default : System.Web.UI.Page Line 20: { Line 21: Constants cons = new Constants(); Line 22: ArrayList fileContents = new ArrayList(); Line 23: string connString = ""; What is the problem How to use the c# ...Show All
SQL Server Splitting a field with \
Hi all I have a column in the users table which has a \ separating the data: i.e. mainserver\johnsmith south\johnsmith west\johnsmith I need to create a column with the data after \ Thanks in advance And a 3rd ;-) SELECT RIGHT(SomeField,(CHARINDEX('\',REVERSE(SomeField)))-1) from #Test Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
Visual Basic How to write a sub for several checkboxes at once
Hello, I am brand new to visual basic, so please excuse me if this is an easy question. I have a form with several checkboxes. I want to make it so that if any checkbox is checked, its label goes from gray to black. I have figured out how to do it for one checkbox, but I can't figure out how to handle many at the same time. Here is what I have so far: Private Sub sidingStyle1Include_cb_CheckedChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sidingStyle1Include_cb.CheckedChanged If (Style1Include_cb.Checked = True ) Then Style1Include_cb.ForeColor = Color.Black ' If CheckBox is u ...Show All
SQL Server Problem inserting data in SQL express
Hello everybody I'm working with a database and trying to add data to the database with the next stameny: INSERT INTO table VALUES ('value1') but the result of doing this, even with the Management studio, is the value value1 with one space at the end. It is like 'value1 ' Any clue Thank you very much and greetings from spain. Santiago Hi, Most likely your field declared as CHAR(7), not VARCHAR(7). Length of your string is 6 characters and for the CHAR types SQL Server fills rest of the string with the spaces. This is by-design. If you need a value without spaces, then you would need to ...Show All
Visual C++ Link options to build dll from static lib
I have a standard VC6 static lib project that simply contains some source code c++ files, compiles them into object files and then links to create a static lib. I would like to create a dll which contains the code in the static lib. If I create an empty dll project and supply the static lib name to the dll link parameters it does not "pull the code" in from the static lib - I guess the linker is just using it to resolve references. As there is no other code in the dll project there are no references to resolve and the dll just contains the bare minimum VC runtime code, but none of mine. If however I supply each of the object ...Show All
