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

Software Development Network >> Peter Haik's Q&A profile

Peter Haik

Member List

Anton Papst
enric vives
Leonard Lee
Seefer
Hans1982
Automate
tichy291574
oaix
Matt Casto
Michael Ruminer
Ton vd Pol
Brian94
warble
Richie Thorpe
R Raghu
Fluxtah
jockofett
markse
Liquid-Crystal
nhaas
Only Title

Peter Haik's Q&A profile

  • Windows Forms checkListBox ClearSelected() method

    Hi, I tried to use the ClearSelected() Method of the checklistbox but I could not get the desired reuslt i.e ClearSelected() Method does not uncheck the selected items in the checklistbox. Pls help me on this. I used it as follows on a button click event.. ChkLstCompany.ClearSelected() Thanx Avaneesh. ...Show All

  • Visual C# My enumerator is not returning the count??

    Hi, I have created a class using the KeyedCollection: public class RobotPartKeyedCollection<T> : System.Collections.ObjectModel.KeyedCollection<string, T>, System.Collections.Generic.IEnumerable<T> where T : RobotPart { private RobotPart partToSearch; internal RobotPartKeyedCollection() : base(null, 0) { } public RobotPartKeyedCollection(RobotPart robotPartToSearch) : base(null, 0) { partToSearch = robotPartToSearch; } protected override string GetKeyForItem(T item) { return item.Name; } internal void ChangeKey(T item, string newKey) { base.ChangeItemKey(item, newKey); } public new T this[string name] { get { ...Show All

  • Visual Studio Express Editions Still Problems Muting

    i was givven this code a day or so ago to mute the computer .... i have tride and tride and tride but cannot get it to work Public Class Form2 Private Sub PictureBox1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click My .Computer.Keyboard.SendKeys(Keys.Volumemute) End Sub this is the link to the Orig post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=531900&SiteID=1&mode=1 I understand your reluctance but I don't know of a better way so it will be news to me. Seriously...if you don't find another solution try this one...it really only requires copying ;) ...Show All

  • .NET Development Run Time Error - <class> is hiding inherited members but has different custom attributes

    The program is part of the backend of an ASP .NET webapp that was developed in .NET v1.1. We are now trying to make the port on the server from Windows 2000 and .NET v1.1 to Windows 2003 and .NET v2.0. Without changing the code, only recompiling in .NET 2.0, it now throws this error: Member 'Result.PhysicalMachines' hides inherited member 'ResultBase.PhysicalMachines', but has different custom attributes. The relevant code segment is: [XmlElement(ElementName="PhysicalMachine", Type=typeof(<classA>.PhysicalMachine), Namespace="A")] [XmlElement(ElementName="PhysicalMachine", Type=typeof(<classB>.PhysicalMachine), Namespace="B")] public override PhysicalMachineBase[] Physica ...Show All

  • Visual Studio 2008 (Pre-release) Animation Oddity...

    I have an Image object using a somewhat complex DrawingImage as its source. I am attempting to animate a particular GradientStop Color buried deep in the bowels of the DrawingImage. The code I am using to do the animation is: < Image.Triggers > < EventTrigger RoutedEvent = " FrameworkElement.Loaded " > < BeginStoryboard > < Storyboard > < ColorAnimation Storyboard.TargetName = " Logo " Storyboard.TargetProperty = " (Image.Source).(DrawingImage.Drawing).(DrawingGroup.Children)[1].(GeometryDrawing.Brush).(RadialGradientBrush.GradientStops)[1].Color " To = " #FFEF1F1F " From = " #FFCD0E0E " Duration = " 0:0:1 " AutoReverse = & ...Show All

  • Visual Studio Team System Load Testing

    I'm trying to load test a website that requires authentication. I see when you create a load test you can select the number of concurrent users you want to use to test the site. I don't understand how you can setup a list of userids and password to use for a load test seeing that my site requires a logon. Currently I have six webtests defined and each webtest is binded to a database that contains userid's and passwords to run each test. sounds to me that you need to create a data-driven webtest. You basically have to create the test, so you need to be able to login successfully once. Then you bind the username and password fields to a datasource, and modify the localtestrun.testrunconfig to use " ...Show All

  • Visual C# Error: "The path is not of a legal form" in C#

    Hello.I receive the following error Error: "The path is not of a legal form" in C# in the code string location = "List.txt" ; // Read lines StreamReader reader = new StreamReader (location); string [] file_lines = (reader.ReadToEnd()).Split( '\n' ); // Add in Lista foreach ( string one_line in file_lines) { string file_location = one_line.TrimEnd(); System.IO. FileInfo info_item = new FileInfo (file_location); if (info_item.Extension == ".mp3" ) { ListViewItem List_Item = new ListViewItem (info_item.Name, 0); List_Item.SubItems.Add( "XX:XX" ); List_Item.SubItems.Add( "Necunoscut" ); List_Item. ...Show All

  • Software Development for Windows Vista In July CTP, using StateMachineWorkflowInstance to obtain CurrentState freezes workflows in that State

    Dear all, I have a working StateMachineWorkflow hosted under asp.net 2.0. I have written a simple routine (shown below) to interrogate the current state of a workflowinstance: public string WfCurrentStateDescription(string WorkflowInstanceId) { // Get the workflowRuntime which was started in global.asax WorkflowRuntime wfRuntime = (WorkflowRuntime)Application[WorkflowRuntimeKey]; StateMachineWorkflowInstance wfInst = new StateMachineWorkflowInstance(wfRuntime, new Guid(WorkflowInstanceId)); return wfInst.CurrentState.Description; } I find that, once I have called this on a workflowinstance, that instance gets "stuck" in the current state and never transitions to the next state, even though code appears to get c ...Show All

  • Smart Device Development Designer issues after CF2.0 SP1 installation

    I just installed the CF2.0 SP1 patch. Seeing other posts, I uninstalled the Beta 1 version I had used in developing some apps (because I needed more control over the datagrid), reinstalled the original CF2.0 from my DVD, and then loaded the SP1 patch. Initially, everything in my projects looked fine. However, after rebooting my machine later in the day, I now get designer errors on any form with a grid control. The main part of the message is: Could not load type 'System.Windows.Forms.DataGrid' from assembly 'System.Windows.Forms.DataGrid, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes'. Actually, I also the following message as well, but it will go away on a recompile, although it comes back the ...Show All

  • Visual Studio sandcastle html index

    Hi, I may be missing something obvious but can someone tell me how or if it is possible to generate an html index page for the documentation created by sandcastle. Using the sandcastle command line tools I am creating the html content and chm file just fine but I would like an html index page for the html content. Thanks I'll post a message here when it's ready. The current version, and the update when it's available, can be downloaded from http://www.codeproject.com/useritems/SandcastleBuilder.asp Eric ...Show All

  • Visual Studio 2008 (Pre-release) including web browser control in xaml window

    I need to included the Visual Earth control in my XAML project (I.e. One window, with gui controls and the Visual Earth control). Right now, the Visual earth control needs to run in the web browser control. I can use VS2005, create a winform, and drop the web browser control into it decorate the area around with my controls. However, sparkle, and XAML windows don't seem to support direct placement of the web browser control into a XAML window. Is there some sort of container that I could use inside of a XAML window so that I could have a integrated unified look & feel for these sort of controls that XAML does not natively support Hi Dr./Matt, I attempted the approach Matt is referring to last week. However, the problem that I ...Show All

  • Visual Basic Disabling ShowKeyboardCues for a Form Label

    I have some Form fields declared as Labels When I display some text such as "XX &Y"; we get the Y underlined It seems to be due to the ShowKeyboardCues property I need to disable this feature to simply show the full text "as-is" I've tried creatingh my own class which inherits label and shadows ShowKeyboardCues to return False but this doesn't work can anyone offer any clues thanks doh! it's so simple when you know how thanks for that - I couldn't change the data as it came out of a database but setting UseMnemonic worked a treat ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Two big doubts on XNA Beta 2

    1) On XNA help a read: "Dynamic run-time D3DX Mesh loading is not available in the XNA Framework, so an MDX application using D3DX mesh functions, animation controllers, of x-file mesh loading will require game-specific implementation of this functionality." So this is not a quick work make this kind of coding by our self (loading AnimationSet with custom importer, animation controller functionality like mixing two animations and more) and with code optimizations (MMX, SSE, 3DNOW). Model class has just Bones with their transform. The question: now XNA don't have animation controllers because it is Beta 2, or also final release don't have it at all 2) Runtime model loading will be more simple/quick to coding in final release or will be li ...Show All

  • .NET Development winForm User Control and JavaScript

    Hi, I have created a simple user control( as win dll in .net, referred to 'Embedding WinForm controls in IE'). Now my problem is that I want to handle some events for my control on the wep page, for e.g. Let say my contol has a button in it, and I need to write the click event ( of the button) code on the client page itself ( Senario: Creating a so called ActiveX using .net and want to expose event handling to the users of the control) Now I used delegates to define event handling in my control. When I use this control in my Win Apps ( as a client) i am able to register the event and handle it. BUT, the problem comes when I am trying to embed it in my web page(a simple html file) using <Object> tag ( as we use to do it for ActiveX ea ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Can I get the vertex data after rendered

    Can I get the vertex data after rendered, i.e. I want to transform a scene to diplay with a special way not the perspective projection, is that possible Thank you ...Show All

©2008 Software Development Network