tthulin's Q&A profile
Visual Studio 2008 (Pre-release) Video Restart Button
Hey All, I am making a WPF video player and it is working well. I have buttons to Play, Pause and Stop the video but now I want a restart button. Anyone know how to accomplish this Thanks, Dvl lee d wrote: MediaElement1.Position = TimeSpan.FromSeconds(0) My movie name is myMediaElement and I put this code in for the restart button: myMediaElement.Position = TimeSpan.FromSeconds(0); and nothing happens; the video keeps playing. I am doing a trace so I know my button is being fired. Any suggestions Thanks very much, Dvl ...Show All
Visual Studio 2008 (Pre-release) Automatically release the listbox
I use a process of self-definition in the listbox. Since the definition of a listbox of some of the formats and styles. When I wanted to jump between the listbox of the items found on the screen does not show the item was automatically released. For example, the following code ListBoxItem Item = mainListViewControl.ItemContainerGenerator.ContainerFromIndex(_contentsList.Count - 1) as ListBoxItem; if (Item != null) { Item.IsSelected = true; Item.Focus(); } "mainListViewControl" is my definition of the ListBox. If the screen shows no designated item, the item is null. I have no way to jump to a specific item. How should I jump to a specific item ...Show All
Visual Studio Team System Change in Team Edition / Team System Direction??
I'm starting this thread because all of the threads regarding DB Source Control, being able to open DB Projects in other versions of VS and other questions have gotten me to thinking and researching what is actually the reasoning / usage of Team System It would seem to me that DataDude may have gotten off track compared to the other TS Editions. If we all think back to when TS was released, we were forced to make a choice as to what edition we would migrate to. Most of us probably chose Developer. More important, the original intent (as I understood it) was that ALL TS Versions would have - 1. the same development capabilities (all types of projects, all languages, all technologies (i.e. Windows Forms, ASPNET, Web Services, etc.) ...Show All
Visual Basic How to set starting index to 1 instead of 0?
Hi. I 'm converting a program from Power Builder language to VB .Net. This project needs to use a dll file to communicate with a card reader. The thing is, when I have to call a function from the dll file and get reference value from the function, I need to use an char array that started with 1, instead of 0. The char array size is 10. I declare the dll function using this: Public Declare Function GetA0B0 Lib "MCard.dll" ( ByRef szMfgNo As Char ()) As Integer And to call the function: Dim lc_rtnmfgno(10) As Char Dim li_rtnval, li_counter, li_limitread As Integer li_limitread = 4 For li_counter = 1 To li_limitread li_rtnval = GetA0B0(lc_rtnmfgno) If li_rtnval ...Show All
Visual C# Error : Rejected Safe Mode Action
Hi, i am trying to open an existing Excel file using windows service.. the code is as follows : Excel.Workbooks objBooks = objApp.Workbooks; Excel._Workbook objBook; objBook = objApp.Workbooks.Open(FilePath,0, false , 5, "", "", false , Excel.XlPlatform.xlWindows, "", true , true , 0, true , false , false ); when i run this service i get the following error in event log : Rejected Safe Mode action : Microsoft Office Excel. Faulting application excel.exe, version 11.0.6560.0, stamp 4296b6f2, faulting module mso.dll, version 11.0.6568.0, stamp 42e18ef6, debug 0, fault address 0x0003446c . how can i correct this Thanks in advance, Sajitha Yes, it has the only l ...Show All
SQL Server Make a field unique
How can i modify a field in SQL SERver 2005 to make it unique ALTER TABLE myTableName ADD CONSTRAINT constraintName UNIQUE (myField) ...Show All
Visual C# URGENT: Corrupted DataSource list
Hi, Hope someone can point me in right direction as development is completely halted by this issue. I have added a datasource to my project, noticing there was a naming convention mistake in a proc it referenced, I recreated the class, and removed the previous reference, by deleting the file (think this caused the problem) and then deleting the reference to it in the Properties\DataSources folder in my project. Now I can't select any datasources to create databindings on any control over my whole project. The dropdown in the property box of the controls wont even open, giving me the error message: "Object reference not set to an instance of an object" as soon as I click it. I have removed all references to the datasource ...Show All
Visual Studio Express Editions syntax highlighting in visual C++ express...
Hi all, just a quick question. I noticed that when you close a brace { } the braces turn bold for only a second. If your brace is far away, you cannot scroll back fast enough to see the block that it closed. Does anyone know where I can set it so that if the caret is after the closed brace it automatically highlights the opening brace for that block and remains highlighted until I move the caret rather than scrolling or only a 20ms delay Or maybe is there a shortcut key to have it reflash the open-close brace pair in bold It seems frustrating to not be able to detect the brace pair for more than half a second. Thanks for the help! Hi, while I don't know if the braces can be highlighted aga ...Show All
.NET Development Accessing Indexers using Reflection
Hi, How to access the indexers using reflection. I would like to get the values based on the index. Please help me. The following should work i think A a = new A(); // Get the indexer property of type int, in my case i needed to use Item for the property name PropertyInfo pi = a.GetType().GetProperty("Item", new Type[] { typeof(int) }); // get the item on index 0 pi.GetValue(a, new object[] { 0 }); Greetings, GJ ...Show All
Visual Studio VS2005 get corrupted binary files!!! VS 6.0 can still get it!?!?
Dear forum members, I have a huge problem. When I check in a Access database in VS2005 and do "Get Latest Version" the file is always working (= not corrupt). If I get the history the Access database is corrupt whilst VS6 can still fetch the whole history on the same repository without any problem! ! ! ! I have run the latest hotfix (KB923434) but still didn't work. Also remarks that the hotfix should only work from installation moment on doesn't make sense because VS 6.0 can get it! Autodetect Filetype is checked and *.mdb added as Binary file type. Analyze didn't help at all ... So I am lost and seriously thinking of going back to VS6.0 ... HELP !!! Is the same true ...Show All
.NET Development Develop a Game Server Control Panel
Hello Everyone, I want to develop a game server control panel like www.GameCP.com and www.kronos-cp.com . I am new to game server control panel programming, so i want to know how can I integrate with game server and perform all the tasks like start/ stop/restart server, check how many users connected to the game server etc. using asp.net. Thank You Hello, Thank you for your reply. I wanted to deveop a contol panel fo game server. I want to know how we can issue RCON commands to game server, how we can start, stop, estart, shutdown the sever. If this is clear to me then I can start to develop that, but still I did not get any clue, as I am new to th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can SOMEONE PLEASE HELP ME? I need help learning XNA-C#
Can somone help me PLEASE I need some help learning how to make games and that type of stuff using the C# XNA program. If anyone can help me, let me know. I would like a site that can lead me threw one step at a time and is easy to understand if posible. Thank you =) -Ryan Do you already know how to program Do you know how to program in C# Have you made a game before Knowing your skill level would help a lot in knowing where to direct you to. Also, just for fun, take a moment to peruse the " Where to Find XNA Documentation, Including Tutorials and Samples " sticked link in the forum. Lots of great information there for you to start with. ...Show All
Visual Studio Express Editions Maximize preview...
HELP... i dont know how to maximized the size of the printpreviewdialog ... Dim ppd As New PrintPreviewDialog ppd . Height = Screen . PrimaryScreen . Bounds . Height ppd . Width = Screen . PrimaryScreen . Bounds . Width ...Show All
Visual Studio Express Editions looking for help
I want to create a basic payment tracker. I would like to track two items. First I want to track payments and second I want to track balances. I have a sqldatabase that I have created to input the client info. now I just want to be able to track all of that clients payments and balances. I would also like to be able to see a average of the total payments and total balances. Can someone tell me the easiest way to create this Thanks I am still very new to VB but I am learning. You can make an EXE, and even embed an Excel spreadsheet in the EXE, but probably not the way you want: to modify the Excel spreadsheet you will need Excel (the application) to be installed, and use automation. ...Show All
Visual Studio Team System Web Tests during build fails Http 404 from website
I am upgrading a 2003 solution to 2005 and am using Web Application add-in but, I am afraid that the set up of a team build that includes web tests is not clear to me. In addition to that deploying the app to multiple servers seems as easy as a 500 page soduku puzzle. Anyway, the build I have set up fails when trying to run the web tests. When I recorded the web test, it was done using on the built in IIS at localhost:2435. I went ahead and created a web site on the build server to run on port 2435, but when the test task runs the web test receives a 404 error because the web application was not deployed. Shouldn't the script deploy the site prior to ru ...Show All
