Latini's Q&A profile
Visual Basic How to Identify CD-R or CD-RW ???
I'm having a problem when trying to identify if the CD on the drive is virgen (CD-R or CD-RW). I'm using the following code: Public Function ExistsCDOnDrive(Drive As String) As Boolean Dim FSO As New Scripting.FileSystemObject If FSO.Drives(Drive).IsReady Then ExistsCDOnDrive = True End If End Function The function works fine when the CD is not virgen, but when it's virgen, the function returns always FALSE. Is there a better way to identify CDs using VB Best regards, Guilherme Cestarolli Seleguim You can get information on the media in the drive using IMAPI (requires > windows XP, and the IMAPI ser ...Show All
Visual C# i have error :(
hi, can anybody help me when i want to save the record in access database and i cannot save it this is error http://www.geocities.com/qtruni/eee.JPG and this the code for save button +++++++++++++++++++++++++++++++++++++++++++++++++++ private void Savebutton_Click(object sender, System.EventArgs e) { if (sidTextBox.Text != "" && fnameTextBox.Text != "" && lnameTextBox.Text != "" && nationalityTextBox.Text != "" && phoneTextBox.Text != "") { OleDbConnection myCon = new OleDbConnection(strCon); // OleDbConnection my ...Show All
SQL Server Retrieving the SQL Server error message in Error output
Hello, I've read http://blogs.conchango.com/jamiethomson/archive/2005/08/08/1969.aspx that explains how to use scripting and ComponentMetaData.GetErrorDescription() to get the SSIS error descriptions. But this is not always sufficient. What should I do to retrieve the original SQL Server error messages TIA. -- Jerome I cannot think of a way of doing this in the pipeline. Errors that are raised from SQL Server are errors that SSIS does not know about so I can't see how you could get the error message other than using that which is returned as I explained before. -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Asset Relationship Management
Hi, I am quite interested in the functionality that the ARM API can provide and think that it will be very useful to us and I would like to do an evaluation of it. Are there any samples or tutorials online or in the March 2006 CTP that explain how to use the API Cheers Ashley Davis Lead Programmer Kuju Entertainment Hi Ashley - Thanks for the feedback. You should have documentation nodes installed for this. After you install XNA Build, launch Visual Studio 2005 and open the Help. (Note that you don't have to have Visual Studio 2005 installed on your machine in order to install XNA Build - if you don't have it installe ...Show All
.NET Development The incredible .NET mess
If Microsoft really wants this technology (.NET) to be accepted, why: Can Microsoft not provide reasonable scripts/instructions for installing the software Everywhere I look, there are forums loaded with the same few questions: 1) What permissions do I need 2) What accounts do I have to modify 3) Why can I not log onto SQL (alias, "What is wrong with my connection string") 4) Where is (usually relates to a table or file that is stuck in some directory other than the one it needs to be located in) While I realize XP, Server 2000 and Server 2003 are different, and SQL 2000/2005 are different....why can't Micros ...Show All
Windows Forms ALLUSERS VS FolderForm_AllUsers
I have read how to set the ALLUSERS property but I don't understand how it affects the FolderForm _ AllUsers property or vise versa. I set the InstallAllUsers to true in VS 2005 and that added an ALLUSERS = 2 property to my property table. The FolderForm _ AllUsers property is still equal to me. Can anybody point me to some documentation or tell me how these properties relate to each other. Also I wanted to remove the Everybody and Just Me options. I have read how to do this but nobody talks about the FolderForm _ AllUsersVisible property. If you set it to 0 then the options are gone. Is it safe to use the FolderForm _ AllUsersVisible proper ...Show All
Smart Device Development CSD GSM communication...
Hi! Could someone give me point about CSD GSM communication What is done: I have connected 2 Qtek S100 through data-call: - use TAPI - get “connected” - take handle to COMM - init COMM: 9600/ e.t. - successfully transfer data But several strange things I have: average transfer rate – channel capacity - for transparent mode (S100 allows to manipulate transparent/non-transparent mode) is 6.4k bit/sec. – and this is write to COMM. speed! i.e. transferring side shows this speed by simple WriteFile() operation for chunk of data for example 64k bytes. So ...Show All
Windows Forms GUI Drawing
Hi Guys, Ok, This is probably going to sound like a stupid question, so please excuse my noobiness...... I have a form, with various sets of data in it, now the thing is, I would like to create a line to seperate the look of the data. How the hell do I just draw a graphical line, that does nothing, but be a line. Sorry for the noob question, but i`m only just starting out in VB ( My first programming language ) The rest of the system seems fine, and I have managed to do some quite complex things, but the basic line draw, is beyond me, and my head is now hurting. Thanks in advance guys... Max Phizz, Many thanks for that, did what you s ...Show All
Windows Forms Inheriting TreeView and OnPaint
Has anybody successfully been able to inherit the TreeView control and do anything worthwhile I inherited it and it doesn't even call my overrides, specifically OnPaint. I have tried this on numerous machines with the windows 2000 and windows xp shell controls to no avail. Has anyone else successfully done this Paul Tyng My recomendation i ...Show All
Windows Forms Dialog ZOrder Behind Parent on Win98 / NT
I beleive I've found a bug in the Windows 98 / NT runtime for .NET framework 1.1. I've an MDI child which opens another form as Dialog. While editing the form I noticed that while clicking on the second control in the tab index on the from caused that form to "fall behind" the parent form. The form was still open but the  ...Show All
Visual Studio Team System How to access Team system using Programs
Hi all, I want to use the functionality of Team System. Are there any classes and interfaces opened by Microsoft to access Team system. So that I can access the Team system through my own written programs. If any one have some code snippet to explain or some links regarding the access of Team system using Visual Basic functions, it will be helpful Thanks Hello Could you be more specific on what you are trying to do. VS 2005 Team Edition is a very large product. Just saying you want to create plug-ins is very generic. What do you want this plug-in to do Thanks Brian [MSFT] Microsoft Dev ...Show All
Visual Studio Team System Creating custom test types
I have been looking everywhere for documentation/tutorials about building you own test type in VSTS and I'm still unable to find anything that I can use. Where can I find the best documentation for this You can find documentation on custom test types in the April 2006 CTP of the Visual Studio SDK available on the VSIP site ( https://affiliate.vsipmembers.com/login.aspx ). The high-level topic you want is "Implementing Custom Test Types." You might also read through this other Forum thread ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=240933&SiteID=1 ) to see some of the issues that people have had creating ...Show All
Software Development for Windows Vista Problem with Condition using Enum
I am trying to create a condition for the IfElse Activity within the expression (condition) dialog and notice that it only seems to work with primitive types (string, int, bool, etc). When trying to add a Predicate to the expression that compares an property that is of type enum to the enum value, it generates the following error: [Property] is not a valid value for [EnumType] Type must be a type provided by the runtime. Parameter name: enumType Press 'ok' to edit the value. Press 'Cancel' to cancel Any ideas or solutions to this Thanks, Anthony Yes the enum type is public. The code condition do ...Show All
Visual Studio Tools for Office Word 2003 with VSTO 2003 stops working when .Net Framework Beta 2 is installed
Hi, I have an article/howto publication solution for my web site working with Word 2003 and VSTO 2003. Some authors complains that the solution doesn't work anymore. It seams that those one have installed the .net framework beta 2 on there machines. Anyone experienced that too Any work around Best Regards, --- Laurent Kempe - lkempe@netcourrier.com Tech Head Brothers - http://www.TechHeadBrothers.com Blog - http://weblogs.asp.net/lkempe [Microsoft ASP.NET MVP] Word 97 still works just fine. ...Show All
.NET Development Help debugging bad web services call
I'm fairly new to the web services side of .NET. I've inherited some code I'm trying to get to work. It was only partially implemented and the original programmers are gone. Sorry if I don't have all the terminology right. Basically I'm making a function call from regular code to a web service function (Validate(string s, ...)). There is a "Web References" folder that's been created, and a References.cs file that has been automatically generated. I debug and trace up to the point of the Validate(string s,...) call. At this point s has valid information (valid reference, valid string data), according to the ...Show All
