crazyabtdotnet's Q&A profile
Windows Forms Public controls or not?
I want to know that it will be a problem if i make the controls in my application public Because it's easier when they are public,but what are the disadvantages of this Cygnus This is a very subjective issue. If your application is a million lines of code, you don't want the global symbol table to have ten thousand variables in it, because it will slow things down a bit! If there is a lot of code re-use on your team, and you're building n-tier solutions a business object that requires a reference to a form that may or may not be there won't promote re-use. Seperating business rules & logic from the presentation seems like more work initially, but in the end it makes for a much more productive pro ...Show All
Visual Studio Team System FxCop Microsoft.Design and Generic outputs
Working on a deserialization loader mechanism, I started out with a public method signature which looked like this: public static T Load<T>( string filename) FxCop suggests: CA1004 : Microsoft.Design : Consider a design where YamlLoader.Load(String):T doesn't require an explicit type parameter in any call to it. I what it's suggesting is that invoking this method with code like this may be hard to understand because of the part in the angle-brackets below. Foo temp = YamlLoader.Load<Foo>( "temp.yaml" ); The only alternate design that seems obvious to me would be: public static void Load<T>( string filename, out T output) with calls looking like this: Foo ...Show All
SQL Server Unable to start T-SQL Debugging. Could not attach to SQL Server process on
Please help! I cannot debug CLR procs remotely. Whenever I try to start debugging in VS2005 I get the error: Unable to start T-SQL Debugging. Could not attach to SQL Server process on .... I have clr enabled set to 1 and I have Allow SQL\CLR Debugging set on. But I continue to get this error. Any help would be greatly appreciated. Thanks! GN Hello, Since one machine is on a domain and the other is in a workgroup. Try creating the same user on both machines with the same password. If both machines have an identical user/password combination it should work. e.g. <LocalMachine>\SQLUser MyPassword1 Then try debugging using the new user credentials on both machines. Also as a side no ...Show All
Visual Studio Express Editions format integer to XXX
i have an integer field with maximum size of 3, that is "000". when user inputs a value that is less than 1000, i accept it and format it to a string like: 005,010, 025, 380, 669 is there a builtin function can do this in C#.net 2005 or i have to do it myself please help and be more specific in code Because it's typecasted as an object since the DataGrid has no idea what could be put in there. If you know that it is an integer you can actually type cast it as an integer. If it were a double or a decimal - same thing just have to use the specific type of data type. staff_noLabel2.Text = ((Int32) staff_no).ToString("000"); much more conscice. ...Show All
Windows Live Developer Forums How to do search in sql server database for all properties (with long, lat) that fall within selected map area?
Would like to create site with similar functionality tohttp://www.realtysouth.com/consumer/listing/ListingSearch.aspx SearchType=map&ListingType=1&ListingSearchID=&RECoJumpSearchID=&action=&defaultlevel= for our site www.mls.ca How to do search in sql server database for all properties (with long, lat) that fall within selected map area thanks steph Are you after this CREATE PROCEDURE dbo.FindAddressesWithinBounds ( @long1 float , @long2 float , @lat1 float , @lat2 float ) AS SELECT a.[street number] , a.[street name] , a.[city] , a.[province] , a.[long] , a.[lat] FROM dbo.myaddresstablename a WHERE a.[Lat] >= @lat1 and a.[Lat] <= @lat2 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Here we go!!
http://www.microsoft.com/downloads/details.aspx familyid=21e979e3-b8ae-4ea6-8e65-393ea7684d6c&displaylang=en Not "supported", just "compatible", there's a difference. I doubt they'll support it on anything other than XP. ...Show All
Software Development for Windows Vista DirectShow Editing Service - Timeline Sources Preview Problem
Hi everyone, In my DES application, i have a timeline. My application add sources to timeline dynamically. When i want to preview timeline, it only plays first source, not others. However i can see all sources timeline's xml file. I can also see all sources in timeline's grf file when i open grf file with notepad. But in the preview (in my application or in GraphEdit) it only plays first source. Anyone can help me Thanks, thanks. I found problem owing to you. I calculate times from media's framecount and fps. My calculation is wrong. And i see value '6225' but i didn't notice. I am blind. Thanks again. Now it's working. ...Show All
.NET Development msmq Recieve problem
We have encountered a problem with some .NET services (v2 - C# and VB) that make use of MSMQ. They (for no apparent reason, and no erorr messages) "terminate unexpectedly". It appears to be a call to MessageQueue.Receive that causes this to happen. Prior to this, several tens of thousands of messages had been processed successfully. There appear to be some hits on the web of a problem like this, but with no resolution. The services just stop. No graceful Exception handling or anything. Any ideas Thanks Tony Sounds like an unhandled exception. Add try/catch and log any exception you get to debug this. ...Show All
Windows Forms Working with TreeView and ListView
Hi @ all ;) i have a tool, where is (like the Windows Explorer) on the left side a TreeView and on the right side a Listview. Now, when i click on a node the ListView shows correctly the right path of the Node. Eg.: C:\windows. Thats ok ;) But now my Problem: How do i open the right path in the TreeView, when i click an Item in the Listview I think it goes with ListView1.SelectedIndexChanged, but i don't how. I searched for it mor than 3 month *smile*, and no body can help me ! cu Alex but, can you help me with a little bit code I dont'nt know its going with recursion. i am new in C# ;) alex //Edit: I 'am wondering about: This function starts with the Floppy an goes do ...Show All
Windows Forms datagridview cell editing
I am programatically trying to edit some cells. I change the value using DG[index1,index2]=value. Then I execute EndEdit on the DG. But I notice that the currentcell is not the cell I edited. It seems to be causing problems. What is the best way to make sure changes are committed to the DataGridView once I make changes programatically. Thanks Nik If you want to programatically edit a cell, you can try by DataGrid. Rows[0].Cells[1].ReadOnly = false ; ...Show All
SQL Server Thank you a lot it was helppful
Thank you a lot it was helppful ...Show All
Visual C# Time
Okay, so I am trying to make an alarm clock program for computer, to familiarize myself with C#. What I need help with, is I have the dateTimePicker tool for setting the alarm, and I have a label for displaying the current time. My coding problem, as it were, is that I cannot figure out how to make the label display the current time, or how to get my program to play the music when the time comes around. I already have the ability to open a file, and have set the file filters for WAV, WMA, MP3, MP4, and MIDI files. so, my program can open files, but of course, at this moment, it cannot use them. Any help would be greatly appreciated. But using WMP SDK just adds extra bulk to something I can do with ...Show All
Visual Studio 2008 (Pre-release) Dispatcher.BeginInvoke and application freeze
Hi everybody, In my application, I use Dispatcher.BeginInvoke() to allow a long method to be run asynchronously. But this doesn't prevent my application to be freezed during the call of Dispatcher.BeginInvoke(): i click on a button which call the Dispatcher.BeginInvoke() method, but this button (and all of my app) is freezed and i've got to wait before being able to use my app again.... How can I launch a method asynchronously so even if it's a long method, I'm still able to use the app I tought Dispatcher.BeginInvoke() could do it but it looks like not..... Thanks http://blogs.msdn.com/nickkramer/attachment/553378.ashx Look at the examples in this document ...Show All
Visual Studio Team System Project->Tasks: bogus start dates?
So I have a fairly simple MSProject plan. I set up the tasks, assign to developers, input the work and get the calculated durations and, after leveling, start/end dates. All looks good in Project. Now I point it to a TFS project and do my Publish. All of a sudden, the Start dates for a handful of tasks get pushed out *months* from where they should be. For example, a task slated to begin in two weeks suddenly gets a start date of next May (even though the entire project is complete by this December). On the GANTT, you see a line drom the previous dependency vanish off way to the right. Funny thing is that I can Clear the leveling and re-level, and the dates in Project are right. But as soon as I Publish, they screw up again. Same tasks, di ...Show All
Visual Studio Express Editions Executing transaction within Visual Studio
I've a datagridview bound to a database (I've drag-n-dropped form the dataset to my form!). When the user uses the "red cross" toolbar button to delete a record, I need to execute this: ---- BEGIN TRANSACTION; DELETE FROM fornitori(id_fornitore = @Original_id_fornitore) AND (@IsNull_nome = 1) AND (nome IS NULL) OR id_fornitore = @Original_id_fornitore) AND (nome = @Original_nome); UPDATE fatture SET id_fornitore = 0 WHERE id_fornitore = @Original_id_fornitore; COMMIT; ---- But if I try to enter this I get an error: http://www.zane.it/Immagini/screen/Visual%20Studio%20delete%20command.gif So... how do I execute this transaction on detele Reposted at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=560856&SiteID=1 ...Show All
