prasad_8104's Q&A profile
Windows Forms Midnight Cruiser
I actually got the seconds all right. I cannot figure out how to get AM or PM mark. It was there before I got the seconds but now it is gone. This is what I did: dataGridView1 . Columns [ 0 ] . DefaultCellStyle . Format = "MM/dd/yyyy hh:mm:ss" ; Thanks. (Moderator: Off Topic Post moved to its own thread) If it is based off of DateTime, which it should be, this works for DateTime.ToString("tt"); try this format "MM/dd/yyyy hh:mm:ss tt" ...Show All
Software Development for Windows Vista Windows vista
I received Windows Vista last week by mail. But I can't download it because of the error status: 0xc000000f File:\$windows.BT\Windows\System32\Drivers\ImageDRV.Sys Anyone know what to do im afraid this is the wrong forum to ask the question, the best place would probably the communities over at: www.microsoft.com/communities Thanks! ...Show All
SQL Server no luck w/ execute sql task and assigning variable
Hello, I've asked this question before and I've read the answers before and I still cannot get it to work. My task is simple, I want to use the execute sql task container to grab a value from a database and put it in a variable. I've done all the preliminary stuff such as running profiler to make sure that the package is getting the call to the database, setting up the ResultSet to be "single row" in the general tab, mapped the Result Set correctly, but nothing works. I get the same error every time. This is my sql command: select output_location as output_location from script_master Result Set is set up like this: Result Name: output_location ; Variable Name: User::output_location Here is the error I get: ...Show All
Smart Device Development SIP/ShowDialog interaction
Occasionally when we are coding a form with a second form shown with Form.ShowDialog(), and the user is changed the SIP state at the same time we get the following exception: ArgumentException at Microsoft.AGL.Forms.EVL.EnterModalDialog() at System.Windows.Forms.Form.ShowDialog() at 'ButtonHandler'... The dialog works the rest of the time.... Is there something in M.A.F.E.EMD that is sensitive to losing the current window to the SIP Mike ...Show All
Architecture ETW with Enterprise Library 2.0
How can i use ETW sink with Enterprise Library Application Logging Block 2.0 or how can customize the Enterprise Library Application Logging Block 2.0 to implement ETW with Enterprise Library Application Logging Block 2.0. ...Show All
SQL Server Process Hangs
the OK status is: I build 12 fact table point to 12 partitions, and a father-son dimention. the dimention get to the fact table by the key column(son). I processFull,processUpdate the dimention, it run well. I processFull the cube or the partition, it run well too. The Hangs status is: I use the Process Dimention component in the SSIS. I chose the dimention, and use an ole db Source component point to the dimention table,and in it I use a query to chose the new row:"select from AgentDim where newdata=1". In the IDE, run the package, it's OK. Then I save the package to file system, and run it by Sql Server Job Agent. Then it hangs, the job to run the package never stop. I stop the AS service a ...Show All
Software Development for Windows Vista Designer re-hosting related
Hi, Is there a way I can get information which activity or sub activity is being clicked from the designer What I want to do is give users right click (Context Menu) for activities and shapes in activity so that they can get custom data based in command clicked. e.g. I have extended logging mechanism and when user right click on an activity or its shape(ExternalMethodCall, WaitforExternalEvent,CodeActivity etc.), a context menu would be displayed and based on users' selection, a new form would be displayed having data related to that selection. I want this feature in runtime hosting and not in design time. Any one has any idea how to do this Thanks, Hiten You can subscribe to the selectionC ...Show All
Visual C# Static function cross thread sharing problem.
This is my code to close a form. public static void Clear() { if (form1 != null) { form1.Close(); <----- cross thread error } } first i got a problem with cross thread sharing. then i created a safe method to close the form. private delegate void Delegate(); private void SafeCloseForm() { if (InvokeRequired) Invoke(new Delegate(SafeCloseForm)); else form1.Close(); } so now i got public static void Clear() { if (form1 != null) { SafeCloseForm(); } } But i have new problem with the static method An object reference is required for the nonstatic field, method, or property... What should i do ...Show All
Windows Forms Custom Action dll in C#?
Is it possible Getting entry point not found when building. No it can't. Well let's put it this way. If you use .NET Installer classes in any managed code language, Visual Studio setup projects call them by inserting a shim C++ Dll between the MSI process and the Installer class. The MSI process calls the type 1 deferred custom action in the C++ Dll, and that cranks up the CLR to call a managed installer class handler. If the original question was meant to be something like "can an MSI setup call a C# Dll like it can call a C++ Dll" I'll stick to my original answer of "no". I suspect you may have set your custom action properties so that MSI tried to call a C# assembly as if it were a C++ Dll(because you set Ins ...Show All
Windows Forms Closing a Modal Form that is Showing a MessageBox Form.Hide() works Form.Close() does not.
I have a form that is shown using ShowDialog. The form is the UI for a long running process. The user may choose to cancel the application by pressing the form close button (red X) and at that time a Yes/No messagebox will appear. If the long running process completes while the messagebox is shown I wanted to close the messagebox and then the form. If the messagebox is not shown then the form Close method works. If the messagebox is shown then only the form Hide method will close the form. I am concerned that I am doing something wrong so I am looking for suggestions as to the correct method to employ . C# .Net 2.0 sample code that will demonstrate the issue is below, to get it to work change the this.Close to this.Hide. Start by creating ...Show All
Windows Forms ComboBox and TextChanged again (or still)
Hi, I see a couple of posts around this topic but oddly, not this exact question, at least not with an answer. I created two projects, both Windows Application, one in VB 2005, one in C#. I have .NET 2.0 installed. Each project consists of a form with a single ComboBox, and the DropDownStyle of the ComboBox is DropDown. I need to be able to catch both changes to the selection in the list or keyboard edits in the box. In both programs, I add an item to the drop down list when I load the form. Then, I try selecting and then editing. In VB, selecting the item first fires the ComboBox1_TextChanged sub and then the ComboBox1_SelectedIndexChanged sub. Editing fires only the ComboBox1_TextChanged. This is fine. In C#, however, selecti ...Show All
Visual Studio Team System FxCop cannot find documentation
Seems like a basic issue but when I Test the documentation location, I get " Content cannot be found". Here is the path listed: http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url = What am I doing wrong ...Show All
SQL Server Move database from SQLS2k5 to SQLS2k5Express
Hello, 1.) Can I move a database complete with tables, diagrams, relationships, stored procedures, etc. from SQL Server 2005 to SQL Server 2005 Express and preserve all the work I did 2.) Can I do the same from SQL Server 2000 to SQL Server 2005 Express and preserve all the work I did Thank you, dbuchanan Jemue, what connection string are you using to connect to your databse I have used SQL Express extensively, and never had any real problems connecting to database, but the user instance feature can get a bit confusing at times. Maybe if you give me a bit more detail about what you're trying to achieve, what technologies you are using, we may be able to help. Also keep in mind that you d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Basic Help Drawing Graphics
Hey, I have no cluue how to draw graphivcs in VB. Can anyone show me how Moving thread to "DirectX 101" You should download the DIrectX SDK ( http://msdn.com/directx/sdk ) and look at the samples in there. However,a complete beginner will probably find it overwhelming. I recommend first reading this post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=77027&SiteID=1 ) then visiting sites like Gamedev.net and reading their beginners forums. Don't be afraid to ask questions or ask for help, but you also need to first show you've attempted to look for the answers (for instance, a simple search on these forums would have shown you the link above). Lastly, knowing where to star ...Show All
.NET Development Custom settings types
I was wondering if it was possible to add custom objects the Type list on the Settings tab in the project properties dialog In other words, besides the built-in String, Int, Color, StringCollection, etc. classes, can I also add say an Employee object so I can access it via My.MySettings I have looked around but cannot find any examples or references that would point me in the right direction. Thanks. - Jason Johan, I apologize if I keep harping on this. Your help has been great. It seems that you response to point 1 and point 3 contradict each other. Point 1 says that the custom object will not show up in the designer. But then in point 3 you recommend putting the custom class in its own li ...Show All
