Software Development Network Logo
  • Windows Forms
  • Game Technologies
  • Visual Basic
  • .NET Development
  • Visual J#
  • Microsoft ISV
  • Smart Device
  • Architecture
  • Windows Vista
  • Visual C#
  • SQL Server
  • VS Team System
  • Visual Studio
  • Visual FoxPro
  • VS Express Editions

Software Development Network >> Voldemort's Q&A profile

Voldemort

Member List

Steve Hale - MSFT
JAlexandrian
HMSDME
Kaloyan
Gaston
Marlun
Puspak
Aidy12
Curve
pchr
Swapnil
Ernestoguillen
Bogdan Grigorescu
charismatic
dreamworks
Claude Vernier
BlogusMaximus
Martin Woodward
kO2n
traitors
Only Title

Voldemort's Q&A profile

  • Visual Studio 2008 (Pre-release) Anybody managed to find a workaround for the "Black Window" bug in the Nov CTP?

    I think I'll create this post as a checkpoint where people can post any info on this bug. For a background, some of us using the November CTP for WPF and either Visual Studio 2005 or C# Express, are experiencing a black window when running the simplest of WPF apps (i.e an app that does nothing but window.Show()). Other people experience it intermitently in XamlPad itself. A few links to the problem... [1] [2] By the way, if anyone else is having this problem, please vote for this bug at the product feedback centre here . Otherwise it looks like the December CTP bits have already been finalized and the b ...Show All

  • Visual C# Design of 'this'

    Hi All, I seek a clarification in the design of the 'this' keyword in C#. Let us consider this bit of code- class Test { public Test() { Test t1 = this ; } } This is fair enough,it works-memory for the instance of Test has been created and Test1 has been made to point to the current instance.Fine Contrast the above to the following code class Test { Test t1 = this ; public Test() { } } This gives an error saying that 'this' is not valid in the specified context.Why Would the code in the second example not be equivalent to the code in the first example Lets ...Show All

  • .NET Development Thread corruption issues with 64 bit framework?

    Anybody else having troubles with multiple threads running in the .NET 2.0 framework in a 64 bit app   I have an application that queries a server, then reads the results back on a seperate thread. Each chunk received is doled out to yet another set of threads before using Control.Invoke to resync to the UI thread. This model works perfectly in the 1.1 framework, and in fact works fine in the 2.0 framework when run as a 32 bit app. But when run as a 64 bit app, it pulls access violations constantly. When run under the debugger, the debugger reports the access violations yet when it looks at the data, its fine! For instance, I'll get an ...Show All

  • Windows Forms How do I add a ToolboxBitmap to a C# user control?

    I've been trying to add a toolbox bitmap to some C# controls I've upgraded from Visual Studio 2002 and 2003 to Visual Studio 2005. I'm a Visual Basic Programmer and I've always used code that that below and it works fine. <ToolboxBitmap(GetType(VBColorPicker), "Toolbox.bmp")> _ Public Class VBColorPicker However, after looking it up, I used the code below in C#. It does not work. [ToolboxBitmap(typeof(ListBar), "Listbar.bmp")] public class ListBar Can anybody tell me what I am doing wrong Thanks. Herb [System.Drawing. ToolboxBitmap ( @"C:\FillDownHS.bmp" )] public class ...Show All

  • Visual Studio 2008 (Pre-release) Getting ListView to do things other than text

    I'm having trouble customizing the ListView for my application's needs. What it needs to do is: a) Allow multiple rows for each item bound, not just one. b) Support things other than just text for binding (DisplayMemberPath). As an example, I want a listview with four columns. Each ListViewItem is bound to a strongly-typed class and will require two rows: For example, take a look at  this mockup , which represents a ListViewItem. The lines are grid lines (it's easy to see the required two rows). I need a Date/Time field bound to the top left cell, a text field in the top middle left, and a decimal in both top rig ...Show All

  • SQL Server RS2000 - custom data extension from rpt svc launch page

    I have an application with 10 identical DBs.  I need to run the same reports against any of the 10 environments, allowing the user to select the DB.  I want to launch these reports from the MS Reporting svc 2000 web page. As I understand it my best option is to write a custom data extension.  Does the data extension sit between the rpt svc page and the report   If I create a report with the DB as the first parameter and run from the web page, will the data extension get called first and be able to control the DB I connect to Any links to creating the custom data extension would also be appreciated. thanks! ...Show All

  • Windows Forms IIS

    Does anyone know if IIS can be installed on XP Home or not as I'm trying to deploy an ASP script that requires ASP and IIS with its virtual SMTP service can someone provide me with the file to do this hack or would it be illlegal to do so ...Show All

  • Windows Forms Splitter Control XP Theme?

    I have included the manifest for xp theme support in my winforms app.  It works great for everything but the splitter control.  Any idea how to make the splitter control support xp themes Thanks! Philip You will need to create a derived Splitter control and do some custom drawing. This control should get you started, it draws a gradient from the GradientStart to GradientEnd colors: using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace System.Windows.Forms {   public class SplitterEx : Splitter  { &nb ...Show All

  • Windows Forms Clickonce viable solution?

    Hi All, I am trying to see if click once is a viable solution for my deployment need. I have around 60 files of size 80MB that need to be distributed to my clients. This one is not an application only data file. At present, My main application check and see if the required data files is available, if it is not available, download the zip file and copies the files over to the required folders. I would like to know if I can achive the following 1. Can I develop a skeleton application which does nothing but include all required files as data files of the application 2. Can I copy the data files to a specific location apart fr ...Show All

  • .NET Development Calling delphi DLL methode will sometimes cut off strings

    I'm using a Delphi DLL for translating a GPS location to a Road and City string. Most of the times the City and Road string are filled correctly but sometimes the C# program gets back the string cut of, with an extra $ sign. Always around 20 or 22 bytes (etc). When I show a messagebox in the Delphi DLL the string is correct. I.e. the road "Schepen Bierwischstraat" is correct in the DLL, but the C# 'gets' the road "Schepen Bierwischstr$". Snippet of the Delphi DLL methode function CoordToLocation(var pCity : PChar; var CityLength : Integer; var CityID: Integer; var pRoad : PChar; var RoadLength: Integer; var RoadID: Integer; var CoordX : ...Show All

  • Visual C# hiding console window?

    Coding an app to keep Tor open, due to a bug in my router or my ISP being annoying (not clear which) the tor client disconnects after about an hour. So every hour the Tor client has to be reopened; now I don’t want to have a console window sitting around all the time, so how can I keep the console window for the current app from being displayed (I figured out that I can do it by having one app asynchronously open another as a with WindowStyle.Hidden and then closing the first, but that’s so ugly) So how can I keep the console window from being displayed If you're using System.Diagnostics.Process to start th ...Show All

  • .NET Development A class library containing both C# and VB.NET classes?

    Hi all.. I have some web controls. Some of them are programmed in C# and others in VB.NET. I want to place all those classes into a unique assembly. Is this possible Thanks Jaime It is not possible to mix C# and VB.NET in the same project to produce a single dll with all of the types. If your goal in the end is to get one dll, with all the types and functionality it is possible to take the C# dll and VB.NET dll and merge the two together so that you have only one dll with all of the types. http://www.microsoft.com/downloads/details.aspx FamilyID=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en ...Show All

  • Visual C# How to use RTC API 1.3 to write sip-based application?

        I have written a sip-based application on the basis of RTC API 1.3 code sample.But I don't know how to send message and receive message.      this.client = new RTCClientClass();     this.client.Initialize();     this.client.EventFilter =RTCConst.RTCEF_ALL;     this.client.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent);     void OnRTCEvent(RTC_EVENT rtcEventType, object rtcEvent)   {    Trace.WriteLine("Entering RTCPresenceCore.OnRTCEvent " + rtcEventType); ...Show All

  • Visual C# Threading Problems With Multiple Picture Boxes

    I have an app that has 6 picture boxes on a windows form. I have 6 different threads running, and each one is displaying images to a separate picture box. If the threads are initiated by a file dialog box, the app works. But if the threads are originated by a FileSystemWatcher, the images don't display and I get sometimes get cross threading exceptions. What would be the proper way for the threads to display images to the picture boxes Would delegates be useful here Different ways work differently. 1) Your thread can pass references by declaring in the thread a static variable. I don't like this method, but it works. 2) Delegates ...Show All

  • Visual Studio 2008 (Pre-release) Using a static resource storyboard from code

    Hi, I have a simple xaml that has a custom style for a button, and a storyboard to animate the button (refering to elements introduced in the style - panels, brushes, etc). I want to execute the storyboard on a button instance from code, so I retrieve the storyboard with FindResource and try calling its Begin() method on the button instance - I get an exception that the name one of the style elements (for example "panel1") cannot be found :(. Everything works great if i refer to the storyboard via <StaticResource> in an <EventTrigger> What is the correct way to resolve this situation Thanx. Do y ...Show All

©2008 Software Development Network