snuffy's Q&A profile
Visual C# Types and Variables
Is it possible to make a Type into a Variable Well this is the code i'm trying to make work : public string TheURL { get { return ComboBox; } set { this.theURL = value; } } but i get the error message ; 'System.Windows.Forms.ComboBox' is a 'type' but is used like a 'variable' 45 24 So i want to make the type ComboBox into a Variable so that it works. Ps have you got any other ideas on how to get it to work ...Show All
Visual Studio Express Editions why imagelist errors with this?
i keep getting compile errors with this code but why pb.Image = ImageList1.Images(0) Label1.Text = "Gettin ready for the ball...pretty isn't she! " If pb.Image Is ImageList1.Images(0) Then pb.Image = ImageList1.Images(1) Label1.Text = "Bad Gyal forward!" ElseIf pb.Image Is ImageList1.Images(1) Then pb.Image = ImageList1.Images(2) Label1.Text = "Nathan's fave..." ElseIf pb.Image Is ImageList1.Images(2) Then pb.Image = ImageList1.Images(3) ElseIf pb.Image Is ImageList1.Images(3) Then MsgBox("This boi luvs u girl!.x.x.x.") Else Label1.Text = "" End If ive tried everything including with no imagelist: If pb.Image Is ...Show All
Commerce Server Exception when attempting to check out with items that no longer exist
If at some point an item is removed from the system because it is no longer available...or no longer exists in the system, then any cart with the item still in it will cause an exception when they go to checkout. Is this a problem with the item deletion in MSCS internals What would be the recommended course of action I see what's going on here. After the basket pipeline runs, it's still calling the total pipeline, which calls my custom tax component, which is breaking because there are no shipments. I can run from here. Thanks for the help. ...Show All
Architecture How to listen to a web service for a message receive.
Is it possible to listen to a webservice (WS) when a message is received by the WS. Thanks, Sailu You can implement a SoapExtension. SoapExtensions allow you to intercept a web service call on teh way in or the way out (in fact they work on both the client and the server). They are very useful for processing a service content irrespective of teh actual implementation. For example you could use them to log all messages to a database, or to perform schema validation on a message content. ...Show All
Visual C# how to get windows service logon account
In my application i need retrieve the all services is running on the my machine and the logon account of service. the services information i retrieved with ServiceController, but the Logon account i can't found how If the question is how to retreive the account information of the user who logged on to the machine: try the Environment.User object. There's lots of info over there like the domain the user logged on to and the name of the user. If that wasn't the question, please clarify the real question ...Show All
Windows Forms How do I add a control?
I am trying to create a label programmatically but I can't access the Control.Add method. using System; using System.Drawing; using System.Threading; using System.Windows.Forms; public class GameMechanics { public static void ShowLocation() { Label LblLocation = new Label(); LblLocation.Text = GameInfo.Location; LblLocation.AutoSize = true; LblLocation.Size = new Size(10, 10); LblLocation.Location = new Point(10, 10); LblLocation.Visible = true; &nb ...Show All
SQL Server missing value
hi, I am using time series algorithm.and my prediction query is like this SELECT PredictTimeSeries([Performance]) FROM [Stud_Model] The output is like this Date Perf 9/11/2006 90 10/11/2006 92 11/11/2006 93 12/11/2006 -- (no prediction) 1/11/2007 --(no prediction) I dnt know why there is no prediction after certail date Thanks, Karthik The time series algorithm is based on regression trees which can become unstable as you move away from the time horizon, since you have predictions based on predictions. The algorithm tries to detect when this instability occurs and stops predicting at that point. In future releases, we will have more user control over pred ...Show All
SQL Server Display all members of an attribute
I need to view a measure by month, division, sub department and account. Is there a way to always display all members of a certain account type, even if they are blank for the measure I'm using Microsoft RS as my reporting tool. In the Query Builder, click the "Show Empty Cells" toolbar button (it's the icon just right of the calculator) or right click the designer and select the "Include Empty Cells" context menu item. If you have modified the MDX by hand, then you'll want to remove the "NON EMPTY" MDX keyword from the query by hand. ...Show All
SQL Server Filtering on a part of a field - 2
Hi, I got a problem which looks like the same with a futher topic of me ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1156355&SiteID=1 ), but this one is a little bit more difficult. I want to set a filter on a field, but the it must set a filter on a part of the field. I think it will be more clear with an example: I have a list with ItemNumbers and ItemDescriptions. ItemNo ItemDescription 1 Pineapple yellow 2 Cauliflower size 6 3 Orange sweet yellow etc. etc. Now I want that the user of this report can set a filter just by entering a part of the description. So, if he enters 'flower' he only see the cauliflower. If he enters 'yellow' he only see the pineapple and the orange, etc. etc. If a ...Show All
Visual Studio 2008 (Pre-release) x:Subclass
Hi, I have a user control and want it to subclass a my base class instead of System.Windows.Controls.UserControl. I figured I could use x:Subclass as follows: < UserControl x:Class = " MyClass " x:Subclass = " MyBaseClass " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml > Unfortunately, this does not work. The generated code still subclasses UserControl and (for some reason) the partial modifier is removed in the generated code. Any ideas Thanks, Kent Boogaart If you want to subclass MyBaseClass you would use: <MyBaseClass x:Class="MyClass" ... - Doug ...Show All
Visual Studio Tools for Office How can I use the Page interface in the Microsoft.Office.Interop.Word.dll?
I am not sure if this is the correct place for this question but since it relates to Office automation I figured this is a good place to start. My problem is that I need to walk the pages of a generated Word document to add page breaks so that blocks of text are not chopped off during printing. The only way I can find to do this is using the Page object. However, I cannot access the Page interface/object in Microsoft.Office.Interop.Word. It is not listed in the reference and yet it is documented in the Microsoft site. What I am missing Any ideas Anybody Questions concerning Office automation should be posted to the newsgroups, as listed in the "Please Read First" posting at the top of this forum ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Extracting the transformation matrix for a subobject in a mesh
I have an x-file containing some objects objects. I would like to load this as a mesh and then extract the transformation matrix for some of these subobjects. If I have designed a model (in 3ds max) with a box located at 0,0,0 and another located at 1,2,3 and neither one is rotated or scaled, then the xfile consists of the two boxes and each has a transformation matrix. The first has the identity matrix as its transformation and the second one has a translation to 1,2,3 as its matrix. How can I extract those two matrices without writing code to parse the xfile I need this to build a mechanical model onto which I plcae a number of connector pads. Later I want to design other objects and mount them on those connectors. For example i ...Show All
Windows Live Developer Forums Developing Messenger bot
Hi. I'm developing Messenger bot. It will be based on .NET 2.0 and be using DotMSN library to handle messenger protocol. I'm trying to enable activities handling in this bot. Right now I'm able to get data from activity sent using SendData method of Channel. But I need to send data to activity client from my bot. Could anyone help on this I've sniffed messenger packets and it seems that there is direct TCP connection for data exchange. Is there any docs on that protocol Thanks. Hello. I've viewed the MSN MESSENGER SDK. It seems that it only have a chm file for telling you how to develop the activity( without need of installation of any package ) In the help file, it seems that if ...Show All
.NET Development xsd.exe fails to create common data types out of nested schemas
Hi, with the contract first approach we have some xsd schemas as the core interface definitions. We outsourced common data types (enumerations and some length limited string types) in a shared common.xsd file which in turn is <import> ed into the top level xsd schemas. We tried to generate .cs code files with xsd.exe in this scenario. But all the generated code files repeatingly contain the common data type definitions. This leads into several compiler errors. Using different namespace delcarations for each generated class does not solve the problem: The shared character of our common data types is completely lost after code generation with xsd.exe ! It seems to be a popular problem, because shared data types is a commonly u ...Show All
.NET Development How can I check the dataset whether it has data which coming from Web Service
Recently, my work is write a web application for web service. Just get the XML data coming from Web Service. The WS supply a method which return a DataSet. But I can't get its data in its return DataSet How can I check WS return a DataSet with data Hi , This is the new problem about the my Web Service. The site of this web service need user login to entrance. And then get its web service serve. But the login method are also included web service method.That means: web service: function Login(username, password) as String function UserList() as dsUserList class dsUserList() ...... (other method of web service) the function UserList() must ret ...Show All
