tkroll's Q&A profile
Windows Forms datagrid combobox
hi is the datgridview's combox is a combination of textbox and list box i added a set of items to datagridviewcombobox cell thru the proporty items collection. but i want to to add new items (if a new item which is not existing thru the combo box's text box). i mean it should be editable/textbox should be active. is htere anyway ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Software Development with DirectX 10
I wish to develop a audio software (like winamp, jet-audio etc) using Direct X 10. Dear experts, what do you suggest about this Should or should not I go with is Please tell in detail regarding your suggestion. Thanks Ashraful Alam http://geekswithblogs.net/joycsharp There is no new sound functionality in DirectX 10. While there is a new sound API for Windows Vista, the "Core Audio APIs", you'll almost certainly be better off either using the traditional Windows multimedia API or DirectSound so your application can work all versions of Windows. ...Show All
.NET Development How to Insert, Update and Delete in Visual 2003 .NET in mysql database?
Hello I use the program Visual C# 2003 .NET. 1) I will try to insert, update and delte strings in my mysql databse with the class MySQLDataAdapter but I can't get it to work correctly and get some errors, someone out there to helpme and show how the syntax should be to get it work correctly I want to make is in a function. 2) And then I have try to make an instance to use to input string in the function but that also not work correctly, and then how to use variables in class as input in the function, how to The data in the class instance sholud be the data from 2 textbox in the form. 3) and last how should the class syntax look like if I want to use the class variables as input in the function Hope to hear from someone ...Show All
Smart Device Development Connecting to WebService from PDA via ActiveSync problem
I have a PDA running WM5 using CF 2.0, written in VS2005. SQL Mobile (or whatever it is currently called is installed) My application connects to a Web Service (running on an out of state server, via the internet) to upload and download data. The Web Service was added to the application using “Add Web Reference” in the solution explorer. wrServiceMain is the name of the added reference. It just returns a dataset of needed information. The PDA App can upload/download data under the following conditions: - Running in the emulator - Cradled on my Work PC using ActiveSync 4.2 (Windows XP) - Cradled on my Home PC using ActiveSync 4.1 (Windows XP) - Free internet hotspot at local coffee shop via Wireless - Surf ...Show All
Visual Studio Express Editions Save
How do I Save a file with out calling the dialog box, at the moment I can SaveAs the file(with dialog box) but what I'm after is when you click just save it just saves the file that is opened in its original format with any alterations that have been made. The program is a cut down version of a text editor. Thanks for the reply Dave Tried that but I get a lot of squigley lines, here is the code that I am using to SaveAs it was gleaned from the net, so I'm not sure if it's right or wrong, although it does save the files. Private Sub SaveFile() SaveFileDialog1.Title = "QuickWord - SaveAs File" SaveFileDialog1.DefaultExt = "rtf" SaveFileDialog1.Filter = "Rich Text Fil ...Show All
.NET Development Issue with Process.Start() and Perl script
Hi there, I am trying to call a Perl script from within a C# Windows Service but can't seem to get it to work. To call the script in question from the command line I would type: 'Perl c:\FACT\GetWaferBinDataXDaysX.pl [username] [days]' Where username is text and days is a number. In my service I am using the following code to try and get the same thing to happen: try { ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Perl\Perl.exe"); startInfo.Arguments = @"C:\FACT\GetWaferBinDataXDaysX.pl " + formdata[0] + " " + formdata[7]; Process.Start(startInfo); } catch (Exception f) { EventLog.WriteEntry("FACT", "Error executing Perl script: " + f.ToString()); } Where formdata[] is a string array holding the values ...Show All
Visual Basic ListBox selection subroutine
I need the code for creating a function or subroutine that will 1. count the number of items that I have in a listbox that are larger than 100 2. count the number of items that I have in a list box that are larger than 100 but less than 150. and then add these items up. 3. select certain alphanumeric from a listbox and count them... like the number of Smiths in an address book. and how to output them into a Label display box. Thanks! you didnt quite follow the code :-) you are passing into this function, intNumber which is 0. Does 0 exist in the listbox items collection If not, then it wont find it. As well as this, you are not checking, in the function, the i ...Show All
Visual Studio Team System Error when trying to generate report rsItemNotFound
The item '/EA Current Version/Remaining Work' cannot be found. (rsItemNotFound) Get Online Help I checked the TFSwarehouse database and it Seems there are a few errors. A week ago I moved the Databases from our C: to our E: on our appServer01 because C was running out of space. That might`ve caused this - not sure. When I look at tables, say the Code Churn Table, I have the columns: __ID LInes Added Lines Modified LInes Deleted Net Lines Added __LastUpdateTime __LastUPdatedBy __TrackingID Chanset FileName Date Checked IN By Team Project I think the error is that i have `__` in the column names, but not sure. Any advice would rock. I wasn't. We had to reinstall TFS to fix this and it worked for awhile. But now we' ...Show All
SQL Server Import and Export Wizard: Did they try it out before they shipped it!!!???
I have an excel file that, at least to me, is pretty simple. It's got 8 tables with about 25 records each. I'm trying to import 2 of those tables. Everytime I try to import I get this message: Column "Name" cannot convert between unicode and non-unicode string data types. So I've tried every combination of import/export that I can think of here and stil I get this message. Now I really don't think that I have any oddball characters in my data. As a matter of fact there isn't even any punctuation in there. And yet, SQL thinks there's some unicode in there. My dest column type for Name is a varchar(max). No issues there. So this is really about the simplest sort of data transfer that I can think of. And yet it doesn't ...Show All
Visual Studio 2008 (Pre-release) Need drag n drop example using xaml and vb
I'm new to xaml and wpf and am wanting to learn how to drag and drop rectangles. I've found a number of samples all in c# but I havent been able to convert them to vb. One sample was by Lester Lobo at http://blogs.msdn.com/llobo/archive/2006/12/08/drag-drop-library.aspx and the other was by Josh Smith at http://www.codeproject.com/WPF/DraggingElementsInCanvas.asp . Can anyone recomend a good tutorial in vb Thanks. Dear moondaddy, Try this link http://blogs.msdn.com/unnir/archive/2006/01/31/521065.aspx Even though not in vb, you should be able to get an idea on drag drop operations. Let me know if you have any problems translating the code to vb. HTH, Suprotim Agarwal ...Show All
Visual Studio Express Editions Slow Program
My program in visual basic is slow. Whenever I try to change the text in a huge text box, it takes 3 SECONDS! It needs to take MUCH less time! How do I make it faster Actually I hate to tell you but if the textbox contents are really large.... what you are seeing may be nominal. GUI controls such as the textbox are slow. ...Show All
Visual Studio Team System how to check sequence of declaration
hi members i am facing one problem and looking for the solution my problem is i want to write the fxcop rule to check the sequence of variable and "using" sequence. in my case iliek first we use system refence then 3rd party dll then local references and for variable first public then protected folowed by private. please help me to get rid of this problem. Thanks in advance Amit, As FxCop only analyzes the compiled binary, things that are only represented in source; such as the order in which variables are declared, or the order of using statements can not be analyzed using an FxCop rule. Regards David ...Show All
Windows Forms Update tables using stored procedures
Hi all! I saw here similar questions but did find any proper answer. So, again... I have two tables in the DB. The master table has ID of the unique record from the details table. To retrive and store data I have two stored procedures: ALTER PROCEDURE dbo.GetAllMovies AS SELECT dbo.Movies.ID, dbo.Movies.MovieName, dbo.Genres.GenreName, dbo.Movies.Year, dbo.Movies.Description FROM dbo.Genres INNER JOIN dbo.Movies ON dbo.Genres.ID = dbo.Movies.ID ALTER PROCEDURE dbo.UpdAllMovies ( @ID int, @MovieName nvarchar(50), @GenreName nvarchar(50), @Year int, @Description nvarchar(1024) = null ) AS begin declare @GenreID int select @GenreID = id from genres where genrename = @GenreName UPDATE Movies ...Show All
Windows Forms MSHFLEXGRID PROBLEM HOW REGISTER COM COMPONENT IN VB.NET
hi all how life is going in these days I using vb.net i add com component microsoft flexgrid control version 6.0 when i drag and drop to from then shown error message You do not have a license to use this activex control but in my c:\windows\system32\vsflex3.ocx file but is problem please help send me link where i read for msflexgrid thanks for response for advance Regards Irvendeep ...Show All
Visual Basic Button without a border
I'm creating an window form based application and need a button without any border. I set the button to flat style and set the border of flatappearance to 0. There is still a recttangle line around the button. Does any body know how to do this Thanks Something, but I'm not sure what ...when I run my test program with the above lines of code my form displays the text of the button only...when I move my mouse over the button it highlights the button, but still no border ...I'm not sure why you are having problems(are you using 05 or 03 ) but you can use the click event of a label as a workaround ...Show All
