Tiarnan's Q&A profile
Visual Studio 2008 (Pre-release) ShowDialog() behavior
I've got an application that uses several modal dialog windows. Early on, I discovered that displaying the window was a little slow, apparently because the XAML had to be parsed each time the window was displayed. In order to circumvent this delay, I create each of the modal dialog windows at the beginning of my application, and I never call Close() on them (nor do I set the DialogResult property, which would also close the window). I do make a call to ShowDialog(), and the window functions properly as a modal dialog. When I'm done, I call the Hide() method, which returns from the modal ShowDialog() call and allows me to continue processing. After a while, the windows start exhibiting some strange behavior. Sometimes the wrong window wi ...Show All
SQL Server Distributor cannot connect to subscriber
I am setting up my 2005 Replication system... publisher = 2005 sp1 Subscriber = 2005 sp1 I created a publication for a single table. Then I created the subscription to another 2005 server. Had to add it as a subscriber in the wizard. Told it to do the snapshot right away. Everything seems fine right up to the point where it tries to connect to the subscriber... I get a cannot connect error. I have tried all kinds of security context and accounts for the sql agent to run under but nothing seems to work. I cannot even get a linked server to work. I have the subscriber setup to accept remote connections. I am not sure where to look at next... I never had this issue in 2000. Can you try the fo ...Show All
Visual Studio Express Editions input validation
hi all.......... how can i set at a textbox so that the textbox only allow numeric value to be enter into it.....and will pop up error message if non-numeric is input to the textbox Because i want to set textbox to accept money value..... please provide me the solution if anyone know... thanks Sorry to resurrect such an old post, but this seems to be an age-old question for me... I love the "validation controls" in Visual Web Developer- they make so much sense. Why is there no such control for VB.NET Am I missing something obvious ~Dan ...Show All
Windows Forms Datagrid Freeze Panes (vb.net): Rows + Columns
Hi all, Does anyone know how to freeze the first row of a datagrid table. The columns of the table are not bound, nor is the property show header set to true because the header is imported in with the rest of the table data. Therefore i need to know how to lock / freeze the first row. Also, i was also lookin to freeze / lock the first two columns of a datagrid. Any ideas, help greatly appreciated. thanks, Paul nops it doesnt work . i only saw this working . the freezing part.. no idea. Me . BillDataGridView.Rows(0).ReadOnly = True Me . BillDataGridView.Columns(1).ReadOnly = True ...Show All
SQL Server Using output from a Stored Procedure as an Output Column in the OLE DB Command Transformation
I am working on an OLAP modeled database. I have a Lookup Transformation that matches the natural key of a dimension member and returns the dimension key for that member (surrogate key pipeline stuff). I am using an OLE DB Command as the Error flow of the Lookup Transformation to insert an "Inferred Member" (new row) into a dimension table if the Lookup fails. The OLE DB Command calls a stored procedure (dbo.InsertNewDimensionMember) that inserts the new member and returns the key of the new member (using scope_identity) as an output. What is the syntax in the SQL Command line of the OLE DB Command Transformation to set the output of the stored procedure as an Output Column I know that I can 1) add a second Lookup ...Show All
Software Development for Windows Vista Does Vista support two graphics card co-existing in the system?
I have two graphics card, one is chipset integrated, the other is a PCI-E graphics adapter. Can Vista support both of them simutaneously this is actually the wrong place to post. Best place would be over at the communities: www.microsoft.com/communities and look for Windows Vista. I believe it should but it's all down to the drivers and the motherboard - if it supports dual output ...Show All
Smart Device Development Heyelp! Using SendKeys in Visual Studio 2005
Ok, I've only been using VS for about a month now, writing a little form/program to run on a PDA. All working fine, but it was suggested the PDA 'ok' key (return key basically) should be recognised and move the cursor from one prompt to the next. All sounds simple enough................... Well, I can trap the ok/return in the KeyPress event, but I then want to input a 'Tab' so that you move to the next prompt. So, I thought use SendKeys. But it doesn't appear to be available in System.Windows.Forms Is there something simple I am not doing We are using Visual Studio 2005 Standard Edition. When I look through the help system, SendKeys is included, but for some reason it is not currently available within the environment that is set up ...Show All
Visual Studio 2008 (Pre-release) FlowDocument and DataBinding
Hi all! I can't see any way of data binding a FlowDocument to a RichTextBox or a FlowDocumentPageViewer. Is this possible Here's the context: I have a business objects that has a rich text property. This rich text needs to be displayed in a list, in a detail panel and also can be edited in a dialog box. Thank you, Ronan. "This rich text needs to be displayed in a list" - if you could use plain text (no formatting) with \r\n for newlines then you could bind the text to a Run.Text property. ...Show All
SQL Server SP2 issue with execute SQL parametrized query
Hello, I try SP2 and cannot get the Execute SQL task to work as before. In this example I use an OLEDB Microsoft Oracle provider. The script uses a parameter like that select Cast( decode(( select DECODE(TRUNC(c.END_DATE), TRUNC(SYSDATE),1,NULL) AS RESULT from one_stage.load_complete c where TRUNC(c.end_date) = TRUNC(sysdate) and c.name = and c.STATUS = 'SUCCEEDED') ,Null,0,1) as varchar(2)) AS Result from Dual The script task is set to BypassPrepare = False I note only one change, the addition of a parameter setting called Parameter Size set by default to -1 I tried different things like reading the new BOL, changing the Bypass prepare, Changing the Parameter Size and changing the , nothing works. t ...Show All
Visual FoxPro Foxpro7 crashing with "fatal error exception code=c0000005 ..."
Hi I have a tricky issue in my VFP7 application. At least tricky for me. The application is crashing with fatal error C0000005. Sometimes I see a message like this one in the eventlog: "Faulting application <appname>.exe, version 1.4.82.0, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00010f29.". Sometimes the application just hangs. I also see the Windows error "The instruction at "0x...." referenced memory at "0x.....". The memory could not be "read"", and then the application is closed, of cource. The error does only appear in situations where I print, but it does not occur in an exact pattern, or when I pass a particular code line. I use a third party dll called foxpp.dll ( ...Show All
Visual Studio Team System Load Test
how can i confgure the laod test, with Test Mix : unit Test , to run on WAN. I have created the unit test which test the webservice in a lan environment. Currently I am using two machines one Client " Unit Test project" and the server hosting the WebService". I have created the Load test where in In Network Mix - by default it takes the LAN distribution. I need to simulate a scenario wherein have the client and server machines are distirbuted over a WAN. Help on this is appreciated. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. using XNA Framework with no shader capability display driver???
I have Intel 82852/82855 GM/GME graphic card with no support for shaders. Is it possible to develop a 3d application with XNA Framework under this condition.When I run a tutorial project I got the message "Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed." I am new to XNA concept. Before I was developing with MDX 1.1 and I can develop 3d application with out shader support. So how can do this with XNA... The content pipeline is not tied to the XNA graphics system. There's no point trying to duplicate our public interfaces: that just happens to be the way we do graphics, but if you want to do graphics some other way, you could extend ...Show All
Software Development for Windows Vista Problem while registering assembly using custom actions
Hello all: I have an installer that calls a merge module with a custom action. In customaction, based on certain criteria, it register and install some files in the GAC. It works fine on XP and earlier versions but on vista, user access control, does not let it proceed and it fails while registering my assembly with an error that says "Access to the registry key HKEY_CLASSES_ROOT/Record is denied". If I look at the stack it fails at Microsoft.Win32.RegistryKey.CreateSubkey method. I use System.Runtime.InteropServices.RegistrationServices.registerassembly method to register my assembly and that in tunrs calls this Microsfot.win32.registrykey.createsubkey. I f I turn off user account control everything works fine, I ...Show All
Visual Studio Tools for Office How to change a received email into a task and add it into the task bar in outlook?
Hi, I want to ask how to change a received email into a task and add it into the task bar in outlook Do you know the steps Thanks. Neither of those groups is relevant to VSFW3's post. The first one is for Outlook custom forms development, the second for Exchange server development. The busiest and most appropriate Outlook developer group is http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.outlook.program_vba The answer to the actual question is simple enough: For OUtlook 2007, use the MailItem.MarkAsTask method. For earlier versions, use the Application.CreateItem method to create a new task. See http://www.outlookcode.com/codedetail.aspx id=959 for a VBA code sample that covers the basics. ...Show All
.NET Development Cache XslCompiledTransform for included stylesheet
I have a lot of small XSLT stylesheets. Each stylesheet includes common stylesheet (Common.xslt) with <xsl:include>. Each stylesheets is used once in the build process (with XslCompiledTransform). Common.xslt defines a lot of XSLT extension functions written in C#. Currently, each transformation rebuilds Common.xslt, so the Common.xslt is rebuilt nearly 50 times during the build process. Since it is guaranteed to be unchanged during the process, I need a way to cache it and use cached compiled version to include into all dependent stylesheets. I thought about rewriting Common.xslt into an Extension Object, but as far as I know it will break XSLT Intellisense and Debugging in Visual Studio. Are there any other ways to do it ...Show All
