Answer Questions
UI Freak c# to vb
What is the vb code for this public enum NotifyIconBalloonIconFlags : int { NIIF_NONE = 0x00000000, NIIF_INFO = 0x00000001, NIIF_WARNING = 0x00000002, NIIF_ERROR = 0x00000003, NIIF_NOSOUND = 0x00000010 } This does'nt work Public Enum NotifyIconBalloonIconFlags NIIF_NONE = 0x00000000 NIIF_WARNING = 0x00000002 NIIF_ERROR = 0x00000003 NIIF_NOSOUND = 0x00000010 End Enum Remco Replace 0x with &h ()h indicates hexadecimal representation Or, using one of the online translators: http://www.carlosag.net/Tools/CodeTranslator/Default.aspx results in: Public Enum NotifyIconB ...Show All
chakravarthy_b strange behaviour
Hi guys, I am definitely a newbiew to .Net, and am having a problem that I cannot seem to get around. I have a single Windows form app that loads several (probably about 10) datatables into a dataset. The dataset is defined as a public. Eventually the data is summarized into a datatable that is displayed into a datagrid. At first I could not get the double-click to work, and eventually tried to add a context menu control to capture a right click. Once I got things wired up, when the menuitem click event fired, I wanted to create a dataview from one of the datatables in the dataset and filter accordingly. To my surprise, the dataset variable has a value of nothing while in the click event. I then figured out how to capture a double ...Show All
Rob Ainscough Setup Produced By "Build, Publish" Gives Error After I Uninstalled VB With CD And 'Removed' All Installation CD Programs
Hello, I created a setup file from my application. I did this because I want to put my application on other PCs without installing Visual Basic. I basically want to just run the applicatoin on other PCs. What I did to create the setup file was within VB I clicked "Build" then "Publish." I then wanted to test the setup file on my PC, so I removed everything given to me by the VB installation CD! So, I uninstalled VB using the installation CD. But, I also had to go to the control panel to remove some of the programs that the installation CD gave me. I did this because the uninstall via the CD left things on my system that the installation CD gave me. When I was done, the control panel, remove programs listing ...Show All
Kevin Jacobson Visual Studio 2005 Auto code formating
I've searching and searching and I'm very frustrated with VS 2005, every time I turn around it starts trying to auto format my code. Code that used to look like.. sub blah(by val test,....) dim somevar as int some more code and more end sub now gets formated, with no easily found way to fix it..half way across the screen with like 10 tabs on everything..it will not go away, and I'm close to removing the IDE from the system and going back to hand coding. I delete the formate and as soon as I move to the next line it puts it back, then if I make a change to the lines precedding or following it moves all that code as well... Help please. I have very little hair left and I'm tired of pulling it out. ...Show All
DogObsessedperson Opening a form
VB6 is total different than this! Learning a new platform, so please excuse me for my mistakes! I have a form which needs to show one record(thats all that is needed-its a table that carries the end-users info only-so only one record). The form has got the right datasource. I maybe opening it wrong to show the data. I have got a command button on my main form to open the "Company" form, with the following code; Private Sub Button5_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim MyForm As New Company MyForm.Show() End Sub The form opens, but with no data, there is data there because it is being used on the main form. Where did I go wron ...Show All
SCADirector is there a keyboard shortcut to build just the current project and not the whole solution
Thank thee :) There isn't one by default, but you can set one: Tools->Options->Keyboard Then scroll down to Build.BuildSelection ...Show All
GusaMusa Creating Group box in Run Time and associating option buttons to it
I want to Create 2 group box control in run time and associate 2 option button each in the two group box. How do I do . Please help You can do this as Dim gr1 As New GroupBox with gr1 .nage = "GrpBox1" .Top = 10 .Left = 16 .Width = 24 .Height = 16 .Visible = True end with Form1.Controls.Add(gr1) now create the redio button as like the group box. and use the code as below to add the redio button to the group box gr1.controls.add(rediobutton1) and you can add the event handler as fallows AddHandler <event name, AddressOf <function name> ...Show All
qmatteoq How to modify the Code Comment Symbol
How do you modify the visual studio 2005 visual basic code comment symbol so that the ide will insert "continuous" apostrophes rather than 2 apostrophes and a space and 2 apostrophes and a space ...ad infinitum Visual Studio 2003 visual basic inserted consectutive apostrophes without any intermediate spaces !!!! e.g. what it does now (inserts a space after 2 apostrophes VB2005) ' ' ' 'code line 1 ' ' ' 'code line 2 e.g. what I want it to do ( does not insert spaces after any apostrophes VB2003) ' ' ' 'code line 1 ' ' ' 'code line 2 This behavior is by design in VB 2005. If you convert to a comment via the command, then again, and then again, we need to insert a space, be ...Show All
Matt Baldwin Failed to create remote object when running single instance application
Hi I have created an application that uses remote objects in vb.net using .net 2.0. My object are registered as Dim channel As TcpChannel = New TcpChannel( My .Settings.port) ChannelServices.RegisterChannel(channel, False ) RemotingConfiguration.RegisterActivatedServiceType( GetType (KernelData.RemotePublicServices)) on the server app. I use to register and create an instance of the remote object on the client Utility.Remoting.DefaultInstance.RegisterType( GetType (KernelData.RemotePublicServices), "tcp://localhost:8080" ) Dim rps As New KernelData.RemotePublicServices() but my problem is that the code runs fine when I execute the last code on the client when the application aren't si ...Show All
Amit Bansal MyReader.Delimiter
How can I use the character μ as a delimiter for an input file Visual Basic 2005 Express doesn't seem to recognize this character when reading the file. Here is an example of what I am trying to do: 'Step 1: Break each segement onto a new line ( μ indicates the end of a segment) Private Sub btnTranslate_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTranslate.Click Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser( "C:\edidata.txt" ) MyReader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited MyReader.Delimiters = New String () { " μ " } Dim currentRow As String () While Not MyReader.EndOfData Try cu ...Show All
QingLin 101Samples but can't use
I downloaded the 101Samples for VB, it says, and installed them, but the first one I try to examine, WorkingWithTheInbox, I get error "Project type is not supported by this installation." Of course, it doesn't mention what the type is or what is missing from the installation or how to find out. Another following dialog box says "Make sure the application for the project type () is installed." Suggestions And while I am asking, after making cut and paste a major feature of Windows, why can't I copy the text out of the message box to paste here Same thing with Help About - as in "Please give the date and version information from the Help About." And copying will not work to pick up the strange small detai ...Show All
Odin Thomas Clearing comm Buffer
I am collecting data from a microcontroller on blocks e.g >data1 >wait >data2 > wait etc etc and at first just sending the data into a textbox but I want the previous data to be discarded using a timer say the data shows in the textbox the timer kicks in after 2 seconds and clears the buffer then new data is sent and displayed but I can't find a way to clear the buffer, I don't fully understand the retrievebuffer.remove(#,#) how do I do this Im trying to clear whats been sent to the com port already because I send a 1 then a 2 for example from my microcontroller and even though Ive picked up the 1 in vb, it stays there and when recieving data again (the 2 now) it recie ...Show All
Johan Nordberg Global Declaration
hi, generally we'll declare global variables to b used in all forms of our Proj.,in a Module. bt hw do declare global nos. that is.,95 for freight. 69 for discount. even though i'll b using only in Invoice,as new schemes hav to b added in future i cant giv in the Invoice form codings.i need to add separately. Help me.... These globals you refer to are called constants - the values do not change. Public Const Discount As Integer = 69 Public Const Frieght As Integer = 95 However you could also define these in some form of enumeration Public Enum ItemCodes Discount = 69 Freight = 95 End Enum This may be useful if they are related - say if they are all different line Item type codes. You can simply refer t ...Show All
psylencio How do I display multiple pics in the picbox?
I am trying to link the combo box to the picture box. When the user selects a name from the combo box I want the picture box to display the picture assinged to the text. How do I retreve the pictures from the resource file and put them in an IF statement Also, how would it be written in vb language Thank you for your time. Thanks that works well. Thank you! Use the My.Resources object to access resources at runtime. If Something = True then PictreBox1.Image = My.Resources.ResourceNameHere Else PictreBox1.Image = My.Resources.TheOtherPictureName end if However, you could also assign the ComboBox items to be objects which alr ...Show All
Anonomuys open a form with only systray icon
Hello, how do i open a form so the form does not show and only an icon appears in systray I know how to make the icon but everytime I do this the form appears. I want to make the form only appear when I right click on the icon and say "appear". Thanks! I think what you are looking for is this. Do a combination of the stuff below and I am sure you will get it working. 'to hide the icon in systray: Private systray As New NotifyIcon() systray.Visible = False 'to show the icon in systray: Private systray As New NotifyIcon() systray.Visible = true 'to hide just the form me.hide() me.opacity=0 Me.ShowInTaskbar = true 'to show form me.show me.opacity=100 Me.ShowInTaskbar = False ...Show All
