Richard Maher's Q&A profile
Visual C# Dynamic Thread Creation
Greetings everyone, I have found myself in an empasse while trying to dynamically create an array of threads. Let me try to explain what I mean by "dinamically creating". One of the four overloads of the Thread constructor takes as a parameter a ThreadStart delegate, which needs a method name in order to be fulfilled: System.Threading.Thread m_MyThread = new Thread(new ThreadStart(MyMethod)); My scenario is different and a bit more complicated, in fact I haven't been able to find a working solution - I'm not even sure if what I'm trying to accomplish it's possible at all. I am developing a plug-in system for a commercial 3D engine. Some methods inside these plugins can be run on a different thread if the plugin devel ...Show All
Visual Studio Barcode 128 font not displayed in running mode
Hello, I'm working with Visual Basic.net in VS 2005. I built a Crystal Report showing a TextField with a code 128 font. I used the free font Code128.ttf and the function available at http://grandzebu.net/informatique/codbar-en/code128.htm I design mode, the font is properly shown in my report but if I build and run the projet, the Textfield appears as Arial instead of Code128! I designed a simple Winforms using this font and all is properly shown, both in design and in running mode. I tried to put the font in the ressources of my projet --> nok I tried to put the font in the application path of my projet --> nok Does anyone have an idea Thanks, C. See http://www.idautomation.com/fonts/fontfaq.htm ...Show All
Software Development for Windows Vista Base workflow problem
public object OrderSender = new System.Object(); public OrderLocalServices.OrderEventArgs OrderEvtArgs = default (OrderLocalServices.OrderEventArgs); how can i change it to vb.net thks TOM Actually , I use the HandExternalEvent Activity 's Invoke Property in the base StateMachineActivity. like this: Public Class BaseWorkflowForHospital Inherits StateMachineWorkflowActivity Public BPSender As New System.Object() Dim _blnCanPassNext As Boolean = False Public ReadOnly Property blnCanPassNext() As Boolean Get Return _blnCanPassNext End Get End Property Public Sub OpenInvoke(ByVal sender As Object, ByVal e As HospitalWorkflowEventArgs) End Sub ...Show All
SQL Server Placing a sum in a table header column
I have been requested to add the sum of an interger field to the table header. I have the sum in the footer (which is very easy to do), but I cannot get the sum to appear in the table header. I then set-up the stored procedure to run the sum, and place it into a dummy field. I still cannot add this field to the table header. Instead of printing the data for the dummy field (the correct total), it instead prints the actual field name on the report. Is there anyway to place a sum in a table header on a SQL Server Report Let me know. Thank you, T.J. Thank you very much. I got busy and didn't get time to get back to this yesterday. I tested this today, and if I just drop the field into a bl ...Show All
SQL Server sql server 2005 (express) reporting service - authorization problem
Hello I generate a report (.RDL) using Business Intelligence studio and then deploy it. This deploys sucessfully (see below) ------ Deploy started: Project: Report Project5, Configuration: Debug ------ Deploying to http://localhost/ReportServer$SQLExpress Deploying report '/Report Project5/Report1'. Deploy complete -- 0 errors, 0 warnings ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== When i try to view in IE browser I am required to enter credentials. I enter Admin user and password but this does not work - not authorized to view page. Looked in IIS -> ReportServer$SQLExpress and would have expected to see report he ...Show All
Visual Studio 2008 (Pre-release) Zooming issue
I'm working with a Slider which controls a ScaleTransformation on a control. That Control is inside a ScrollView. When you want to apply a transformation on a control you can choose between a RenderTransformation and a LayoutTransformation . A RenderTransformation is a low level transformation, which only alters the rendering of a control. This means that the container control won’t know that the control’s size has been altered, and for instance, if you have a ScrollView set on it, it won’t know about the change and you will miss some of the parts while zooming . Then, we would think that the right choice for zooming, is using a LayoutTranformation . A LayoutTransformation does change the ...Show All
Visual C# simple question about string and the use of ""
Hi all. I need to add this string of text to a string variable. "Select "c-name","c-telephone" from pub.customer where "c-name" like '&SomeName&'" But when doing so in code i get problmes with the ". I need the " to be a part of a string. Who can i do that Lars E Hi! You can use escape sequences (marked by a backslash - \). So, your code would be like Select \"c-name\",\"c-telephone\" and so on ... Greets ...Show All
Visual Studio 2008 (Pre-release) Computed Default value for property
Hi, Is it possible to have a default on a column of Guid.NewId() As you can probably guess, I'm using Guids as my primary key, and would like them to be initialised as soon as the object is created. If this isn't possible in the model, is there any way of implementing such logic in a partial class I've had a look, but it doesn't look like there are any suitable methods that I can override to perform logic during construction. Cheers, Steve Do I have a deal for you... Check out this blog post from a while back that basically addresses exactly this scenario: http://blogs.msdn.com/dsimmons/archive/2006/08/27/727171.aspx In future CTPs it's our intention to actually make things much simpler on t ...Show All
Visual Studio Team System Ordered Test of Load Test
Hi, I have created multiple Load test scenarios and I want to create a ordered test with all the load tests. Basically I want to perform the load tests one after another automatically. When I try to create a ordered tests - its listing only the Unit Tests and Load Tests aren;t listed. Is there a way to order all Load Tests and execute them from Ordered tests. Thanks, Loonysan Hi Loonysan, We currently do not support running load tests in an ordered test. If order of your load tests does not matter, then you can just create a test list; running the test list will run everything contained in it. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Software Development for Windows Vista working from win form
I have a question. In the form when pressing the button, the workflow starts I wrote the following code in the button1_click event. I have used a my service for work with handle external method and callexternalevent activities Is this correct private void Button1_Click( object sender, EventArgs e) if (wr != null ) { wr = new WorkflowRuntime (); wr.StartRuntime(); } ExternalDataExchangeService dataExchange = new ExternalDataExchangeService (); workflowRuntime.AddService(dataExchange); MyService myService = new MyService (); dataExchange.AddService(myService); WorkflowInstance wi = wr.CreateWorkflow( typeof (WFizin. izinWorkflow )); wi.Start(); thanks ...Show All
SQL Server Insert Images in SQL 2005 express DB, using C# code for asp.net 2.0 (VS 2005)
Help! I found about a dozen samples and articles in the net about inserting images in a sql database, but they were either using VB, or asp only or SQL 2000 and although I tried them all, none worked... Can you help me by posting some code on how to insert images in SQL 2005, using C# in Visual Studio 2005 (asp.net 2.0) Thanks. Hi Jens, Man, I am so thankful for your answer! I was looking for something like that for 2 weeks, now I understand how it works, but I am still getting an error message: Invalid object name 'userTable' , which is the correct name of my table. Maybe I am having problems with SqlConnection string (first time I am using it... Don't know if I have a password...). Would you mind taking a look at my code (btw nice ...Show All
Visual Studio Express Editions How to send Report from Report Viewer as an email attachment?
Hello, I have created a Report form that reads in data from a table. How can I send that report as an attachment via email using vb.net / report viewer Thanks in advance. alternatively to send an email within your application without using Outlook or the default email client, check this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=616274&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) The project type is not supported by this installation?
VS2005 Team Suite RTM with SP1 Beta - XP SP2 - latest patches Hi, I have been learning XAML at the intro level. I had an old version of dotnetfx3 and wpf templates and I could create a project and run it. Yesterday I removed the old templates and the old framework with a removal tool and installed the RTM framework and new templates. However now I cannot open create a new project. The error message I am receiving is: "The project file c:\documents and settings\renee\localsettings\temp\4t4baj4.dyv\temp\WindowsApplication1 cannot be opened." The project type is not supported by this installation. I have not installed the extensions. I never have. I don't have enough disk space on the current system. What ...Show All
.NET Development Select page contents via javascript
Hi All, How select all html page contents via javascript. like Edit -> Select all option of browser. Hi, I have done this problem by my self effort. so that's why i m reply here. var Rang=document.body.CreateTextRange(); Rang.Select(); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't create a TransformedColored mesh in MDX
Hi, i'm trying to create a TransformedColored mesh using C# and MDX... for some reason it gives me error... it's at this particular statement.... opMesh = new Mesh(2, 4, MeshFlags.Managed, CustomVertex.TransformedColored.Format, OpDevice); Could someone please help me out... Thanks. P.S. i'm using Visual Studio 2005.... (no XNA as far as i know) ... Wessam Bahnassi wrote: They are not supported... You have to submit TransformedColored triangles manually through vertex/index buffers or DrawPrimitiveUP. What formats are supported for creating a mesh in MDX How can I create a mesh from code in MDX ...Show All
