slee1435's Q&A profile
Visual C# How I can detect hardware?
How I can detect a cd-rw or dvd-rw,etc. using Visual C# in .NET 2.0 you can use the System.IO namespace. In this, you can use the DriveInfo class and you can then go through the collection of drives returned and get its information you require. Example: System.IO.DriveInfo[] theDrives = System.IO.DriveInfo.GetDrives(); foreach (DriveInfo currentDrive in theDrives) { &nbs ...Show All
SQL Server How to invoke C# code from SSIS? Can we script in C# for Script Task?
How to invoke C# code from SSIS Can we script in C# for Script Task thanks With the introduction of VSTA which supports C# for scripting, will SSIS support C# i.e. will it upgrade its script engine to VSTA ...Show All
Windows Forms Create 2D line charts in C#
Hi, I would like to create a user interface in C# that displays 2D line chart. The chart will be updated in real-time as data is being collected, kinda like a stock market application. Is there a tool/library/controls in Visual C# that I could use I thought there was something in Visual C++ that one could use to plot a 2D charts by just passing data points and some parameters Perhaps not in C# Do I have draw ...Show All
.NET Development SSH/SFTP Communications in C#
I'm looking to get started implementing a SFTP handler in my application (.net 2.0) and so far I'm just not finding what I'm looking for. Seems like all the SSH/SFTP code and libraries out there are for the Linux crowd. Can anyone point me in the right direction Am I going to be making calls to a command-line SSH app, or is this something that's going to be doable with reasonable effort SSL/FTP is already supported in System.Net 2.0 You ...Show All
Visual Studio 2008 (Pre-release) Treeview - mixed node types
Hi! I am trying to add child nodes of different types to a node. (Did that make sense ! ) In my treeview I want to have folders. These folders contain other folders as well as files. I do not want to list the files in a listview when a folder is selected in the treeview but instead I want to have the files as leafnodes in my Treeview. I'm trying to write a HierarchicalDataTemplate that allows 2 types of child nodes: <HierarchicalD ...Show All
Visual Studio Team System TF80071 connecting MPP to Team project
Hi, I'm trying to connect MPP with my Team Server. When I click "choose team project" I get the dialog that list the projects. I select one (no matter which ) and get error TF80071 "team foundation encountered an error while acessing the work items database..." I followed every advice in the other thread regarding this error, including changing the mapping and turning off the connection to the office server (which I don ...Show All
Smart Device Development Creating a help file
Hello all, I am sorry to ask this, as I know it's quite basic, but I am having some difficulty in doing a couple of things for my help file. I have some specific and some general questions. I was on http://msdn2.microsoft.com/en-US/library/ms229662.aspx and I must have misunderstood or missed something on there.. Can I show a htm file in a panel (I am programming in C#), or do I have to give the command to open windows explorer I ask ...Show All
Smart Device Development Controlling D-Pad in the Today Screen (C#)
hello, i'm very new to c++, but i'm getting there. i just need keywords as to where or for what i should be looking to make a program that would produce a mouseclick when the left button of the d-pad is clicked when i'm in the today screen. my device doesn't utilize the d-pad's right and left buttons when i'm in the today screen, so i thought that i could assign the left d-pad button to a mouseclick that would click on the start button. i'm usin ...Show All
Visual Basic Timer Memory
I have an application where I am running a timer every 20 msec. The timer is used to examine flags and updated a variable (global) and nothing else. Nothing in the timer that could possibly hang. The problem is the application continues to grow in memory usage. Any suggestions to why and how to overcome No I am not declaring anything at this point. Originally I was declaring a thread and starting it, but I have ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection ...Show All
Visual FoxPro problem with physical sorting
Hello , my name is victor , and i have a problem ! i am beginner in VFP9 , and i would like to put a question. I try to do a little program wich will help me to see better our employment. I tried to do a table , and to sort workers by theyer names from "A" to "Z", but it doesn`t work. The code is like this : USE tabel_de_baza.dbf SORT TO tabel_de_baza1.dbf ON nume_pren /A USE tabel_de_baza1.dbf List Use. ...Show All
SQL Server XPstar90.dll error when trying to create new database
Please HELP!! I have installed MSSQL server 2005 & MS SQL Server Management Studio Express CTP, but I receive a lot of errors when trying to perform actions in Management Studio. The most immediate problem is the creation f a new Database. When trying to create a new DB, I receive the following error. Can anyone help An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo) ...Show All
Visual Studio Express Editions Random Numbers again!!!
Hi there, i think i have gotten into a bit of a fix... here is the problem: i have used the random obj to generate random numbers between 1 to 90. some times when the application runs, it picks a number twice. for example an output would be 2,8,34,2,67.... is it possible to make sure all numbers picked are only selected once that is if i request for 10 ranadom numbers, each 10 digits would be unique... this is driving me nutts!! ...Show All
Smart Device Development LNK Error 2019
Hello all, i am developing an application on PPC2003 SE that allows the user to send and receive sms. i have included the sms.h library header file but when i compile i get the followng error : Error 1 error LNK2019: unresolved external symbol SmsOpen referenced in function OpenSms MyMapi.obj Error 2 fatal error LNK1120: 1 unresolved externals Pocket PC 2003 here's my Build log Build Log Build started: Project: MyMapi ...Show All
Visual Basic Delaying code.
Hi guys. Quick question here. I'm looking to put a delay inside a For/Next loop to make the computer wait a designated amount of time before continuing. Rather than use a timer control, I want to keep it purely within code. I remember the good old days where you could just go DELAY 1000 and be done with it, but alas, it seems that those days are no more. If anyone could help me out it would be much appreciated. A.) there are wome ...Show All
