Answer Questions
10131011 C# App. querying Crystal Reports...Reports take way too long...
hello wondering if you could help... there are two types of reports...One is Sales and the other is Products on inventory... Currently the old app reads a server variable (could be different roles)...based on this server variable a DB2 database is queried and the data returned is displayed in Crystal Reports...Issue with this approach...It takes close to 18 minutes for the reports to be produced... I am thinking to do the following: build the re ...Show All
Tom Gibson find available sql servers
how do I find sql server instances on a pc progammatically Hello. The following has a great example of how to do this...I was just reading it today. http://www.sqldbatips.com/showarticle.asp ID=45 Thanks Christopher! ...Show All
Sahil How to get all drives of my computer
I want to get a list of all my drives.how to Hi, Use Environment.GetLogicalDrives(); -chris or you can use API too, but it is difficult You can also use the System.IO.DriveInfo class to provide information about the drives installed on the computer. ...Show All
jfled Usage of Custom Attributes
Could Any Body Let me clear where should I use Custom attribute. I Know I can declare some metadat information to a type let say method or class or ineterface and get that information at runtime using reflection.I find it's one use in O/R mapping. But Why should i declare a attribute For example I have to declare a field for O/R mapping of a field in a table tblEmployee.I make a class Employee and in it make a property EmployeeID.In th ...Show All
Stan Burton delete datagridviewrow
how can i delete the selected datagridviewrow without using the bindingnavigator delete button i created my own button btnDelete. and i want it to auto-save to the database after clicking yes to the dialog "Sure to delete ". thanks in advance.. Hi, It's working now, thank you very much. So your code should resemble: this.tblSRF TableAdapter.Update( this .dbOPRDataset.tblSRF); // Where tblSRFTableAdapt ...Show All
TMBTC Unable to update the dependencies of the project
I have had this error every time I try to check my program into source control after making changes. The project builds and works fine until I check it in and check it back out then it won’t build. I have deleted the setup project and built a new one only to have the same problem after checking it into source control. It also givs me a warning that " Assembly ' FolderName\FileName.exe ' is incorrectly specified as a file. Any suggestions would ...Show All
Pete Verrone Need help setting audio tracks in iHD
Hi All, Can you help me find the correct code for setting audio tracks in iHD Please see below. We have a title with 8 tracks and we are looking for the code that will set the audio track and then jump to the feature content. This is the function that i have so far: function OnButtonActioned(objEvent) { Player.playlist.titles["feature"].jump("00:00:00:00",false); } I need to know how I can s ...Show All
bbayless Initializing an instance to a pre-existing instance
Hello. I have a beginner question. If I create a new instance like below, what exactly happens Does the new instance reference the pre-existing instance, like a pointer, or does the new instance contain a duplicate of the pre-existing instance MyClass obj1 = new MyClass(); MyClass obj2; obj2 = obj1; //What is happening here I wanted to create a tile based game and store each tile reference in an array, but I guess that would mean usi ...Show All
Cliff Buckley sql Statment in c#
I am using a access database which as you know does not support stored procedures. I need to know if this sql statemnt is right please help me with the syntax Thank you if exists ( select UserNameMentor , UserPassword from UserNames where UserNameMentor = UserName and UserPassword = UserPassword) /* SET NOCOUNT ON */ return 1 else return 0 1) Access database supp ...Show All
Lynn_global Executing Exe
Ok i added a exe file to my solutions explorer and i wanted to know what code i needed to execute the exe in my form 1 It should be as simple as: System.Diagnostics. Process process = new System.Diagnostics. Process (); process.StartInfo.FileName = "Full Path to EXE"; process.Start(); As suggested by some other user, you need to copy that embedded resource to a te ...Show All
Rohit Jain Error moving a form
I have created a nonrectangular form I have introduced the MSDN instruction in my application to move the form : http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp But when I have the mouse on the form area, the form is "runnig" and I cannot do nothing.Look at the code: public partial class Style_MainWindow : Form { // Chestii de la Visual C# public ...Show All
CANARY_111 USB Connection
Hello Everyone, I have a device which connects through USB. I was wondering if any one can provide a code how to connect to USB and open channel for any data Transfer........ Any help, highly appreciated... Thanks, Harsimrat Really Appreciate, Its nothing Blackberry specific it is just talking to USB.....Do you have any idea how we can change this piece of code to C#, will solve lot of my issues ...Show All
Mike Bohlander Is there a way to use IEqualityComparer<> for Microsoft owned value-types with no IEquatable?
Hi. I'm really liking Generics support in .NET/C# specifically, but I have some questions in mind. I'm trying to create a list of PointFs (List<PointF>) and it simplifies everything, but the documentation for List<>.Contains (and just about any List<> functions that require searches) talks about using IEquatable<T> of the type. If I'm creating my own type, I can just implement IEquatable, but in this case this is a ...Show All
Markus W&#246;&#223; timer
Hi all!I have these two lines of codes in my program: float time = (float)DateTime.Now.Second; xyGraphControl1.AddPoint(time,power); The result of the codes is that the timer starts at the same second as the clock in my computer. How am I going to force the timer to always and only start at 0 second Thank you very much! Take a look at the StopWatch class. or, change your code like so: float time0 = ...Show All
Bobby Kuzma Can't use loops inside class?
This might be a noob mistake, but see if you can see what's going on here. The code is listed below - i am getting a bunch of compile errors like "Invalid token 'do' in class, struct, or interface member declaration". I tried making a class that had just one while loop, and I got the same error. Is there some reason that I can't have loops inside a class I just tried adding a regular class to my project... using System; ...Show All
