jmoyet's Q&A profile
Visual Studio 2008 (Pre-release) January Orcas CTP
Hi! I have download and installed January Orcas CTP on virtuell server and now I can start Visual Studio Orcas 9.0, but can not find any Linq project to start playing. I am a first timer about Linq. I checked and there is a version 3.5 Net framefork installed under Windows. Regards http://www.microsoft.com/downloads/details.aspx FamilyID=1ff0b35d-0c4a-40b4-915a-5331e11c39e6&DisplayLang=en ...Show All
Visual Studio 2008 (Pre-release) Apply template to button at runtime
Hello everybody, I made a button template and I want that all buttons created at runtime to use this template. What should I do Thank you! I found the solution to apply a style at runtime. button.Style = (Style)this.Resources["ButtonStyle"]; Thanks anyway! ...Show All
Visual Basic Conversion of Double to Single
I've been fighting with this problem for the past couple days and finally narrowed the problem down to the following couple problems: (This is all in VS 2003 .NET 1.1) #1 I have a Generic procedure that has a ByVal parameter of a Single datatype. In one of my modules, I happen to be calling the procedure passing in a Double datatype variable that has a value of 152347.04. When I step into the procedure, the Single datatype parameter then has a value of 152347.047. I've tried type casting the Double to the Single datatype but still get the same results. I can't figure out why it's not converting over the Double to a Single type by adding some erroneous value to it. #2 Also in the same procedure, I was passing in an ArrayList object that was ...Show All
Gadgets Anyone done this?
So now that we have the wonders of the gadgets in vista, has anyone figured out a way to make a gadget that will monitor the CPU usage on a different machine (ie a server) Would this be something you could grab via SNMP A quick google seems to suggest it's possible. ...Show All
Visual Basic Save splitterdistance/container/panel info on app shutdown to reload persisted settings/sizes?
the vb6 application which this vb.net app is replacing stores panel size info,etc in an ini file when a form closes so it can "reload the previous layout" THere are 4 drawing panes which can have different sizings, perhaps one taking up a whole view are, top and bottom...or even all four. Is there a way in vb.net (2005) to capture this info so that it reloads with whatever size/splitterdistance existed on application shutdown Me.SplitContainer1.SplitterDistance = 882 Me.SplitContainerDrawingVertical.Size = New System.Drawing.Size(886, 618) Me.SplitContainerDrawingVertical.SplitterDistance = 295 Me.SplitContainerDrawingLeftHorizontal.Size = New System.Drawing.Size(295, 618) Me.SplitContainerDraw ...Show All
Visual Studio Express Editions What's the easiest way to do this?
Suppose I have the following list of pre-defined numbers: 5,10,15,20,25,30,40,50,60,80 & 100. These numbers represent available speed ratios for gearboxes that we use in the equipment that we manufacture. I need to take a decimal number that is calculated from other parameters & find which of the numbers above it's closest to. For example, if I have 38.175 I need to use 40, 26.365 needs to use 25, etc. So what is the easiest/best way to do this Firstly, where should I store the pre-defined numbers ... in an array perhaps Secondly, how do I compare the calculated decimal number to the pre-defined numbers & pick the closest one Any ideas or help would be greatly appreciated. Thanks... try thi ...Show All
Visual C# How to create controls from text file?
Hello. Is it possible to create controls from a textfile For example, my text file contains: Panel pNew = new Panel(); pNew.BackColor = System.Drawing.SystemColors.ControlLightLight; pNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; pNew.Location = new System.Drawing.Point(3, 5); pNew.Name = "panel1"; pNew.Size = new System.Drawing.Size(368, 408); pNew.AutoScroll = true; How do I create this from openning the text file See these! if they help: http://msdn2.microsoft.com/en-us/library/y2k85ax6.aspx http://www.15seconds.com/issue/020917.htm If not then you need to write your own parcer and for what controls you want to support and what properties and methods od thos ...Show All
Visual Studio Express Editions Newbie Database Question
If I create a program using a database (with the crappy SQL 2005 Express) would SQL 05 need to be installed on any computer I run it on If so, is there any alternative to created a database without a server This will only be used by a local machine. If not I suppose I will have to code a local DB like program myself. Thanks I would hardly say SQL 2005 is "crappy". yes in order to connect to the database you need to install the database engine on the computer. Without it, you cannot connect. You can use MS Access as an alternative or think about using Xml as a storage method of data and use datasets along with it. ...Show All
.NET Development analysis services 2005 tutorial
I am working through the tutorial and have designed a cube in the Visual Studio for BI. while trying to access the browser in the analysis services cube design. It states a conneciton can not be made and to ensure the server is running which it is. A click on the detailed error information and it gives me the following: TITLE: Microsoft Visual Studio ------------------------------ A connection cannot be made. Ensure that the server is running. ------------------------------ ADDITIONAL INFORMATION: No connection could be made because the target machine actively refused it (System) ------------------------------ BUTTONS: OK ------------------------------ Any ideas,suggestions, tips ...Show All
Windows Forms Casing Problem
I am using the following command to get a record count from a stored procedure: int recCount = (int)cmd.ExecuteScalar(); Everything is fine until the command returns no values and returns a Null, at which point I get a cast error. Is there a neat way around this it's not really neat but you have to get the object first and verify if it's null or not. object ret = cmd.ExecuteScalar(); int recCount = 0; if (ret == null){ recCount = (int)ret ; } ...Show All
.NET Development There is an error in XML document
We are getting the error while calling the webservice of the Remote machine the decription of the error is: There is an error in XML document (1, 147611). at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsyncCallback(IAsyncResult result) InnerException -->System.Xml.XmlException: Unexpected end of file has occurre ...Show All
.NET Development HOW TO DELETE RECORD IN A DATABASE ?
Hi, I have question to delete record in database. After clicked delete button I was able remove that row from view in datagridview but this record still exist in database. Here my coding : private void button3_Click( object sender, EventArgs e) { int Z; Z = dataGridView1.CurrentCell.RowIndex; maintenanceDataSet.MTN_Request.Rows .Delete(); maintenanceDataSet.MTN_Request.AcceptChanges(); } Thanks for your help. Joseph VB "My command string" & " my arg" C# "My command string" + " my arg"; ...Show All
Windows Forms How to Validate a Serial Number or PID in MSI Setups Created in VS.NET ?
I have been searching all over the net, and I can't find this information. I want to validate a PID before the installation proceed (as most of the microsoft setups). I want to do this in C# but I can't find the pieces of the puzzle. scenario: call a web service when the user hits next, if the returned value is Ok the setup may continues otherwise not. That easy. Thanks for any help! mario That's correct, unless you're willing to edit the MSI file similar to that kb article. It's my guess that very few (if any) setups shipped by Microsoft are built with Visual Studio setup projects because it just doesn't have many features compared with other tools that build MSI files. ...Show All
Visual Studio Problems installing Visual Studio 2005 SP1
I am currently running "Visual Studio 2005 Team Suite for Software Developers" (Vn 8.0.50727.51) on Windows 2003 Standard Edition. I tried running the SP upgrade by launching the exe, and when that gave an error, i extracted the contents and ran the msp file. Both methods resulted in an error prompt message "Windows cannot access the speciried device, path or file. You may not have the appropriate permissions to access the item". However my account has administrative privileges on my workstation. Appreciate if somebody can tell me why the upgrade installation fails to load. Rayaz wrote: Thanks for the responses. I did check on the permissions, and can confirm there is no "b ...Show All
Visual Basic Known colors
Hi all, i wonder if any1 could help me please i am converting a vb6 application to .NET and previously i allowed users to select custom colors, however in my .net app i wish only to use named known colors. does anyone know of a way that i can automatically convert custom colors in vb6 (im using System.Drawing.ColorTranslator.FromOle(Int) to get the value) to the 'nearest match' known color , i.e if the color was previously a custom light blue, the near match would be something like aqua ive had a play and just cant find a reliable way to get near, so any tips and help would be appreciated many thanks Bob Hi jonathan thanks for ur reply but i get a compile error s ...Show All
