Answer Questions
Ludmila Koganer Classes and definitions
Hello. Im learning to create and use classes as work. What I would like to know is how I can create definitions in my classes for methods that show up in the code window. Example, you use one of the bulit in .net classes and select its method you get a mini definition for it. Im coding in VB 2005. do you mean a descriptor for a method, where it tells you what a method does just type in: ''' and it will insert the description tag Yes. Exactly. Hope this helps to pay down the student loan :) XML Comments are what you seek. To use them simply type the comment character 3 times right above a class, property, method or just about anything else to have the environment generate a default b ...Show All
Pauly C use radio button group to display a database field value
I am working on a Forms project storing data in an Access Database, and for several fields I would like to use Radio Button Groups to have the user select from limited options. I can link the groups on the form to the fields in the database, but they appear blank when the record comes up instead of showing a checked state to indicate the value held in the field. I can put a text box on the form and use code to decide which radio button should be checked based on its value, and vice versa for which value to store for a new record, but is there an easier way Given so many other easy ways to do things with the program, i think I must be missing something. Thanks Typically when binding radio buttons to ...Show All
AlexBar100 IDE Buggy, SLow, errors
Where oh where do i start. I am an experienced B developer + 8 years from VB3. We have been using VB 2003 for about two years and have managed to get used to it's foibles. We decided it was time to investigate VS2005. I was using Windows 2000 but due to the fact that I could not install/uninstall a new version of comonent one tools I had my machine rebuild using Windows XP and then i installed VS2005 & the latest version of our component one tools. First of all there is the problem withthe properties windows. I dave a dual monitor system, in fact all the developers have the same set-up. SO in VS2003 I have the main IDE in the left screen and the various propert windows (solution explorer, properties, toolbox etc on the r ...Show All
sergun Oracle to Access Table Create No data is seen although record transfers are happening
I am moving a table subset from Oracle to Access. My coonnections are working fine. The data is seen in the dbVal variables. The record count is correct iCnt verses record count in Access, but I do not have any viewable data in the Access table. I put the update line in but can not get it to perform anything but generat error. Set dRead = CreateObject("ADODB.Connection") Set dWrite = CreateObject("ADODB.Connection") ' Open the connection to the database (OPEN method) dRead.Open sConnReadODBC dWrite.Open sConnWriteODBC ' Execute SQL query Table Drop, Create Set rWrite = dWrite.Execute(qAccessDB_Drop) Set rWrite = dWrite.Execute(qAccessDB_Create) Set rRead = dRead.Execute(sCommReadSQL) If (rRead.EOF = True) And (rRead. ...Show All
Kirk Evans Fingerprint readers
Hi I would like to ad security features in my program, and microsoft has made a few fingerprint readers, and a mouse with a fingerprint reader. Can these readers be used in a vb2005 application and coded in this to Anybody knows about some info on this. It would be a cool feature in programs.. found some software from graule. its called grfinger and works with ms fingerprintreader ...Show All
AG Hunzian send email on program error
I am making a program that monitors several servers i have. if the server goes down it alerts me. i want to be able to email a notification to all the members of our team. the following Code brings outlook to send an email, but im wanting the email to automatically send whe the button is clicked. 'This is the email code Public Class GixStatus Dim counter As Integer = 1 Dim website As String Dim GixRunStatus As String = "GixStatusGo" Dim GixName As String Dim threadStatus As String Dim loopThread As New Threading.Thread( AddressOf gixwork) Public Function OpenEmail( ByVal EmailAddress As String , _ Optional ByVal Subject As String = " ...Show All
ejstembler Adding a line to a text file
Hi, I' am trying to add to a text file that has already text in it. It's a list of nickname's. You right click there name in a channel and it will add the line to the text file. But I can't seem to get it to add a line. Intead it erases what's in the text file and put's in what I add. I tried many things but can't seem to get it. Hi, the following code line should append additional text to existing file without overwriting it: My .Computer.FileSystem.WriteAllText(fileName, textToWrite, True ) Andrej The third parameter which is in Anrej example is set to True is whether it will append textToWrite to the file. If its set to false then it will overwrite the file contents. ...Show All
Palmi Working with Hex Value
Hi 2 all, I have a String that contains Hex Value Dim hexvalues As String = "AABBCC" I need to make this addition: AA + BB + CC = 231 (dec: 561) In a bit word i need a function that it calc Hex Values. How can i do ! Hi i solved with my code, my error was to assing the wrong variable, i assigned it the variable i and i needed variable result Dim MyInteger As Integer = Convert . ToInt32 ( "AA" , 16) Debug.Print(myInteger.ToString) = 170 But i had to take the HexString in couple of two char It mean if i have "AABBCC" They are 3 Hex Values: AA BB CC So i have to make a Substring too. Am i sa ...Show All
mihooper1 How to move the recordset by a seek in VB 2005
Can someone please help me on how to make a seek on Visual Basic 2005. I did this before in vb6 using the following code. I don't want my seek to find an exact record, I want it to find the closest record meeting my search criteria which will by inputted on a text box thats why I used ">=" no "=". I can do it using Bindingsource.find("Last_Name",text1.text), the problem with this is that it onyl finds an exact record and I want the closest record. VB6 Demo Code Private Sub Text1_Change() Data1.Recordset.Index = "Last_Name" Data1.Recordset.Seek ">=", Text1.Text End Sub Thankyou, any help will be really appreciated Use the select m ...Show All
Ederaldo Mirandola My.Mysettings Designer problem
No matter what I try, anytime I use the "MySettings" functionality in VisualBasic 2005 Express. I get the error: The type 'My.MySettings' has no property named Well technically that's not true. I can use it once, but if I edit the "Settings" tab on the "Properties window (EVEN IF I DON'T CHANGE THE EXISTING SETTINGS) I get the above error from there on. Any Ideas <EDIT> I guess this was the wrong forum (sorry) can someone move it </EDIT> O.k. I fixed this one too. Turns out it was from a refference to a 3rd part component. I don't know why it did what it did. But it's fixed O.k. I found this in the on-line help... Important The Designer will not display properties whose type is ...Show All
Parkin The simplest copy n paste destroys code behind link - ridiculous time wasting nonsense
Novice using vb.net 2005, vb.net 2005 express, vb.net 2005 pro This situation is just down right insulting and another ridiculous time wasting feature of the MS IDE. I've placed a split container on my form. Then cut and pasted a group of controls that are already present on the form with linked code behind already working onto one split panel and another group on another split panel. Nothing works. I've now got to step thru my code and manually update the handles on each and every event from the controls I've cut and pasted just to test the look n feel even before deciding to use the split container model. This: Private Sub btnReports_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles btnReports. ...Show All
AndyL Win32 handle that was passed to icon is not valid or is the wrong type.
I was testing article http://support.microsoft.com/kb/319340/ to see if I could use this to populate a listview2 with the icons from Directory.GetFiles(apath) and getDirectories. If you go into c:\windows\system32 the program will hang for about 4 mins then if you go back to windows then back to system32 you will get the error. win32 handle that was passed to icon is not valid or is the wrong type. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperationException: BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress. at Sy ...Show All
narasiman_jayachandran_2b5374 search string and return the following six characters.
How would I best click a button and display the six characters that follow a specific part in a string. i would like to display in a label. for example search the above state ment for "button and " then return "display" to a label in the form. Thanks in advance!! Yes, Thank you this helps, Two more issues, how do I get the core to return the not text AFTER not including. For example above return "button and display to an from and blah blah". How do I get just "display to an from and blah blah" also how do I erase everything after a certain point in the string sorry how exactly do you mean do you mean showing ...Show All
Likewise How to expose SerialPort in VB.net to VB6 consummer
Hello All developers I used to post a question on Oct 27,2006 regarding the same issue but I didn't get any positive answer. My main issue is, I develop a software library that communicate with a hardware device through RS232 which is a serialport . I export this library so that it can be consumed by VB6 developer, the serial port object was exposed to outsite world by mean of interface . Other objects of the class work well through the interface but SerialPort object doesn't I'm not sure how CLR managed this object and I don't know its deep mechanism . Is there any buildin interface for serial port in VB.net for working in VB6 as a COM object. The error on VB6 that I got is, this serialPort object is not instantiate . Actuallty this se ...Show All
Srdjan 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 This is the code... Private Sub SerialPort_OnComm() Handles SerialPort.OnComm ReceiveBuffer.Append(SerialPort.InputString) Debug.WriteLine(ReceiveBuffer.ToString) Me .BeginInvoke( New EventHandler( AddressOf Di ...Show All
