Software Development Network Logo
  • Visual C#
  • Windows Vista
  • .NET Development
  • Audio and Video
  • Visual Basic
  • VS Team System
  • IE Development
  • Visual C++
  • Microsoft ISV
  • Visual FoxPro
  • SQL Server
  • SharePoint Products
  • Smart Devicet
  • Game Technologies
  • Windows Forms

Software Development Network >> Marco Wiedemeyer's Q&A profile

Marco Wiedemeyer

Member List

Koltron
Lasse.Knudsen
Daniel Krebs
KarimG
eldiener
wwwxwww
Timothy Wilson
smargroth
Dustpan Dave
Bryce Covert
Christian Sparre
PiaMaria
Oran Dennison
Yeshia
ahmedilyas
Howard555
Kmad
J. Ho
Bahadur
Steven Syfuhs
Only Title

Marco Wiedemeyer's Q&A profile

  • .NET Development Open output file

    Hi there. I am using a serially connected camera with a C# application. My camera replies to the application with a visible ACK and then wirh non-visible bytes. I can read the bytes sucessfully but I cannot print them in an output *.txt file. The application opens the file but nothing is printed on it. In addition, I would like see on my screen only the ACK reply and not the symbol of the non-visible bytes (255 dec. in ASCII code). Here is the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO.Ports; using System.IO; namespace serialport3 { public partial class Fo ...Show All

  • Silverlight (formerly WPF/E) Mouse messages in Glyphs

    I've been picking up mouse messages in all sorts of objects, so I feel I know what I'm doing, but I can't pick up mouse messages from a Glyph. I have, for example: <Glyphs x:Name="GlyphDisplay" Fill="Black" FontUri="./wingding.ttf" FontRenderingEmSize="16" Indices="133" MouseEnter=GlyphMouseEnter" > and that function never fires. [note that line has the correct JS formatting... the display ate part of it] I've tried using mousedown and others also. Anyone have any luck with this, or am I doing something wrong Thanks! -Dave Changing Canvas.Left="" Canvas.Top=" with OriginX="" OriginY="" works. but I needed the cavas. options to scale my window and then stil get the mou ...Show All

  • Visual Studio Express Editions How To Set The Label Font

    I have a problem with my program that used to set label font. How can I set the font on the controls on my form (label). Is there any way that i can set my font in just a single line Anybody here has a code on how to save my code into the registry and retrieve it and use to set another label's font Thank you very much Thanks Akbar Khan, but is there any way that I can set the font property in just a single line in order to optimize my registry keys Is there any way to modify the font property like below: Me.Label1.Font = -03497968 (example of .ToHFont) or Me.Label1.Font = Lucida Sans, 24pt, style=Bold How can I do this Helpp!!!!!! ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Translation of 'Getting Started' sample into IronPython

    Just a simple line-by-line translation. This runs out of the box, no special mojo needed. import clr clr.AddReference('Microsoft.Xna.Framework') clr.AddReference('Microsoft.Xna.Framework.Game') import Microsoft.Xna.Framework.Game from Microsoft.Xna.Framework import * from Microsoft.Xna.Framework.Components import * from Microsoft.Xna.Framework.Graphics import * class MyGame(Microsoft.Xna.Framework.Game): def __init__(self): self.InitializeComponent() def InitializeComponent(self): self.graphics = Microsoft.Xna.Framework.Components.GraphicsComponent() self.GameComponents.Add(self.graphics) def Update(self): self.UpdateComponents() def Draw(self): if not self.graphics.EnsureDevice(): return self.graphics ...Show All

  • SQL Server SQL 2005 Install Error - WMI Configuration

    I'm getting an error when the SQL install program checks the system - "The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine DI-ERP2 Error:2148007941 (0x80080005). I've tried a bunch of stuff as suggested by some of the other threads, but nothing is working so far... Any ideas would be greatly appreciated. To anybobody else that runs into this problem...I've found the only way for me to fix this was to re-install windows on top of the old installation, install SQL, then AFTER SQL is installed, visit the windows update site. After windows update, I continued to have problems with other programs that needed to be installed, but they were minor, and easy to fix. ...Show All

  • Windows Forms BindingSource.Position = 0 doesn't work

    I'm having trouble getting data-bound fields to display any information when pointing at datarow 0. When pointing at any other row, it works fine. I don't understand what gives. Here's the situation: User selects a customer from a List. Using associated customerID, I attempt to display details of the customer record. In the following code snippet, the FoundRow DataRow always contains correct information. BindingSource correctly displays data except when FoundRow = 0. ' Locate the appropriate DataRow in dataset. Dim ActiveRow As DataRow = _ CustomerDataSet.Customers.FindByCustID(SelectedID) RowIndex = CustomerDataSet.Customers.Rows.IndexOf(ActiveRow) ' Tell the binding source ...Show All

  • .NET Development how to get every element of a string and compare the last one...

    The Code to Write received data to a text file: String s = comport.ReadExisting(); string[] parts = s.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries); using (StreamWriter sw = new StreamWriter((@"C:\" + DateTime.Now.ToLongDateString()+".txt"),true)) { foreach (string part in parts) { //convert hex string to int number int dec = int.Parse(part, System.Globalization.NumberStyles.HexNumber); //write received data with current time and converted int number to the .txt file sw.WriteLine("{0}\t{1}", DateTime.Now.ToLongTimeString(), part); } } The data I got is shown as follow ...Show All

  • Visual Studio Express Editions Can anyone help me count letters?

    In VB 2005 express: I am writing a 'word calculator' program that: -Uses the textfile in "textfilecontents" (textbox) -Scans each character, from each line of 'textfilecontents' Here is what I've got so far: -If the character is a letter, then: -convert the unicode value of each char to it's base value. (A=1 B=2 C=3 D=4, ect.) -adds the base value of each letter to 'TALLY' (integer) -display character read to "txttallied" (textbox) -If the character is NOT a letter, then: - display the character to "txttallied" (textbox) - don't add to tally (only letters are counted) -If the character is a carriage return: then: -display TA ...Show All

  • SQL Server Looking for 'upsizing' from Access/PivotCharts

    Hi All! I'm doing analysis of system performance metrics recorded from a web application performance test. I have approximately 15 tables, each with unique system and test metrics, ranging in size from 6 thousand to 6 million rows. E.g: iostats: time, host, disk, read_bps, write_bps, ... netstats: time, host, active_conns, xmit_errs, resets, ... teststats: time, test_name, virtual_users, ... timerstats: time, script_name, timer_name, elapsed_time, ... Last year i used MS Access + pivot tables to do the analysis of this information, but Access isn't cutting it this year. It frequently goes out to lunch and never returns whenever I try to build the charts i'm looking for (most of which use PivotChart views) I've spent a few days ...Show All

  • SQL Server SQL Espress 2005 Service Pack1 with ClickOnce Application

    Hi all, I use SQL Express 2005 with my application that is deployed to the customers with the ClickOnce technology. Now I want to upgrade automatically the SQL Express to che customers deployed with the Service Pack1. How can I automated this process Thanks, Bonato Pierantonio You have a few options. If the client has an SMS environment or something similar, then you can use that to push out the updates. Service Packs can also be automated with a script, which you can schedule on the client machines. You can read more about that in the installation notes of the service pack. Before you follow any of these approaches, make sure you thoroughly read the readme files in the SP. While ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Change the color of a mesh?

    I'm currently using a simple mesh created in 3ds. I changed the color and exported several times until I had a rainbow of colored objects. This seems silly to me, but it got me moving along at the time. I would like to progress beyond this and be able to be able to change the color in code. I realize the answer to this might involve textures and/or lighting, so if the answer is not straightforward, could you at least tell me where to begin Do I need to create multiple textures and swap between them Thanks! Greg If you are not using textures, a simple way is just to use the BasicEffect class. BasicEffect effect = (BasicEffect)model.Meshes[0].Effects[0]; then enable default lighting, and change the ...Show All

  • SQL Server SQLCLR-Patterns&Practices/"Object Builder" error: "operation that was forbidden by the CLR host"

    Hi, Using the Microsoft Patterns and Practices "Object Builder" (Dependency Injection/Builder library), I wrote an SQL CLR Stored Procedure (using VS 2005 Professional). All compiles and deploys ok (to SQL Server 2005 Express). However, at run-time, I get the following error upon a "BuilderContext" object's instantiation: {"Attempted to perform an operation that was forbidden by the CLR host."} Thoughts on how to get ObjectBuilder working in the SQLCLR Thanks! Andy (posted below is the sample code...with the run-time exception occuring on the ...BuilderContext cxt = new ... call) Microsoft.Practices.ObjectBuilder.BuilderStrategyChain chain = new Microsoft.Practices.ObjectBuilde ...Show All

  • Visual Studio 2008 (Pre-release) How to scale text with DPI settings?

    Hi, say I try drawing some formatted text manually with code like this: -- FormattedText text = new FormattedText("Text to display", CultureInfo.CurrentCulture , this.FlowDirection, typeface, 14, Brushes.Black); drawingContext.DrawText(text, new Point(0, 0)); -- It displays great in normal font mode (96 DPI). Now I switch Windows to large fonts mode (120 DPI). It renders at the same size. But I want it to grow since the text should be larger as indicated by the user. How can I detect this and what should I change to make my text size relative to the DPI settings Thanks! WPF is DPI aware and it should scale text up. However if you check size and such it will still show the same as the size has been ...Show All

  • Windows Forms Serious problem with Tooltip in ListView in VS2005

    There seems to be a problem in VS2005 (which was not present in VS2003) when a tooltip is assigned to a listview. If the mouse hovers over a blank area of the listview it works fine, but if it hovers over a populated row the tooltip shows very briefly - not long enough to read - and then disappears. To make matters worse, for some reason a tooltip generates a MouseMove event when it disappears (even in VS2003), which causes real havoc in a program that uses the MouseMove event to set the tooltip text, because setting the text causes the tooltip to be redisplayed. When the cursor is over the blank area there is no problem, the tooltip disappears after the AutoPopDelay time (usually 5 secs) and is immediately redisplayed (VS2003 also behaves ...Show All

  • SQL Server Why I cannot easily change the value of parameter?

    Hi all, I read the Tang and Lennan's book 'SQL Server 2005 Data Mining'. It frequently says about changing the value of the algorithm's parameter. I tried changing values for MINIMUM_PROBABILITY in one occasion. However, the dialog box refuses to change the value; for any of 'Value', 'Default', and 'Range'. Similar thing happens when I tried to change the value. What I can do is delete the parameter, then add it again. Even so, I can only supply the value, not the default value and range (of values). What happen Again, is this because I'm using evaluation copy Thank you, Bernaridho You should be able to click on a parameter row and then click inside the Value field to edit the value (or double-click in an ...Show All

©2008 Software Development Network