Eletricman's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. this.IsMouseVisible = true;
Is there anyway to change what *.cur is used I didn't see anything but I may be over looking it. I also tried making a GameComponent, using a sprite as the mouse cursor and this allows me to change the texture when needed. I ran into a problem with this also. When the mouse leaves the GameWindow the Texture stays there and it appears to have two cursors on the screen. You could set rules that if mouse > screenWidth don't draw but if you move the mouse with anytype of speed it never updates. To work around that I set: Mouse .IsCaptured = true ; Which works great. Till the GameWindow loses Focus. Once the Focus is lost the cursor does not act the same. IE: Prior to losing focus, cursor will go UNDER the top blue windowbar (where ...Show All
Silverlight (formerly WPF/E) Info on support for other platforms?
Hi, I know that as of right now MS is only planning on supporting the browsers that are currently supported in the CTP, and I've read on a developer's blog that MS will be relying on partners to implement support for other platforms. Is there any of this work with partners underway Is there anything else that I'm missing I'm giving a presentation on WPF(/E) to some execs at my company, and I'd like to be able to mention something about support on other platforms because I know this will be a con when compared to Flash. Thanks, HV "WPF/E" was built for the internet and as such should work anywhere people browse from. That said, we have limited resources and we need to optimize our effort around th ...Show All
Visual Studio Express Editions how can i populate a combobox from multiple textboxes and save
Hi i would like to know how i can add the text in multiple textboxes to the drop down list of 1 combobox and save the list to a user setting so when the program is restarted the list will still be there. Thanks I'm new at programming. i have not yet messed with datat bases. can you post a sample code. Thanks ...Show All
SQL Server Cascade delete contraints - accessible through TSQL?
Hi all, I was wondering if there is an easy way to loop through all contraints in a database and programmatically set the cascade delete to ON. I have a database with hundreds of contraints, so individually setting cascade delete on them is not optimal. Thanks for any info in advance! I think that the constraints are simply held in one of the system datatables, is there anyway to simply update that table ...Show All
SQL Server Connection Error: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.
Hello, Please bear with me as I am no Sql Server guru, but am getting this error that is preventing me from continuing with my development work. I am the only developer on my team running Sql Server 2005 and it has been working just fine for the last week. I opened the Management Studio this morning, just like every other morning and got this error: TITLE: Connect to Server ------------------------------ Cannot connect to (local). ------------------------------ ADDITIONAL INFORMATION: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233) Of co ...Show All
Windows Forms Open Form, Close last form
This is giving me a headache. I'm trying to be able to switch between two forms constantly. So I click a button, main form closes, next one opens. Then I click button on second form, second one closes and first one opens again. Each time they get open they must be new instances. So far for the second form's button I have Form1 form = new Form1(); form.Show(); this.Close(); Which works fine between the two except the second form isnt really closing. (Should be disposing). When I try this.Dispose(), the whole program exits before the main form opens again. Any ideas Something is really wrong. When you close your 1st form after showing the 2nd form, your application should terminate. Please show us the c ...Show All
Software Development for Windows Vista Runtime heavy CPU Load
I want to have a single runtime which will be able to run several workflows here I thought on a remoting server I start my runtime once and attach several workflows to that runtime instance. But the Problem for me it seems that the runtime is always producing 100% CPU load Can anybody tell me if my idea is wrong, may be suggest better one. Or do I have some config problem I create a workflow runtime like this: runtime = New WorkflowRuntime() runtime.StartRuntime() Console.Write( "Workflow started" ) Console.ReadLine() than I see my machine utilization is 100% without staring a workflow instance. ( using 2.2) thanks Wolfram The Problem only exists in VS2005, ...Show All
Microsoft ISV Community Center Forums Action Pack Question
I am interested in the Action Pack. I understand that it comes with the Vista upgrade, not the full edition. I do not have 10 licensed copies of XP Pro to upgrade from. So does that mean I will need to purchase a licensed copy of XP Pro for each machine that I want to put the Action Pack upgrade version of Vista on The idea of providing upgrades in the Action Pack is ridiculous, the ammount of time it takes to install XP just to meet this requirement shows what Microsoft really thinks about it's partner's and how it values our time. For most Action Pack users I imagine that they will be buying or building new PCs due to the beefier requirements of Vista. I only hope it doesn't require SP2. (I am doing an XP build on a new PC as I typ ...Show All
Visual Studio 2008 (Pre-release) Generic Expand/Collapse of TreeViewItem
Hi, I am trying to Expanding/Collapsing All nodes (i.e. generic Expand and Collapse) of a TreeView by clicking a menu item or button. The tree structure is generated dynamically using HierarchicalDataTemplate . I have created a class like public class Expander_class : INotifyPropertyChanged { public static bool _expand_flag; public Expander_function() { _expand_flag = false ; } public bool Expand_flag { get { return _expand_flag; } set { _expand_flag = value ; OnPropertyChanged( new PropertyChangedEventArgs ( "Expand_flag" )); } } public event PropertyChangedE ...Show All
Visual Studio Express Editions how do i stop/exit a sub by using another sub i.e a button click?
how do i stop/exit a sub by using another sub i.e a button click I presume you want this because you are trying to escape from a loop which is running in a sub. One way is to use a flag, probably declared at module level, which is set by the button click and checked within the loop, which can then exit if the flag is set. ...Show All
Windows Forms expandable Controls
Ok, Sorry guys.. Im reading and practicing c# all at once.. but I have another problem... How do I make all control features exapand when I maximize a form For example.. lets say.. I have a richtextbox.. and I was to maximize a form.. how do I make the richtextbox maximize as well. See this... //Anchors the textArea to the bottom right corner of the form //When the form will be resized it'll go be moved towards bottom right corner! txtArea .Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); //Anchors the textArea to the bottom and Top of the form //When the form will be resized horizontally will show no effect but when you resize vertically you text area will be expanded. In simple words its initial position will rem ...Show All
Visual Studio Express Editions Get all running processes
hey im trying to find a good way to find the name of all running processes i have tried using this ; but its quite long and random Dim c As String Dim d As String c = 1 d = "" Do Until c = 10000 Try d = d & Process.GetProcessById(c).ProcessName & Environment.NewLine Catch ex As Exception End Try c = c + 1 * 1 Loop MsgBox(d) im sure theres a better way to do this if anyone can help please Well, console.writeline is for a console program, like Window's Command Prompt. IF you want a UI try this: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Procs As Process For Eac ...Show All
Software Development for Windows Vista using InkOverlay with transparent panel
I'm creating a transparent panel using WS_EX_TRANSPARENT and WS_EX_TOPMOST window properties. I'm also using InkOverlay with autoredraw set to false and doing the painting of existing strokes via Renderer.Draw. It works fine for some time. I can see strokes being painted.However, if I close the form with the panel and reopen the form again, the ink on the panel stops responding to stylus and mouse, even though the panel is still receiving mouse events (I can see that via Spy++). It takes some time for it to start working again (very odd behavior).If I don't set WS_EX_TRANSPARENT on the panel, InkOverlay works fine.Has anybody seen it or have any input Thanks in advance.Vlad Hi Vlad: I'm not exactly sure ...Show All
Visual Studio Tools for Office Table.sort method generating error
Hi all, I want to sort a table in my documnet on second column which is a numeric column. when i use table.sort method it gives me the following error: Parameter value was out of acceptable range at Microsoft.Office.Interop.Word.Table.Sort(Object& ExcludeHeader, Object& FieldNumber, Object& SortFieldType, Object& SortOrder, Object& FieldNumber2, Object& SortFieldType2, Object& SortOrder2, Object& FieldNumber3, Object& SortFieldType3, Object& SortOrder3, Object& CaseSensitive, Object& BidiSort, Object& IgnoreThe, Object& IgnoreKashida, Object& IgnoreDiacritics, Object& IgnoreHe, Object& LanguageID) here is the code for sort method object ExcludeHeader = false ...Show All
SQL Server MICROSOFT JET OLEDB 4.0????
hi i have another question.. is this connection provider supported on servers running under 64 bits if not which provider should i use instead is there any service pack or upgrades for this i think this is the problem running my job.. there's no other option left.. it is not permissions.. the path of the connection manager exists, the file destination does exist as well.. the curious thing is that my dts runs fine from SSIS but fails using the job.. do i need to have installed excel in my server to do this or any other component Hi Michael, Thanks for help. Connection to Excel works. Can you take a look on another problem bellow I use Flat File Connection manager in different package. The package creates ...Show All
