ThomasJaeger's Q&A profile
Windows Forms Image not shown in Treeview Control Node
Hi, I have a windows application developed in C#.NET , Framework 2.0, and it's output type is Windows Application . This windows application contain only one form and in that form there is only a treeview control and a imagelist with two images. Now I have changed that project's output type to Class Library And added the class library reference to another windows application. From this new windows application I call the form (with Treeview control) which is now inside the class library. Well, the form is getting invoked with the treeview contol but without any image in its node. I tried to assign that form_Load event, still then it is not showing any image in the tree node. But in Windows Application type it is shown. Is it because I ...Show All
Visual C++ dynamically compiling C++
Is there anyway to dynamically compile C++ files in visual studio 8 I know i can use codedom namespace for compiling C# sources but im wondering if there is a way to do the same with C++ source files. after adding a refrence to cppcodeprovider.dll in my project and using microsoft.visualC, i used this piece of code but at the last line i catch an exception that says "method is not implements". ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Microsoft.VisualC.CppCodeProvider7 t = new CppCodeProvider7(); CompilerParameters cp = new CompilerParameters(); t.CompileAssemblyFromSource(cp, srcCode); cp.GenerateExecutable = true; cp ...Show All
SQL Server Automating SQL Profiler
The powers at be have decided that they would like to automatically run a trace on one of our analysis servers when it processes a cube in the early hours of the morning. Now I have no problem creating a SQL Profile to run and store the results in a database table for them, but I have no idea how to automate it so that it runs everyday, any help would be greatly appreciated. My apologises for posting this in forums let's search in the internet with your subject. you will find a lot of articles. this is one of them. http://www.lazydba.com/sql/1__18318.html ...Show All
Visual Basic PrintForm & DataGridView - 2 bugs
If you try to use the PrintForm command of a form inside which there is the DataGridView object you'll nothice the following bugs: - The data grid view object is redraw before printing supposing the the calling form is positioned at 0;0 while this could not be true. To avoid the problem is enough to position the form at 0;0 and only after the give the command PrintForm. - if on the data grid object you are using a column type DataGridViewImageColumn the relative image will be not printed I think that it should be very easy to repruduce the above two problems; anyhow if you like I can post a small project reproducing the above two bugs. My system is a WinXp kept updated. Yes, if ...Show All
Smart Device Development using font strips on windows mobile devices
hi, we need custom fonts for our application. one way is using font scripts i.e. use bitmap iamges to display text e.g. when we want to display 'A' use corresponding image for 'A'. Question 1. :- How to do this for controls that accepets input from the user e.g. text control also for controlls like soft keys, window titles and menus. Question 2:- what are possible concerns or disadvantages of doing this as this is not a standard way Question 3:- Is this cause any problems in logo certification Note : our target devices are all possible smartphones and pocket pcs (2003 as well as 5.0) regards Rashmi Todkar yes but this was just for knowing that is it posible fontstrips ...Show All
SQL Server Subroutines
I have two different data flows that get data from different sources, but ultimately they get a result set with a user id (although their result sets are different). Both result sets need to be run through a common routine that adds a column for the organization id. It's more complicated than a simple lookup. I have accomplished the transformation on one data flow task but don't want to copy and paste all of the components. Is there any way to create a "subroutine" that could be called by both of these paths -Larry I am afraid that is not possible. The lowest grain of reusability I can see in SSIS is a package. Can not you place that dataflow inside of a foreach loop conatiner; so i ...Show All
.NET Development SQL Connection as a differnt user
I'm using visual studio 2005 and SQL 2000, trying to connect to a sql database as a differnent user. Here is my current connection string that is using my own NT login: Dim message As String = "Data Source=" + Me.ComboBox1.Text.ToString() + ";Initial Catalog=Store;Integrated Security=SSPI" Dim sql As New SqlClient.SqlConnection(message) sql .Open() I have access to this database and the connection establishes fine. However i dont have access to certain Stored Procedure's on this database and these run through a differnt NT user. I dont have access to a SQL user name and password so i cant hardcode the "sa" login instead. Does anyone know if i can change my connection string ab ...Show All
SQL Server Locally processed Reporting Services reports and Datasets
Does anyone know if Reporting Services reports, particularly those which are locally processed, recognize relations that exist in typed datasets ...Show All
Software Development for Windows Vista Sample Simple-STS for RC1+: Cannot retrieve a Managed Card from SampleSecurityTokenService
I can create *.crd without any problems. However, I’m unable to retrieve the Managed card form SampleSecurityTokenServices. Repro: 1. Run SampleSecurityTokenService.exe to accept Managed Cards 2. Go to https://www.fabrikam.com/CardSpace/Sample.htm and click on “Click here to get the Token” 3. Select the Managed Card and Send. Windows CardSpace tries to contact https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex and receives the following error. “Your data could not be retrieved from the Managed Card. Check your network connection and verify you have supplied the correct authenticated credentials." In the Event Log, I found the following message: There was a failure making a WS-Trust e ...Show All
SQL Server Problem with Query
I need to replace the text (III|xII) with (1II|xII)'. For that i created the following query. SELECT (REPLACE((STUFF(Col1,1,1,'1')),'I','1')) FROM SourceData WHERE Record = (SELECT Record + 2 FROM SourceData WHERE Col1 = 'MILESTONES' AND Heading = 'Milestones') AND Heading = 'Milestones' The problem with this query is that it replaces all '|' with '1'. ie, it gives (111|x11). Could anyone ple show me what's wrong with the query. All help appreciated. Thanks, You don't need the REPLACE since it will replace all occurrences of the specified string. STUFF is enough in this case since you are using the length parameter to delete the character at specified position and insert the new one. ...Show All
Smart Device Development Mobile development Certifications
Hi , I work for a software concerrn for 1.5 years in mobile applications for smart phone. my platform is .net and i want to do certifications, i am confused in selecting what kind of certifications to undergo...........pls some one help me out in this......... There is a sticky thread in the General Forum that states there;s a BETA one in place... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=719777&SiteID=1 Thanks ...Show All
Visual Studio Team System How do I start a new team project based on an old deleted team project?
TFSDeleteProject states that it deletes the project from it's associated Version Control which I was initially fearful that it meant it trully removed the version history. But I am happy to find out that it just does a "delete" action on the Team Project root directory and I am still able to go back and get old files etc. Great. How do I start a new team project based on an old deleted team project I know I can branch from an old version in an arbitrary way, but can the Project Creation Wizard can not handle this. I cannot do something like this: tf undelete $/olddeletedproject or tf branch $/oldundeletedproject $/resurrectedproject /version:50 As that these operations return this error message: TF10169: Unsupported pending chang ...Show All
Visual Basic Old code issues...
I use VB6 at school, and was quite used to doing the following: number = txtbox1.txt mumber = number+42 lbl1.caption = number Why does it not work with the new version, and hw can I fix it What I'm looking for is a way to get text (in this case numbers) from a textbox, manipulate it, and output it to a label. How can I do this Also., for later purposes, how do I directly output a textbox to label that still wont work as you need to CONVERT the value to an integer, even then it may not work as the value may not be a numeric value. This is what you would do: Dim theNumber as Integer theNumber = Convert.ToInt32(Me.theTextBox.Text) theNumber = theNumber + 42 Me.theLabel.Text = theNumber.ToString() th ...Show All
Visual C++ first steps
Hi Im just starting out to learn VC++, I have previous expericience of c, Java and SmallTalk. I have the VC++ 2005 compiler and the book 'MicrosoftR Visual C++R .NET Step by Step--Version 2003, the first exercise is 'Hello World' to give you the idea...which compiles and runs ok, My question is will I run into lots of problems working through this book...or maybe translating the code will aid my learning I realise its not the best way to start off, but my budget wont stretch to buying another book, Some feedback would be appreciated learning programming language is tedious. two required components on a software developers workstation are os and ide. parser and compiler from latest visual c++ ...Show All
Visual Studio 2008 (Pre-release) CPU throttles when binding listener to MSMQ private queue
Hi, I'm in the process of trying to get a test MSMQ listener setup to receive messages from a test client. If I create the queue manually through the MMC snap-in, the client is able to deliver messages to the queue successfully. However, whenever I attempt to start the queue listener console application [in debug mode or double-clicking the app], CPU usage spikes at 100% [evenly split when running in debug mode between the app and devenv.exe]. The console app appears to have the appropriate endpoints exposed, but it just sits there without actually processing any of the messages that are in the queue. If I remove the queue, and start the client, it cannot deliver messages to the queue, stating that the queue does not exist, and t ...Show All
