Chris Honcoop's Q&A profile
Visual C# Dispose question
I have a form with a private member that implement idisposable. Therefore i need to dipose the members. But the dispose code is generated by the designer. How can i dispose the member The way i did was to handle the Form_Closing .. and in that handler .. i call the dispose .... is there another way that is better/cleaner/good practice GoDaddy wrote: I have a form with a private member that implement idisposable. Therefore i need to dipose the members. But the dispose code is generated by the designer. How can i dispose the member The way i did was to handle the Form_Closing .. and in that handler .. i call the dispose .... is there another way that is better/cleaner/good practice ...Show All
Visual C++ Windows Media Player - Visual C++ Runtime Library
OK...I am not sure if this is where I need to post this, but it looked like the place. I am running Windows XP I have been trying to open my Windows Media Player 10 and this is the message that I get.... --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Assertion failed! Program: ...rogram Files\Windows Media Player\wmplayer.exe File: .\geiss.cpp Line: 509 Expression: hdc == NULL For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts (Press Retry to debug the application - JIT must be enabled) --------------------------- Abort Retry Ignore I have tried downloading WMP again, but nothing. The player was working O ...Show All
.NET Development Manually disconnect from network?
Is there a way in C# to disconnect from the current network Thanks, What exactly do you mean by disconect from the current network Could you please be more specific If you are wondering if there are APIs to do such things are change the wireless AP you are connected to or disable/enable a NIC the answer is there are no such APIs exposed in the framework for that ...Show All
Gadgets Gadget for my site...
I would like a gadget for my personal site that would be able to pull dynamic content from a message board and list the 'hot topic' or top 5 topics in a seperate little window when you click the gadget. I click it...the window opens...and the selected content is displayed... Thanks, Chris Well it depends how you want it to look. I have created a few "branded" gadgets for reading RSS feeds. Example 1: Engadget Headlines Example 2: Kotaku Headlines I'm not saying you should develop it to look like these, just that you could, and have different pages for different sub forums. Or whatever :) I'm happy to help with it when you get more information. Andy ...Show All
.NET Development Repeating Element Name Problem with xsd.exe
Hi, i generated a dataset with xsd.exe by my xsd file. What i am trying to do is to fill the dataset and generate an xml as fallows (It is valid for my xsd): <root> <ELEMENT1> <ELEMENT2>11<ELEMENT2> <ELEMENT2>22<ELEMENT2> <ELEMENT2>33<ELEMENT2> .......... <ELEMENT1> <root> Anyway, with the datasate created. When i add an ELEMENT1 Row it always generates the xml like: <root> <ELEMENT1> <ELEMENT2>11<ELEMENT2> <ELEMENT1> <ELEMENT1> <ELEMENT2>22<ELEMENT2> <ELEMENT1> <ELEMENT1> <ELEMENT2>jhgkjhk<ELEMENT2> <ELEMENT1> <root> I think it is because ELEMENT2 is a ...Show All
SQL Server Error connecting to localhost site to view SQL server Mobile Agent on Device
I have set up a locahost site in IIS using the "Configure Web Synchronization Wizard". One of the first test I was asked to do was to open a broweser and browse to http://localhost/MobileTest/sqlcesa30.dll If all is well I should get a web page with the following line: SQL Server Mobile Server Agent 3.0 But unfortunately I get an error stating : " The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance." I checekd the Event log and found this error related the IIS launch process on my machine. DCOM got error "Logon failure: unknown user na ...Show All
Visual Basic Open default email program (Outlook, for example) when pressing a link
Hello all, iu have a question: My app has some labels with email adresses, what i want to do is some kind of linklabel but instad of oppening an internet adress, i want it to open, for example, outlook, with the adress in the destination field (many programs does so), also, it would be fine if i can personalize a default email subject and text, but if i can open the program and put the adress i am already happy enough :) Thanks Sorry i didnt specify, i am programming in Visual .NET so you are using C# Well its a different language and the incorrect forum to post in :-) C# code: System.Text.StringBuilder theStringBuilder = new System.Text.StringBuilder(); theStringBuilder.Append ...Show All
Visual Studio 2008 (Pre-release) How do you enumerate an IQueryable?
There is a prototype for the CreateQuery method that returns an IQueryable, as opposed to IQueryable<T>. I can't seem to find a way to enumerate through an IQueryable. How is it done Thanks. Yeah, I know that, but I still can't seem to enumerate through an IEnumerable. Here is a method I added to my entity classes that were generated by SQLMetal for Northwind: [Function(Name="[dbo].[MinUnitPriceByCategory]")] public IQueryable MinUnitPriceByCategory2(System.Nullable<int> categoryID) { MethodCallExpression mc = Expression.Call(((MethodInfo)(MethodInfo.GetCurrentMethod())), Expression.Constant(this), new Expression[] { Expression.Constant(categoryID, typeof(System.Nullable<int>))}); return this.C ...Show All
.NET Development Question regarding TableAdapters.
I was reading the overview of the TableAdapter, and noticed this sentence: "In other words, you can have as many queries as you want on a TableAdapter as long as they return data that conforms to the same schema." What if it doesnt What one of the columns I do not need Example: The main Query schema is Select * from tbl, but I need a query that is only Select Name,ID FROM tbl Any damage no damage I believe. your select statement tells SQL to get me all the columns available in this table, therefore all columns in that table will be returned. if you specify a specific column to retrieve: SELECT [Address] FROM table and execute this query, then there maybe a SQL Exception throw ...Show All
Visual Studio Express Editions Chart Control
Hi Guys, Does anyone send me a copy of chart control for vs2005 My email is jameskuo@cox.net Thanks james The chart control is only available for VSTO and not the Express editions. You can read more about it here: http://msdn2.microsoft.com/en-us/library/kx2ttx0a(vs.80).aspx ...Show All
SQL Server Help!! "The report server has encountered a configuration error........"
Hi There, I have installed Sql Server 2005 on my machine. I've managed to created report, but when i try to deploy e same, I'm getting e following error...am i missing something here The report server has encountered a configuration error. See the report server log files for more information. (rsServerConfigurationError) Access to the path 'C:\Program Files\Microsoft SQL Server\MSSQL.4\Reporting Services\ReportServer\RSReportServer.config' is denied. Hi, I am having similar issue trying to launch report services by http://localhost/reports . I got the following error when try to launch it. The report server is not responding. Verify that the report server is running and can be accessed from this computer. I u ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem scaling a model
Hi, I am not sure if someone already posted something on this, but here's my question. I bought a .fbx model from turbosquid.com and I would like to scale it so that everything looks proportionate. The problem is, parts of the model become out of place (for example, the wheels are no longer connected to a truck) after scaling it. I scaled the model by using this code: Matrix[] transforms = new Matrix[model.Bones.Count] model.CopyAbsoluteBoneTransformsTo(transforms); . . . Effect.world = Matrix.CreateScale(new Vector3(0.5f, 0.5f, 0.5f)) *transforms[mesh.ParentBone.Index]* Matrix.CreateTranslation(position); Thanks in advance. My suspicion is that the wheels of the truck have their own matrix (bone) and that ...Show All
SQL Server im going crazy
I just got bought a used computer, and Im trying to change the server name, I've changed the computer name and restarted the computer, I've also used query analyser and changed the server name, but when I try run an c# appication that connects to a sql database I get a server does not exist/access denied error message. when I go to enterprise manager and server service manager the server name still comes up as PICARD\HOMESQL obvuiusly I cant use a "\" in the connection string of my windows application. does anybody know how I can change the server name to PETER. thanks in advance Thank you very much. My application work fine now. I see what the problem with my connection string was n ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Clueless on getting started
I got all the programs downloaded that were listed on the Microsoft site. the problem I'm having is that I'm going over the 2d tutorial in xna and it says loading a bmp file. Which I know is an image file. What do I use to draw it Is there any image rendering in the way of actually making the image or is it all code I'm just getting stuck and could really use some help. Sometimes things can seem a bit daunting. I have started a tutorial on XNA game programming for beginners. Visit my blog at http://msikes.spaces.live.com/ , I take it step by step and have graphics that you can download to get you started. Mike ...Show All
Visual C# Searching Text or Unicode strings
I would like to be able to take 1 file with entries, like: COMPARE FILE: _________________ siteone.com sitetwo.com sitethree.com _________________ And search a file for matches... But it seems like if I loop through each entry (siteone.com, sitetwo.com, etc.) it will take forever. How can I search contents of files to compare to see if there is a string of text in the file It needs to be quick because it will be searching tons of files... I could check with each loop, but then if there are 2000 entries in the compare file, and it takes 2 seconds for each compare, then that would be like 30 minutes per file... I am just throwing numbers out there, so I am sure it is a little quicker than that, but if I am doing 100 files a minute, ...Show All
