Pat.99's Q&A profile
Visual Basic how do you custom a message box?
Hi All! Is there a way to custom a message box Change the font, font coloring, background color of box. Stuff like that. Thanks! Rudy ...Show All
Architecture Application State in Web Farm Scenario
I have a web farm scenario wherein I need to store data say a dataset into the application cache/state. My backend is not SQL Server. The challenge is that, I know application state is ASP.Net Worker process specific. So whenever the process gets recycled so would the data. In short Application state is not durable. Now in a Web farm or a Web garden scenario there is no way I can access the Application variable from other server because of the above behavior. Is there any way to address this requirement. Would appreciate some thoughts on the same. -Sai Hi Roger, Just to clarify, I am not Tangosol employee, do not own equity in Tangosol, and have no financial incentive whatsoever to tout Coheren ...Show All
Visual C++ converting text from a text box to a int type
I want to use numbers that the user has entered into a textbox by converting them from their System::String form to an int data type. I was wondering how I could go about this with a little and as easy to understand code as possible. Thxs :) I am running on .NET 2.0. The problem is that the TryParse is returning the value 1 , and this happens for every single value I try and parse. Is there something I may be doing wrong... :( ...Show All
Software Development for Windows Vista MSDTC error : Import of MSDTC transaction failed: Result Code = 0x8004d00e.
Hi everyone! I suppose you've allready heard of this error, I've searched for answers on many other forums and groups but I didn't find a clear answer. So, for something to begin with - I am working on a VB 6.0 - 3 layered application and I get the error when the business layer is trying to persist some data. The broplem is that the transaction is not persisted - the application hungs and returns the "server busy" error. The wole application is blocked after this - when trying to save some data i keep getting this error. The persistent objects MTS transaction mode is set to "Requires transaction" and the component security levels are set to process level, the authentication level is None, and the ...Show All
Windows Forms openFileDialog (help with Declaratoin) Thxs
ok first off here is the C# Code i have: private void button14_Click(object sender, EventArgs e) Stream myStream = null; OpenFileDialog openFileDialog1 = new OpenFileDialog (); openFileDialog1.InitialDirectory = "c:\\" ; openFileDialog1.Filter = "txt files (*.txt)|*.txt|All Files (*.*) | *.*" ; openFileDialog1.FilterIndex = 2; openFileDialog1.RestoreDirectory = true ; openFileDialog1.Title = "Load Client List" ; openFileDialog1.FileName = "" ; if (openFileDialog1.ShowDialog() == DialogResult .OK) { try { if ((myStream = openFileDialog1.OpenFile()) != null ) { using (myStream) { //insert code to read the stream here } } } catch ( Exception e ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Learning Direct X
I have tried to learn direct x with several online tutorials, but failed. I have decied that I need to learn from a full book. I consider my self a good programmer. There are plenty of book centered around making games, but this is NOT my intention. I want to learn the basics and the advanced of direct X, from the ground up NOT from the perspective of making games. I want a book that is based on the .net 2.0, I dont wish to learn techniques that are already outdated. The book needs to include advanced topics such as how .x meshes actually work, ect. I would really appreciate any book suggestions, thanks ahead of time. David Weller - MSFT wrote: a book on native C++ DirectX. The Direct3D Grap ...Show All
.NET Development VC 8 <-> VC 7.1 compatability, System.TypeLoadException: Method XXX does not have an implementation
I have a case where I am getting a System.TypeLoadException with a message such as: "Method 'xxx' in type 'yyy' from assembly zzz does not have an implementation". The scenario involves a .NET 1.1 mixed assembly written in MEC++ that defines some value types and some managed interfaces. Then there is a mixed .NET 2.0 assembly (also written in MEC++) that does early binding with the .NET 1.1 assembly and which contains a class that implements the interfaces defined in the .NET 1.1 assembly. When the .NET 2 program attempts to call a method on its own class that implements a .NET 1.1 interface, that is when the System.TypeLoadException occurs. Is this a bug in the CLR, VC 7.1 or VC 8 If so, is there a workaround If it is work ...Show All
Visual Basic Questions about Entry point in VS2005's winform
In vs2003,every form has a constructor that invoke the methed InitializeComponent to initialize the form,but in vs2005 there is not a visible constructor that invoke that method.How does initialization of form work For Winform classes without an explicit constructor, the vb compiler will automatically generate the call to InitializeComponent in the default constructor. Also, the My Framework instantiates the form, so that's how InitializeComponent gets executed. Hope this helps, ...Show All
Windows Forms How can I install windows service using VS.net setup?
How can I install windows service using VS.net setup create setup project in Visual Studio add project output of your windows service project files/folder section add the same output in install and uninstall folder of setup project Now the setup should be able to install your windows service Note: your windows service should have installers included This should work fine. ...Show All
Software Development for Windows Vista Using ManualWorkflowSchedulerService
We are writing asp.net application with workflow (state machine exposed as web service). We would like to ask few questions. This is a fragment of our web.config <WorkflowRuntime Name="WorkflowServiceContainer"> <Services> <add type="System.Workflow.Runtime.Hosting. ManualWorkflowSchedulerService , System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add type="System.Workflow.Runtime.Hosting.DefaultWorkflowTransactionService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, V ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can anyone replicate this Generic List and Component problem I am having
Hi, I belive this is a problem with XNA Game Studio because of the discussion I have had on the Winform thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=766386&SiteID=1&mode=1 [Problem with List<T> and TypeConverter] I have a GameComponent that contains a Generic list of my custom class called Background Layer. This Background Layer has a custom type converter called LayerConverter. The problem I am having is that when I edit the collection via the designer the collection property editor is wrong. The properties that I can see are under an expansion box called "Value", changing this value doesn't work it keeps reverting back. I have traced it to the fact that whatever calls the type converter calls ...Show All
Visual Studio 2008 (Pre-release) How To: Attach event handler to element in DataTemplate?
This question/problem is a little bit esoteric, but hopefully someone has seen it before... I need to attach an event handler to the Loaded event of Image elements within a DataTemplate. The Loaded event handling method is in a utility class, so I can't use XAML to attach the handler. In a Window's Loaded event handling method I call this method in the utility class : FrameworkElementFactory factory = listBox.ItemTemplate.VisualTree; while ( factory != null ) { if ( factory.Type == typeof ( Image ) ) { factory.AddHandler( Image .LoadedEvent, new RoutedEventHandler ( OnImageLoaded ) ); break ; } factory = factory.FirstChild; } There are two problems, one is not too bad (just odd) and t ...Show All
Visual Studio Team System Should setting "Deny" permission override Admin priveliges?
I am trying to limit checkin permissions on a certain branch in our source to only the Admin group. I thought the most expedient way to do that would be set the Checkin/Checkout priveliges to "Deny" for the Readers and Contributors group. However, when I do that, the admin group members are being denied access as well. In fact, if I set "Deny" on any permission for a group that an admin belongs to, that Deny permission seems to override the priveliges of the Admin group. According to the documentation here: http://msdn2.microsoft.com/en-us/library/ms252587(VS.80).aspx , I would expect admin group members' priveliges to be unaffected by setting "Deny" for a group to which the admin belongs. Am I misreading the ...Show All
SQL Server disappearing data
I am not sure where to put this but correct me if i'm in the wrong forum. I've been working on this database for some time now. It's an Access 2003 database with a SQL backend. Everything was going well until one of the users noticed her data was disappearing after she send an email. The database has a memo field that gets pasted in the body of an email when it is created. Sometimes, when the user sends an email and goes back into the record, the memo field is blank. I know the field has data in it at the time of the email because it will give you an error if the field is null and you won't be able to send it. And, it goes into a history table with everything the user does with each record. I've checked this history table an ...Show All
.NET Development Yet another GC question
I would be happy if someone will be able to answer the following question. recently I was investigating memory leaks & handles problem during my work. I have seen a very strange phenomenon: I have a class that exposes only static methods. on one of the methods I do the following things I create an start thread The ThreadStart delegate calls a method that call GC.Collect() & GC.WaitForPendingFinalizers(). Most of the time the new thread never finishes it's work because it gets stuck in GC.WaitForPendingFinalizers(). The only scenario that this thread is resumed is when I activate another GC collection from my program's console menu. The whole phenomenon doesn't happen if I make the following changes: I use gc ...Show All
