malkie's Q&A profile
Visual C# Howto display partial class files as child items in solution tree
Hi, I'm splitting up some of my classes into separate files because these classes are partially generated. An example of the structure is: - MyClass.cs - MyClass.Generated.cs - MyClass.Constants.cs Now, in the solution explorer, I see three items for this one class, while I would like to see the two latter files as child elements of the first one, like this: - MyClass.cs - MyClass.Generated.cs - MyClass.Constants.cs just like we see with the designer.cs and resx files for forms. As I have quite a few of these classes, having several files listed at the same level for one single class makes it unwieldy. Could a ...Show All
Visual Studio Express Editions Select Case doesn't perform correctly
Any idea why this code is not able to add, for the Select Case I've tried all sorts using as Integer or String sample string that I'm parsing and trying to add ->Jun. 10,2006 23:55:23 Finish exchange of cartridge.(Unit 2 - 4) Function Splitwords( ByVal word As String , ByVal n As Integer ) As String Dim words() As String = word.Split(" "c) Return words(n) Dim unit() As Integer = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} If theCurrentLine.Contains( "exchange of cartridge" ) Then RTB_Inkinfiormation.Text += theCurrentLine + vbCrLf Dim a As Integer = Val(theCurrentLine.Substring(58, 1) & theCurrentLine.Substring(60, 1)) If theCurrentLin ...Show All
Windows Forms Problem setting size of Windows Form.
I have a form that contains a DataGridView, and the form comes up too small for the user to see all the grid. How do I set the size of the form so that the entire grid (or, at least its width) is displayed I've tried the following: 1. Setting AutoSize to true. 2. Set the size in the Load event: private void MyForm_Load ( object sender , EventArgs e ) { this.Size = new Size(myDataGridView.Width, myDataGridView.Height); } and, private void MyForm_Load ( object sender , EventArgs e ) { this.Width = myDataGridView.Width; } No matter what I try, I get the same results. Thanks for any suggestions, Mike Try removing theDataGridView.Dock = Fill setting from y ...Show All
Visual Studio 2008 (Pre-release) SDK Sample Halos 3D ListView Questions
Hi all, I got the SDK sample of Halos 3D ListView. It is a good sample of WPF. But the codes quite new to me. Could anyone tell me how can we actually add/remove picture from the list How can I actually add / remove rows of pictures in the 3D list view Could anyone tell me how to make the picture brought out (upon clicked) to be larger size than the default sample size So, my conclusion is that the picture holder also can display video I supposed in WPF Can be activated for playing video upon clicked and stop when it is brought back to the rows of pictures Thanks in advance! You have better chances getting an answer to your question question in the Windows Presentation Foundation ("Avalon") ...Show All
Windows Forms Adding custom fields to a strongly typed dataset
I have a strongly typed datatable that I am binding to a DataGridView through a BindingSource. This works fine and when I add columns to the DataGridView I can see all the fields in the strongly typed TableRow listed so I can select which one I want to bind to. The problem is that my table links to another table and I want to add a column to bind a field from the second table. Basically, my main table has a "UserID" column that is linked to a "Users" table which contains a "UserName" field. In my DataGridView I obviously want to display user names and not meaningless IDs. I thought I could do this by adding a UserName property to the derived TableRow, but for some reason this will not appear in the list of ...Show All
.NET Development What is the best way to do this - xml & ado.net question
Im recieving some data from a web service call that is in a format of elements with many attributes. Id like to pull this data into a DataTable, with one of the fields set to be a DateTime type. At present, im handling like so: - recieve xml response as string - parse xml into new format as elements with values (versus attributes) - use Dataset.LoadXml to load this xml stream into a datatable - (hack) create a datatable programatically and assign datetime type to one column - copy table from dataset into a DataRow [ ] array - then populate the new table from data in the DataRow [ ] - apply a sort expression to the default view of the new datatable - bind my dataview to my gridview control The above steps are needed because if the xml ...Show All
Visual Studio LocalReports and data sources with multiple tables
I am trying to build reports that show data coming from multiple tables in our database by adding a Report to my application and going through that process. I can get a report that takes only a single table to run fine, and i can simulate things like detail views going across 3 databse tables by creating large queries that return a single table of results, and using grouping on a report table or nested lists... However, I can't find a way to do this when my data source [a dataset] has multiple tables. [for example a productCategory table, and a product table... ] I do not see a way to have a list inside of another list refer to the "inner" [at least that's one of the ways the data sources window shows it] data, and I can't ...Show All
Microsoft ISV Community Center Forums Sorry it may not have been clear as>>
I have created a program that I plan on disbursing to other people, on this program, I have added a simple form with support info. I would like the text to be a hyperlink for a website and email. Any suggestions thanks Hi guys, VBA is not the same and VB.NET. The System.Diagnostic.Process object isn't in VBA and unfortunately neither is the link label control. If you want to have a link in a form in one of the Office applications then you need to fool the user by having a normal label control with blue underlined text that when clicked opens the site. You can use the shell command to open your web site. You but this in the label OnClick event. Shell "explorer http://www.yahoo.com ", vbNormalFocus Unfort ...Show All
Visual C# Display HTML Document in an application form ?
hello any ideas how to display an HTML document on an application form with Visual Studio 2003 using Visual C# thank you Nikunj R Thakkar wrote: Hey dude, Check this link. Should help u. http://vbcity.com/forums/topic.asp tid=111957 this looks very helpful , THANK YOU SO MUCH BROTHER ...Show All
SQL Server BIDS - Error on design surface of Calculation tab in Cube
Has anyone seen this Within 'Business Intelligence Development Studio' (BIDS) with a cube opened and the calculations tab selected, the design surface displays a message that reads: Unexpected error occurred: 'Error in the application.' This occurs in any project I open and it still occurs when I restart BIDS or the computer itself. Any ideas Can anyone suggest a remedy I have the same exact problem, and SQL 2005 SP1 & Office 2007 Beta TR. I didnt have this problem with office 2007 Beta. Also I tried updating the dll's as advised in the two locations and visual studio crashes when I go to calculations tab, so I have rolled back to the old versions, but this comes with th ...Show All
Windows Forms how to get the event of the mouse scroll
hi, If i rotate the middle mouse button, i need to do scroll operation. here i creating a custom control. i need to add that operation in to that custom control. how to get the event of the mouse scroll operation. I'm not sure what's your concern. Do you have any problem in handling MouseWheel event or something else The following link may help you if you have questions about using MouseWheel event http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassmousewheeltopic.asp ...Show All
Windows Live Developer Forums vista and live messenger
hi, i dont know if im posting this in the right place but ive recently bought a new laptop ACER Aspire 9300 with Vista. It will not let me run Live Messenger and says something about a DEP (Data Execution Prevention) Can anyone tell me how i can get Messenger to work because as soon as it opens it get shut down again. Thanks. Hi, I am having same problem on Acer 5636. Have found if you right click on the MSN Live Messenger Icon and select Sign in as Administror it runs. However sound on video calling was very broken and cracky. Must be something to do with compatability to vista although I find that very strange as is Microsoft Progarm. i am no expert and finding this very frustrating as well having just upgraded to Ne ...Show All
Visual C++ How to debug library calls
I'm getting errors in library calls, and I think its because different libraries are screwing with each other's proc addresses. What I'd really like to do is determine where a call is actually going. I can't step into the calls that are causing the problem, because the IDE just steps over them. How can I tell what's actually happening when I make a library call Well, templates are instantiated at compile time. While it is possible to export a known set specializations from DLL it is not possible for a general template such std::vector, simply because there is an infinite number of specializations of std::vector. So when you have some code like: int foo( const std::vector<int>& x ) { return ...Show All
Windows Forms Form.Load????
I have a Form that load with some default data that comes from an object....when i change the default code my information does not change even though i have the functionality for changing in the Form.Load method.....Would there be any reason the form.Load would be called if the form is closed and re-opened from a parent form this .cboStartingPoint.SelectedValue = this ._VendorDetail.StartID; this .cboEndingPoint.SelectedValue = this ._VendorDetail.EndID; if i change the value of the selectedvalue on the underlying object my information in this form does not change....it only changes when i open the form for the first time.....can anyone help out with this If you apply Show/ShowDialog on the same instance again ...Show All
.NET Development .NET remoting.....Multiserver........
Can anyone help me out with this --- I've got a two server remoting app on the same machine....but i get the error Unhandled exception "Requested Service not found" Any ideas Thanks sample code from the client namespace CLIENT { public class CLIENT { public static void Main(string[] args) { TcpClientChannel chan = new TcpClientChannel(); ChannelServices.RegisterChannel(chan); //create an instance of Scan object IScanShared ScanObj = (IScanShared)Activator.GetObject(typeof(IScanShared), "tcp://10.181.54.231:5000/ScanServer"); //create an instance of TestControl object ITestControlShared TestControlObj = (ITestControlShared)Activator.GetObject( typeof(IT ...Show All
