Answer Questions
Pooja Katiyar To Microsoft staff. Would you call this a bug?
Hi, Please read my concern in thread>> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=836609&SiteID=1 thank you in advance. :-) Regards, S_DS I think KitG answered your question. From the signature - you'll notice he has a microsoft address and is in fact on the VB team. This is more an issue with the .NET framework Common Language Runtime rather than VB specific issue. But I would probably say its a current design limitation. ...Show All
Harry Leboeuf Kinepolis Installer Failing to Upgrade App from 1.1 to 2.0
Hi, I have an application that I developed in 1.1; the application was delopyed to a large number of workstations via GPO (have used this process multiple times to upgrade the application); I have recently updraded the application to 2.0 and when installing the application on my test workstation (not using GPO at this stage) it fails to upgrade the previous version that was written in 1.1, I end up with the old version and new version sitting in the "Add and Remove programs" list. I can confirm that both applications have different product codes and the same upgrade code, I have also selected in the 2.0 installer to "RemovePreviousVersions". I have used Orca to check that the upgrade ID are the same even after the setup ...Show All
Mr.Yesser Help - cant refresh rows in datagridview!
Im struggling to refresh my datagrid after updating its datasource from a different form. On Double click of the datagrid a new form is opened to edit the record, once the details in the form have been changed I need to get the datagrid to refresh and show the new detaisl(either a new row or changed record). I know the database has been changed but it will not reflect in the datagrid(note I have tried datagrid.refresh), I have also tried calling the sub which populates the datagrid but with no luck. Any ideas Hi, Thanks for the reply. Unfortunately this isnt working for me, ive managed to set the reference to the baseform ok however when I try and call my populate dataset code from within the child ...Show All
sureshvb Overriding Enum members
How can I override or overload Enum public methods e.g CompareTo or ToString You can return the String name of the enumerated value with the code I gave above you cannot... To override a method you should have to inherit from a valuetype but this is prohibited Nothing extraordinary, just trying out some fancy things..... (I was trying to find a way to assign strings to enum members rather than int) ... What are you trying to accomplish...have you looked into the ENUM class: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemenumclasstopic.asp it will allow you to work with enumerat ...Show All
Enzoe Beginners question
Hi, when I use the HelloWorld example from the interop forms toolkit, everything is fine except if I try to add a new Public Sub. 1) E.g. I add the following code (while VB6 IDE is closed): in class HelloWorldForm after # Region "Public Methods" : <InteropFormMethod()> _ Public Sub newPosition( ByVal x As Integer , ByVal y As Integer ) Me .Left = x Me .Top = y End Sub 2) I open the vb6 IDE and start the main app. I press the "launch .NET form" button and see a modified .NET form, because I modified the form earlier in the .NET environment. 3) But if I edit the vb6 code re browse the objects in the object browser, I can not see the new Public Sub. What is the reason that ...Show All
ile Responding To A User Clicking The Red X In Upper Right Corner
Using VS05 Visual Basic - when a user closes a program by the red x in the upper right hand corner, is there a way to respond to that the same way as if they had properly used File, Exit Does the X raise an event I have not been able to figure this out yet. I don't want to disable the X, just respond to it. Thanks for your help. Bob The reason is this is a telephony application and File|Exit waits for all calls to finish before exiting the program. The Red X simply hangs up on everyone as the program closes. Thanks! Bob Hi, you could hook into FormClosing event and check the CloseReason parameter to see why it's being closed. If it's value is "UserClosing", the user either clicked the Red X, pres ...Show All
Blackwood plz help me to know he differences between the following statements
plz help me to know he differences between the following statements k = Chr(KeyAscii) Like "[0-9.]" k = Not (Chr(KeyAscii) Like "[0-9 -]") k = Chr(KeyAscii) Like "[0-9/]" thank you. Hi, You could use this idea instead.>> Enter the number in a textbox.>> In the textBox changed event Sub do this.>> Dim myNumber As Decimal If IsNumeric(textBox1.text)=False Then MsgBox("Please enter a number.") Else myNumber=CDBL(textBox1.text) EndIf Regards, S_DS Hi, 1st one picks up the number keys being pressed and the DOT character >>"." 2nd one every key except for a number or the "-" character or a space " ...Show All
Cell_PT Recompile from C# to VB.Net
I downloaded the BeerHouse Starter Kit, E-Commerce website, to find it C#, could i convert it to VB.Net If yes, Kindly advise in detail how Thank youuu Since it's a website, the online converters (such as Kamal...) will not be of much help since they won't convert inline asp.net code, or the entire folder-based website, or any newer language features such as generics. Our Instant VB C# to VB converter will do this, but for conversions of this size you'll have some tweaking to do. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Instant Python: C# to Python converter, VB to Python con ...Show All
Visual Basic Expert VBA call to VB 2005 DLL (COM) fails
Hi, I have to call a DLL (COM in VS 2005 lingo) from inside Excel 2000 (VBA code). When I compile the DLL on .NET Framework 1 it works fine. However, when I compile the DLL in .NET 2 I run into a "File or assembly name <dll name> or one of its dependencies was not found" Please help if you can. Thanks much Glad it worked for you. If you get a chance, I would like to get detailed instructions on how to force excel to use a different framework. I heard about this, but I have not seen how to implement this. I would like to keep this info for future use. Thanks My winword.exe.config file contents are earlier in this thread. I am assuming that the execl.exe.config file contents would be the same. Ju ...Show All
Steven Gilissen Converting VBA to VB2005 problem (or my ignorance)
Hi, I've been in the IT trade all my life. I didn't come to this job as a programmer but after working here a short while, I showed everyone how I could save the company tons of man-hours (money) with a few custom programs. They didn't have any programming languages so I used VBA inside of their Office 2002 suite. They were so impressed, they gave me anything I wanted. I wanted Visual Studio 2005. Suddenly I'm a full time programmer here. The first thing I wanted to do while I familiarized myself with VS2005 was convert an already working, processing intensive, program that I had already written in VBA. This thing literally compares billions of cells in very large spreadsheets, and as you can imagine, it takes a while to process. I spen ...Show All
Jacco Mintjes Video Capture in VB.NET possibly using directx directshow
Hi I'm afraid I'm fairly new to VB, but I've done C++ at uni and did make use of DirectInput, so please bear with me! Basically I am looking to perform video capture from two USB devices using VB.NET. Although I dont need to actually record the video, I just need to display a preview in my application. The preview is to be of one device and the application has to be able to switch between them. Also if possible I need to identify the devices and ensure the application always addresses the correct device even if it is disconnected and reconnected. I'd like to use directx as I'd like the experience, but I'm happy to consider any suitable method. Please let me know if I need to provide any other details. Thanks, Stephen ...Show All
Camac216336 how I can get the name of last event in VB.NET?
Hello, I need to know how I can obtain the name of a current triggerred event in a such code: Private Sub dene(ByVal sender As Object, ByVal e As EventArgs) _ Handles btnOne.MouseHover, btnTwo.MouseHover, btnTwo.gotfocus, btnTwo.lostfocus Dim clickedCtrl As Control clickedCtrl = DirectCast(sender, Control) lblDisplay.Text = clickedCtrl.Name ‘.... name of the control ........ ' ----here I need to know where come here, for example from gotfocus of btnTwo or lostfocus of '....btnTwo in the list of Handles keyword. End Sub Could you please tell me about how I can get the name of last event in VB.NET Thanks nuranozcanli@bil-kay.com Nuran By this rutin I can receive the name of control and control type.But I need ...Show All
bmalinski VB.NET HTML Editor?
Dear all, We are developing an application using VB.NET 2005 and we have a requirement to display HTML file (with pictures and tables) in WinForm. Also need a facility to do a bookmark, font change, tracking cursor position, etcl.. I want to know what is the best control is available in VB.NET 2005 to achieve this, or can i use RichTextBox to display HTML file Anybody can guide me how to do this Also suggest me if third-party control is available to do this. Hoping for a good reply. Thanks Gops Sofist India 98940662743 gopalan@sofist.com okugops@hotmail.com Dear DMan1 Thank you for your reply. But i know the webbrowser control its only display the HTML file but i want is HTML Editor just like an Rich ...Show All
Rob MacFadyen New Line
have a variable Public NewLine As String = Microsoft.VisualBasic.Constants.vbCr + Microsoft.VisualBasic.Constants.vbLf but when I try to write it gives me a null string ('',) along with the new line in the text file. I have tried: 1. Write(CurrentReportFileNum, NewLine) 2. Dim strWrite = (NewLine + "TEXTBOX") Dim strWrite = "TEXTBOX" Write(CurrentReportFileNum, strWrite, SlideNumber, CurrentDataTitle) 3. Write(CurrentReportFileNum _ , PtsLeft, PtsTop _ , (PtsRight - PtsLeft), Abs(PtsBottom - PtsTop) _ , TxtRotation, Label_Str, TxtAlignment, FontName, FontSize _ , FontBold, TextOrientation, Shaded, ForeColorRGB, NewLine) and they all give the null string after the line return. ...Show All
Voodoo45 DirectoryInfo Class Question
I need to store the contents of a directory at different intervals and compare them for changes. The FileSystemWatcher class has too much overhead that I just dont need - in addition, it has admitted flaws with buffer overruns and what not. My objective: have 2 variables of type DirectoryInfo. Compare them for various changes (file changes, additions, deletions). My concern is that both variables will always have the latest/greatest directory information making the point of comparing them stupid. Is this the case If so, is there something in the documentation that details this. I couldnt find it. Thanks in advance. Er Eric66, What about the DirectoryInfo.GetFileSyst ...Show All
