kcchesnut's Q&A profile
Visual Studio 2008 (Pre-release) MediaElement VisualBrush Code generated
For sure I miss somthing but, while in XAML MediaElement as material works: <GeometryModel3D.Material> <MaterialGroup> <DiffuseMaterial> <DiffuseMaterial.Brush> <VisualBrush Stretch="UniformToFill" TileMode="None"> <VisualBrush.Visual> <MediaElement UnloadedBehavior="Play" Source = some.wmv" /> </VisualBrush.Visual> </VisualBrush> </DiffuseMaterial.Brush> </DiffuseMaterial> </MaterialGroup> </GeometryModel3D.Material> ... when created by code nothing appear: MediaElement me = new MediaElement (); me.UnloadedBehavior = MediaState .Play; me.Source = new Uri ("some.wmv" , UriKind .RelativeOrAbsolute); ...Show All
Visual C++ CSplitterWnd and MDI (like VC6 IDE)
Hi, I am trying to prototype a user interface that is similar to that of VC6. That is, a splitter should devide the main frame's client area into 2 sections. The bottom area is a SINGLE list view (analogous to the compiler output pane of VC6), and the upper area is dedicated to MULTIPLE views of the Multiple Document Interface. I can't seem to find a way around this requirement from samples provided by MSDN documentation, although this kind of interface is quite natural and common. I need help in pointing out the right way of overriding methods of CSplitterWnd or subclassing the CSplitterWnd and CMDIFrameWnd classes (since my study so far seems to point me in this direction.) Any guidance is pretty much appreciated. Huy ...Show All
Visual Basic DataGridViewComboBox throws an error when formating display
I was finally successfull in getting my DataGridViewComboBox (DGVCB) to accept my input and I got the data into my SQL database. The problem now is that the form won't display the data in the cell apparently because there are no choices in the drop-down list. I filled the city lists (columns 2 and 4) on-the-fly based on the state chosen (columns 1 and 3). Is there any way to turn off this validation Do I have to give the cell a choice before it will display my data I can get the data to show up in the cells if I provide a data binding, but then it won't let me provide data for the drop-down lists. Catch-22. ARRRGH. Please to help if you so desire. Thanks ...Show All
.NET Development Why am I getting OutOfMemory Exceptions???
This is the second time I have asked this question. I will try to be more specific this time. I have written/deployed a service in C# using VS.NET 2003. This guy is getting OutOfMemory exceptions which I cannot explain. This service does consume (managed) memory from the heap. However, all pointers to the uses of managed memory are held in local variables with my class's methods. I don't have any class level variables (like arrays) which hold pointers to managed memory. So, when these class methods (that consume memory in local variables) go out of scope, then I expect that the memory becomes available for release by the Garbage Collect thread. I have added a call to the GC.Collect() method to manually initiate the Garbage Coll ...Show All
Community Chat Zune and the iPod
I've been following the Zune announcements fairly closely here at work. If you follow my blog, you'll see that I'm pretty passionate about media technologies, and recently went through the pain of migrating away from iPod/iTunes and onto Yahoo Music/Gigabeat S (Portable Media Center). Here the blog category where I talk about it: http://blogs.msdn.com/joemorel/archive/category/13772.aspx Now Zune is in the mix. It looks pretty neat, but I'm not sure if people are really going to go for the whole WiFi thing. I'm just not sure that I want to listen to the same music as the person sitting next to me on the bus. What do you think The WiFi option is interesting, but I doubt I'd use it to share music too often. I was very disa ...Show All
SQL Server ROW IN A SPESIFIC ORDER
I HAVE FOUR ROWS IN A TABLE & I WANT THEM TO APPEARS IN A SPESIFIC ORDER AND I DON'T WANT TO SORT THEM. please help me Exp: SQL Sort LIKE ASAP C.F.E.D Others Zama And I want to Sort Like C.F.E.D ASAP ZAMA OTHERS ...Show All
Windows Forms Populate listbox in window1 from window2
Hi How do i populate a listbox in window1 from window2. Have a lisbox named "listbox1" in window1. Cant just write "listbox1.Items.Add()" to populate the listbox from window2 Regards Fredric Hi., you should implement one public method in Form1 which add item to listbox1.Items. In my opinion, you should not give public access to your controls in form1. And passing form1 as parameter to form2 constructor is only pass the reference of form1; not a new instance. If you don't have the reference of form1, how can you access it. public class Form1 : System.Windows.Form { ... ... ... public void AddItemToListBox(object item) { this.listbox1.Items.Add(item); ...Show All
Windows Live Developer Forums Live Expo application key issue
i've been getting the following error about 1/3 of the time when accessing Live Expo. i am using the same application key. is there a limit on the # of accesses/queries allowed for a given key during a time period has anybody run into similiar problems <error><errorCode>PermissionDenied</errorCode><errorMessage>Invalid Application Key</errorMessage></error> This is still occurring. Is there anybody from MS in this forum I understand the API is in Beta but this looks like a setup problem that somebody from MS should look into. How do people test the API if this error keeps popping up ...Show All
Visual C++ Compiling VC++ old code in VC2005
Is there any way we can make VC2005 compile some old C code in the exact same way that VC++6.0 did Yes, the VC2005 can compile C code. Just name your file as .c. Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Hi all Please help me. I have an asp.net 1.1 (vb.net) application which accesses data from a sql server 2000. I published this application on http://test.autenmas.co.za and the database I access is on 196.23.156.196. I am getting this error message when I run the application from this site: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied . But it's working fine on my local, development machine. I am using the following connection string in my connections: "Data source=196.23.56.193; Initial Catalog=Autenmas; User Id=xxxx; password=yyyy" Is there anything wrong with my code, is there anything that must be done on the web/database server or any other configurations for that matt ...Show All
Microsoft ISV Community Center Forums Runtime error 1004 when adding a seriescole to a chart
Hi all, this is a very stubborn problem of VBA and I have had to deal with it for years already: Excel version 2003 Error: Runtime error '1004' Unable to set the name property of the series class the macro creates several graphs with multiple seriescollections. Strangely, the first couple of graphs work perfectly! only after a couple of graphs the macro stops at the line ".Seriescollection(ibatch).name = batchfile(ibatch).charseriesname". I can't figure out why, as batchfile(ibatch).charseriesname contains a perfectly fine string Now I have to mention that this problem can also occur on other moments, when assiging other properties, such as the scaletype for the x-axis. Any help is highly apprecia ...Show All
Visual Basic My Visual Basic 2005 does not compile the source code in a .exe file only .vshost.exe , why is that and how can I change that ?
When I do a project, and click the "Save All" button. It saves it normally. When I try to debug the program whidin the IDE it reports an error that the .exe file does not excist ! Then When I look in the bin/Debug/ directory there is only a vshost.exe file. I really need some help because it really needs to be fixed (for me). By the way, why does ALLMOST every code sample in MSDN's section Coding4Fun has like a TON of errors. Like the Skype VoIP thing. Who can please alert Microsoft for that, because I can't sen E-Mails with a domain microsoft.com (I don't know why). I tried bgates@microsoft.com but it didnt work :) What kind of project have you created Before you debug a project you need to build it. You can use the Bui ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Numeric performance on 360
A question for the framework/VM guys... I have ported one of my simpler benchmarks to the 360, and find that the numeric performance is running 5x slower than my 2.8GHz P4 desktop. Now I was expecting a drop in performance on the 360, allowing for the difference in CPU implementation (in order execution / branch prediction etc), but nothing like this magnitude! The benchmark simply transforms a source array of Vector4s to a destination array of Vector4s, using a 4x4 matrix. Have you guys done any benchmarking of pure numeric perf, and if so is this in line with what you get Andy. You might want to read this in order to get some ideas about why numeric performance is lower than desktop, it's all ...Show All
SQL Server Parsing CSV name=value pairs into columns
Hello smart SQL people, I have a field in the DB that contains name value pairs in the form of csv. Is there a neat trick (using a stored proc) to get it to be diplayed as in columns (maybe create a view around it or somthing ) EX. Select 'name1=val1;name2=val2;name3=val3' as MyData --> Returns MyData ----------- name1=val1;name2=val2;name3=val3 ============================================ How can i get it to return name1 name2 name3 -------------------------------- val1 val2 val3 Thanks for the link. I would love to normalize the table but i have no access to do so, since i am just parsing through the output of a complete different applicatoin. There is an unlimited comb ...Show All
.NET Development saving datatable to a table in ms access
hi im doin a search form where i search through a table and find the records i first search and save the searched records in a dataset's table with the help of dataadapter i run the sql statement and dan Private Sub btnsearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click Dataset11.Clear() /// have to refresh it everytime for the new search If rbtncmpsel Then Me.OleDbSelectCommand1.CommandText = "SELECT * FROM Customers WHERE" & _ " (COMPANY like '" & txtsearch.Text & "%')" ElseIf rbtnfnamesel Then Me.OleDbSelectCommand1.CommandText = "SELECT * FROM Customers WHERE" & _ " ([first name] l ...Show All
