Ffelagund's Q&A profile
Visual Studio 2008 (Pre-release) Is the pseudo SQL syntax necessary?
Current LINQ syntax is like this: var upperLowerWords = from w in words select new {Upper = w.ToUpper(), Lower = w.ToLower()} where w.StartsWith("a"); But I think that this is unnecessary breeding of C# with SQL. I believe that combination of methods with lambda calculus would be better: string[] words = { "aPPLE", "BlUeBeRrY", "cHeRry" }; var selectedWords = words.Select( w => {return w.StartsWith("a")} ).Collect( w2 => {return new { Upper = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct 3D
How to use particles in Direct X Manager Minh wrote: They seemed to have removed the PointSprites sample from the June SDK. I remember it was in both the managed & unmanaged sides prior to that. I'm not sure why the decision to remove samples while not replacing them with something similar. The PointSprite sample was removed a while ago. For those interested in particle systems in Direct3D, you might search the web. A quick trip to my favorite search engine returned some possibilities: http://www.gamedev.net/reference/list.asp categoryid=72#225 http://www.codesampler.com/dx9src/dx9src_7.htm Note, howe ...Show All
Visual Studio Team System Bug in FxCop 1.32 displaying an FxCop custom rule error
When I run FxCop.exe (build 50628.0) and analyze an assembly using my custom rules and then double click on the error generated from my custom rules I get the following error:- System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.FxCop.UI.MessageDetailsForm.DisplayMessage() at Microsoft.FxCop.UI.MessageDetailsForm.SetListViewItem(ListViewItem value) at Microsoft.FxCop.UI.MessageListView.UpdateSelections() at Microsoft.FxCop.UI.MessageListView.MouseUpHandler(Object sender, MouseEventArgs e) My rule's XML is:- <Rule TypeName="ThreadNotProvidedBy ...Show All
SQL Server RS 2005 - keep column headings on screen with long reports??
Does anyone know if SQL Server 2005 Reporting Services has a property which will allow table column headings to remain at the top of the screen when scrolling down in a long report Thank you in advance... Dean Bourgeois Midwest Airlines ...Show All
Visual C# Creating a Mouse-Pointer-Shy button
Hi everyone, Am very new to C# and to programming altogether. After reading many ebooks and watching many learning videos on the subject I finally felt brave enough to mess around with some code. Not trying to do anything useful at this point, simply messing around. Am trying to simply make a button move to a *Random point within the confines of my form when a user *Hovers * their mouse pointer over the button. This is what I have so far: private void button1_MouseHover( object sender, EventArgs e) { button1.Location = new Point (40,25); } But as you can see, the new point is not random, it is specific. How wou ...Show All
.NET Development J# doesn't support 64 bit?
I'm getting my first 64-bit machine next week, so I thought I'd better start getting up to speed about 64 bit. I have a solution that has C# applications (WinForms and class libraries), as well as some J# class libraries. As long as the solution only contains C# projects, the platform configuration manager (that dropdown in the toolbar) says "All CPU", meaning it will generate platform-agnostic MSIL. But as soon as you add a J# project, it says "Mixed Platforms" and also adds "x86". Doesn't J# support 64-bit I thought it also produces MSIL ! Does this mean all my applications have to run in x86 Or is .NET smart enough to compile the C# ...Show All
Windows Forms Multiple DataGrid Problems
Hi Everyone, I'm about to give up on datagrids for good but I thought I'd give this a try first. My first problem is that I have a form with various types of controls, combo boxes and a datagrid. What I want to do is use an Update button to write any changes to these controls to the database at once, but the problem with the d ...Show All
Visual Basic label wont update text
I have a group of dynamic label controls hosted in a groupbox. I have created event handlers for dbl click which pops up a dialog box to alter the text property of the control.For some strange reason the change only occurs if I minimise and then maximise the form. ANy ideas cheers Hi kiwicoder2, thanks for ur post.. tell me what is the role of invokepaint what does it actually do what i have done now is to update a control, i write me.controls.removeat(indexnoofthecontrol) and then create a new at the same location.. but i am still looking for an optimized method.. Rajesh ...Show All
Visual Basic Usercontrol Refresh during Design?
Could someone help understand how the listbox's item collection refreshes the listbox control when you exit the collection editor. I have a usercontrol with a collection property, but I don't know how to refresh the usercontrol when I exit the collection editor during design time. Thanks in adavance. Robert Randy, I found this walkthough in my local help file "Creating a Windows Forms That Takes Advantage of Visual Studio Design-Time Features" . It uses some features that are not available in VB Express so I've ordered a Standard version of the software today. ...Show All
Visual C# Specifyng "Font" With Trace File and Resource File Messages
Hello ... I was wondering if there is any documentation on writing resource file strings to a trace file, and using a specific font. As a supplement/alternative ... is there any way to embed control characters for things like TABs in resource file strings to that you can clean up the output of a printed list of rows so they will start in the same location. For example: Phone1: 301 555-1212 // Tab between the colon and the first digit Phone2: 301 333-8877 // Same Phone3: 301 888-8888 // Same Thanks so much! ...Show All
.NET Development How to force build in Framework 1.1 environment
Hi, On W2K3 system I installed VS 2005 and I automatically got .Net FrameWork 2.0 installed. When I build an app it builds in .Net Framework 2.0. This prevents it from executing on system with Framework 1.1. Question is how do I force VS 2005 to build in FrameWork 1.1 I did check in the registry and found I have both framework installed. 2.0 did not clobber 1.1. If any one can reply to this that would be awesome. thanks ananda vardhana Hi, Are u trying to build an asp.net app If yes .. you can use the aspnet_regiis utility with -s option and specify the .net framework version you want to use ...Show All
Visual C# Checking for internet connection!
Hi, Can someone help me with this problem. I need to check if my system is connected to the internet or not. I have implemented the code in http://www.developerfusion.co.uk/show/5346 . But the problem is that there is a situation say "I have been connected to the LAN but there is no internet". I'm not able to trap this situation. My requirement is just to know if my system has a valid internet connection. Can someone provide me a solution to this in C#. Thanks, Frenz Hi there, You could try "pinging" out to a location on the internet (e.g. if you find out the IP address of mic ...Show All
SQL Server Report Model
Can you have more than one data source view in one report model I have data from multiple sql databases that I want to combine into a single report model for the users. Currently only one data source per model is supported. It may be possible however to use Data Source View editor to manually add named queries which reference other databases. ...Show All
Visual Studio Express Editions Serial Port Read Hangs
G'Day, Trying to read data from a serial port using Microsoft supplied Snippet. Project involves occasional read/writes to a microcontroller on the serial port Have been able to enumerate and write to port no problems. Reading works okay if there is something in the port buffer, but if there isn't anything there, it just hangs at location marked below. Dim buffer As New StringBuilder() Using comPort As SerialPort = My .Computer.Ports.OpenSerialPort( "COM1" ) comPort.DtrEnable = True Do Dim line As String = comPort.ReadLine() '********HANGS HERE************* If line Is Nothing Th ...Show All
Visual Basic How does one hide a ListView column?
Is it possible to hide a listview column I don't want to remove it, and I want to process the data in it. I just want to hide it. The problem is that the column will contain potentially sensitive information, and I want to be able to protect against shoulder surfers. The problem is, I cannot find a ListView.Columns( n ).Hide() method or a ListView.Columns( n ).Visible property. Is this possible to do, or do I just have to remove the column It doesn't seem like it should be all that hard. Thanks, Mark Warner. I don't think you can hide a column on a ListView, you either have to remove it or set th ...Show All
