gchippie's Q&A profile
Visual Basic Option Strict On disallows late binding?
This pops up and I do not know why. There is no button to press that shows error details. Is there any way to get around this Why do all the Ctype, Cstr etc. and use createobject if you know the type your wanting to create Option Strict On Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Shell As New IWshRuntimeLibrary.WshShell Dim DesktopDir As String = Shell.SpecialFolders.Item("Desktop").ToString Dim StartMenuDir As String = Shell.SpecialFolders.Item("AllUsersStartMenu").ToString End Sub End Class Will work just fine. Early binding, no casting / conversions required. ...Show All
Smart Device Development How to change default e-mail client of windows mobile
When we open the file explorer on a windows mobile handset, select a file and press '[Menu]->[Send via E-mail...]' , the default e-mail client will start to send a e-mail. Now, if we have written a new e-mail client application for windows mobile platform, how to set this client as the default e-mail client application -- replace Microsoft's tmail.exe. And I expect that our new e-mail client should start when I press '[Menu]->[Send via E-mail...]' How to chang the default setting information of default e-mail client. Thank you for your reading. Please post your query at the news groups pointed by the below announcement link http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=481505&SiteID=1 Th ...Show All
Visual Studio Express Editions How do you check what object you are doing something in?
I am trying to figure out how to know if I am using objects correctly in my program. I was thinking that if there was someway for me to use the WriteLine statement to print out what object I am currently in with a certain method or whatever I am doing at a certain point to let me know which object I was inside of. I created a couple of objects and I want to know when a certain method is running that it is running in the right object at that moment. Thanks in advance for any tips/info/explanation. well you could always place a breakpoint on the debugger and when it hits this point, you know where you are and you can also check variable/object values and see if they match up to what you may expect. ...Show All
Windows Forms Publishing VB projects
I managed to build some projects and successfully publish them though the project needs some improvement. I successfully installed the programme in my notebook where I build it in the first place. But when I try to do the same in my office computer, I get an error message. Same on one of my colleague's computer at office. All the computers have Windows XP Pro as the OS but the office computers don't have the VB Express Edition installed. What may be the problem with the publishing It might be helpful if you copied the error message and posted it here. They are quite useful sometimes. The most obvious thing is... do the other computers have the .NET Frameworks 2.0 installed This is a pre ...Show All
SQL Server New Database Diagram command failure
In Enterprise Manager, when I r-click on the diagrams icon in the databases tree and then select New Database Diagram... from the popup menu a window pops up labeled "New diagram for <databasename> on <machinename>", and then an error message: "an unexpected error happened during this operation". I've also gotten a "missing mdt2fw.dll" message. I sure would like to be able to generate db diagrams. I've tried reinstalling Enterprise Manager, and copying mdt2fw.dll from the install cd to the windows and system32 directories, but no luck. Any ideas ...Show All
Smart Device Development Class Error
I receive a "class not registered" error when trying to import any data into mappoint 2006, how do I correct Any help is greatly appreciated ...Show All
.NET Development C# TCP Remoting Security Exception
Hello, i'm having an issue with remoting... i'm attempting to create a simple chat application, where client(s) connect to a server and messages are sent back and forth (using windows forms)... I'm using events and delegates to initate the changes to the textboxes, the messages sent from the client to the server will show up fine, but if i try to create a new event handler from the remote object i get a security exception. I don't know much about security, so i was hoping someone can help me out... i'm not using a config file to set up remoting (one more thing that has to be with the program) here is the direct paste from the exception i'm getting. System.Security.SecurityException was unhandled Message="Type System.Delegate ...Show All
.NET Development "Caller" of an Attribute
I have an attribute class like this: public class SqlPropertyAttribute : Attribute { public string DBField; public SqlPropertyAttribute() { } public SqlPropertyAttribute( string columnName ) { DBField = columnName; } } public class MyClass { [SqlProperty("DBField1")] public string Name; public string Description; } The MyClass has 2 members: Name is created with the information to use "DBField" as DataColumn. Description should be created with the information to use "Description" as DataColumn. How do I receive this information - the Membername - when calling the constructor of the Attribute Afterwards when i step through the attributes of an instance from class MyClass, i want to ca ...Show All
SQL Server Parameter validation
Hi, How would one do a parameter validation. For ex: I have a date start and date end parameters to be entered by the user and the report gets generated depending on the user input. How would i validate the user entered date is acceptable .. your help is appreciated Thanks, Hi, You can write a function in VB language that validates the parameters.You have to write the function in Custom code which is under report menu.Report->Report Properties->Code.And You are using table to display the data.You can call the function in the Table Properties->Visibility->Hidden Like this:IIF(Parameters!StartDate.Value>Parameters!EndDate.Value,False,True); Otherwise:Another way for Dates validation is when you enter Startdate ...Show All
.NET Development unbound DataGridView insert,delete, update records
Hi, I have an unbound DataGridView and I have load it with a set of records from a Data base. I modify existing rows, delete rows and add new rows to DataGridView control. I have to send a new modified dataset back to the data base. Please any suggestions how to solve the problem Thanks in advance George Thanks Bappi, I am using Sql server Express DB. I am agree that the SqlDataAdapter.Update() method is a decision of the problem, but I am looking for a Sqlcommand - stored procedure approach. Thanks again, George ...Show All
Visual C++ Problem with DialogBox-will not halt the program
Hi all. I hope this question is in the right place... I have a confirmation box in my program, and i wish for it to stop and wait for confirmation before continueing. I use this line: MessageBox(hDlg,"CONFIRM","CONFIRM", MB_YESNO | MB_ICONINFORMATION|MB_APPLMODAL); But the program keeps receiving and handling messages although it should wait for me to click on the confirmation box. What should I do to correct this Thanks in advance, Moshe OK, thanks - but I have a few questions: 1. The situation is caused only because I call a messagebox, or the program will process new messages even if it's still in the middle of handling old ones 2. How does the system handle this ...Show All
Internet Explorer Development How do i read URL from Internet Explorer 7 Tabs
Hi, I am trying to read URL from Internet Explorer 7 tabs. I am not able to parse . Can any one tell us. how to get url from IE 7 tab. Sheik I need a little more info before I can give you the best answer. What do you mean from the tab Do you have the IWebBrowser2 of the tab The HWND of the tab How are you accessing it From the page, in an extension Let me know the specific scenario and I'll try and help. -Reza ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Proprietary FBX format
Good day! According to an Autodesk engineer I communicated with today, "The ascii version of the FBX file format isn't publicly documented and subject to change." I think that begs the following question: why would we want to use a format that isn't open-spec, subject to change, and proprietary to a single company (Autodesk) What attraction does FBX have given its highly proprietary format To preempt a conversation about the merits of the build content pipeline, I might add that there are some companies that have no intention of using the content pipeline to avoid the embrace, extend, destroy philosophy which manifests as vendor lock-in. So to return to the prior question-- what is the sell for FBX if it is proprietary, cl ...Show All
Software Development for Windows Vista Recognition Pack and/or Ink Analysis Redist DLL?
Hi All, Sorry if this is fairly basic or if I am looking in the wrong location, but I'm having trouble with an Ink Recognition issue. I am currently using an InkOverlay and I would like it's CollectionMode to be InkAndGesture so that I can respond to various Gestures. I am running Windows XP SP2 with the TPCSDK 1.7 installed. If I run my application withouth the Recognizer Pack installed I get an acception (as expected) that the only allowable CollectionMode is InkOnly. Fair enough, so I install the Recognition Pack that has been linked to serveral times in this forumn and then everything works fine. However, my application will still fail on all machines that do not have this Recognizer Pack installed. Thus my question is what refer ...Show All
Visual Studio Problem is getting page number
I am writing a VB windows application with VS2003 when I use the code Dim nPages as Integer nPages = crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext whcih is copy from http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=A4E59B144061F70675DA8A210C1FC317 cmd=displayKC&docType=kc&externalId=c2013559&sliceId=&dialogID=360384&stateId=1%200%20356275 I don't why the crystal report viewer get nothing to display and error it would be great if someone could help me to solve this problem Thank you OK after press a button, my program will pop up an windows and it is the crystal report vie ...Show All
