mgee16's Q&A profile
Visual C# file.Read statement in NPlot.
Background: I downloaded a graphics C# package NPlot from a website. It is freeware. I included the whole set of files (4 demos and a library + dll) into my project where I intend to use NPlot as a part of my application. After a few snags it easily compiled. A part of it is running lready, however, here is the situation I cannot resolve: <This code is part of PlotWave function in PlotSurface2DDemo.cs > System.IO.Stream file = Assembly.GetExecutingAssembly().GetManifestResourceStream("NPlotDemo.resources.light.wav"); System.Int16[] w = new short[5000]; byte[] a = new byte[10000]; file.Read( a, 0, 10000 ); I get an error at the last statement during runtime (debug): 'Use the "New" keyword ...Show All
Visual FoxPro Search Company function: Type any letters to find a few similar company names
Hi all I create the form to search the company name. I have the long list of company codes & names inside the table (company.dbf). Form Designer Company Name : <Text1> <Grid> Code | Company Name Search Command Exit Command For example, let say the company name is Visual Foxpro Ltd. Just type any letters such as ‘Fox’ on <Text1 > and then click on Search Command to get a few company names and u will see the result as below.. Company Name : “Fox” <Grid> Code | Company Name FASP &n ...Show All
SQL Server To Order More Than One Coloumn
Hellos; I have a lot of News. Only i want to get last 10 news and piorty is important for me to change orders of the news. So i add a new coloumn in the table (Piorty int) ... select top 10 NewsID, Piorty, Title, Spot from News order by 1 desc, 2 asc -- i want to get last 10 news than order by piorty (which piorty is bigger is be thre first) but in this query i just get last 10 news desc the piorty isn't imports even though i would get them order by piorty but last 10 news... How can i do that Please hellppp ... thnank you verry muchhh ... SELECT TOP ( 10 ) NewsID , Piorty , Title , ROW_NUMBER () OVER ( PARTITION BY Piorty ORDER BY NewsI ...Show All
.NET Development .NET 2.0 or 3.0 which one do I need?
Hi, is 64-Bit development possible with .NET Framework 2.0. If no which Visual Studio Version supports the 3.0 Framework Thanks, Thanks, just found the compiler setting under Properties/Advanced compiler settings, a bit hidden but still visible, ehh. Do you know maybe where to select the SDK (2.0 or 3.0) or is it taking just the installed Framework as default Rgds, ...Show All
Visual Studio Team System Cannot connect from clients
I cannot connect from VS2005 clients to the TFS. The server runs Windows 2003, firewall disabled. The client runs XP Pro SP2, firewall also disabled. When I open Visual Studio from the server (TFS does install Visual Studio standard, right ), I can connect to the server with Team Explorer. However when I try to do the same from the client machine I get an error TF31002: Unable to connect to this Team Foundation Server. Both machines are in a domain, the Active Directory user that is logged in the client is part of the Team Foundation group Project Administrators. From the client I can access for ex. http://<server_name>:8080/VersionControl/v1.0/Repository.asmx so it should not be a connection problem. Any suggestion Thanks, Francesco ...Show All
SQL Server Finding special characters: | ^ ~ & \
Hi All I need to write a query which will find any of the below characters are in any of the cells | ^ ~ & \ use northwind select * from employees where firstname like '%~%' or firstname like '%#%' or firstname like '%^%' or firstname like '%&%' or lastname like '%~%' ect...... title .... titleofcourtesy... The where clause will be massive. Is there a better way to write this script Thanks hi use this format: use northwind select * from employees where firstname like '% [ ~ ] %' or firstname like '% [ # ] %' or firstname like '% [ ^ ] %' or firstname like '% [ & ] %' or lastname like '% [ ~ ] %' for more info go to the books online good luck ...Show All
Windows Forms Highlight the DataGridView Column Header Cell
Hi, I have some dates in the datagridview colum header my problem is highligting the current date and time in the column header.i am trying to use datagridviewcolumnheadercell but it is not working.Painting the header based on some condition its like if(datetime.now==my condition(my headercell value)) { then i want paint the header cell } Yeah, the problem with that approach is that you're now obligated to paint everything on the header cells yourself - it looses the nice gradient/shadow effect and the text becomes a bland serif font. I already do that in my application (for other reasons.. One, I need some interesting formatting on the text, second, I wanted a gradient background on the header cells) but it's not trivial, because th ...Show All
Visual C# Exception???
System.ObjectDisposedException: Cannot access a disposed object named "DataGridTextBox". Object name: "DataGridTextBox"......I am getting this exception and unfortunaltly i dont know why or how to catch the exception so i know what line of code is throwing this....any help on how i can get this error handeled step through the debugger and see at what line the exception happens on. Usually it will take you to that line. You are trying to access/use an object that has been disposed of. It's an ObjectDisposedException so you are doing something after the object has been disposed of ...Show All
Community Chat your computer is ready to compute
as many know when you don't have the latest CPU you'll have to wait when your computer is ready to compute. also many handicapped persons, which area doesn't matter, are waiting when their pc is ready to compute. all other persons watch the LED of their HD, when it goes out. and watch the mousepointer becomes to standstill. whatever, the case is, you'll have to WAIT..... why don't you make a neat little program that can be implemented in any MS OS, Vista included, that tells you by sound and vision: YOUR COMPUTER IS READY TO COMPUTE. the idea is seen on Startrek serials which were made by the fabulous Gene Roddenberry. the computer on board of the Enterprise told their crew members that "she" was "rea ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Updating child transforms when transforming a parent
I've got a question about updating the transforms of child objects in a hierarchy. So far I can get a model loaded up no problem using the code from the Help Docs topic "How to: Render a Model." What I'm trying to do is rotate an object in the hierarchy of my model and then update all of the children underneath that particular object. The end result I'm getting is the object in question rotates, but none of its children do. Here's what I'm using to rotate the object: foreach (ModelMesh mesh in m.Meshes) { foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); effect.View = view; effect.Projection = projection; if (mesh.Name == "LeftArmBase") ...Show All
Windows Forms File Encryption?
In my windows form application I want to develop a method to protect my text file contents from being seen by anyone. I am storing a username and password in the text file. I tried Encrypting the file, but then it cannot be modified by the user if they want to change their password or username. Or does anyone have any other suggestions as to where and how I can store a username and password that is not directly accessable via a text editor The problem you have is that if you do store the user details in the file then encrypt the details are then encypted inside as well, as stated above. One option would be to create your own file format and save it in a binary format. You could then have a header object for the file included. By ...Show All
Smart Device Development How to access form controls from outside the form class
Hello, I have got a question that I believe must be quite basic. I am currently working on a project that involves developing an application on a PDA using .Net Compact Framework 2.0 in C#. Here is my problem: After performing the InitializeComponent(), I have to enable many device features such as its barcode scanner, battery status trigger.... . In order to well seperate the view with the buisiness logic, we would not like to write all these "device initialization" codes in the form class but in separate classes. The problem is that some of these initialization methods require to access a form control (e.g. the scanner should display the barcode it reads in a textbox, the battery status should be displayed in a label...). He ...Show All
Visual Studio 2008 (Pre-release) Profiling WPF app with ANTS freezes up
I can not seem to get ANTS profiler 2.7.1 to work on my WPF project. After starting profiling the CPU goes up to 100% and nothing more happens. I have asked RedGate about this problem but they say that it "should" work since WPF is built on C# 2.0, but also say that they will investigate .NET 3.0 better in their next version. In the meantime, is anyone succesfully profiling their WPF apps with ANTS Any tips/suggestions Thanks, Andreas ...Show All
Visual Studio vss web service cannot be accessed when transfer the box into a domain controller
I have a vss server in the internet, and it works very well. But when I install AD on my server and config my server as a domain controller, I cannot access vss through VS2005. The error message is: The SourceSafe Web Service cannot be accessed at the specified address: Address: http://{server name}/SourceSafe/VssService.asmx The server returns the following error: (0xC00CE502) What should I do Thanks Barry. I have made a research on the stuff, and finally it works again. The problem is that the original machine account is not AD user. So remove the accounts and re-add them as AD users. Then set user permission on the VSS root folder, mark them to have read and write permission. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch.Draw methods not overridable?
I want to make a component with the same functionality as a SpriteBatch, but it automatically translates, scales, and clips everything drawn with it. I figured I could inherit from SpriteBatch and override the Draw methods, but they're not overridable. I'd be forced to shadow the Draw calls and it kind of blows my whole object-oriented, polymorphic system outta the water. Right now I'm using containment to do what I want, but it doesn't seem very flexible or object-oriented. I have a base component that just passes everything straight to my internal SpriteBatch object and a derived component that translates, scales, and clips everything before passing it on to the SpriteBatch. Can anybody offer a better way of doing what I'm trying t ...Show All
