Answer Questions
David Fullerton Changing a cellback color of a defined msflexgrid cell??
Hi everybody, Think that, I have a MsFlexgrid control and a Command1 on my form .. When I click the button , I want to select a defined cell and give it a color....... I couldn't do it But I especially want to mention this ,I don't want to give color to all the cells in grid.. Only for given coordinates of a cell ... example like (4,2) row 4 and col 2 Below is my test MSFlexGrid1.CellBackColor = MSFlexGrid1.TextMatrix(4, 2) = vb ...Show All
Roger_MS Delay or Pause
Hi, I have Kiosk application which starts the browser inside the Kiosk. But due to wireless, I have to pause the start of the application so that wireless should first kicks in and then the applications starts.. My VB program conatains a browser control. Here is sample code Me .webBrowser.Focus() Me.webBroser.Navigage("LoadingPage.htm") System.Threading.Thread.Sleep(20000) Me .webBrowser.Navigate(URL) Where URL is on the s ...Show All
MISIIM Adding a new column to an opened database.
Hello, I would like to know if it is possible to add a collumn to an already opened access data base using vb in the datagridview without changing the initial database. I am trying work out a functionality in my final year project which enables teachers to analyse student test scores without having prior knowledge of using Access. I am using vb.net to desing and code this enabler/tool. With my limited skill in vb programming I have managed ...Show All
TMurnion A Pause with a Loop
Okay...what I want to do seems simple but I've been at it off 'n on for a few days with this & finally decided to post my question. I have a Label I want to flash on & off a few times much like a warning sign. You would think something as easy as: For i as Integer = 0 to 20 Label1.Visible = True Thread.Sleep(500) Label1.Visible = False Next would do it. But it doesn't. I tried throwing a timer in there s ...Show All
Uray Frank Retrieving Hard Drive Temperature (S.M.A.R.T)
Hi, Does anyone know how to retrieve the temperature of a hard drive in Visual Basic 2005 The temperature can be retrieved from the S.M.A.R.T information, but I don't know how to do that in Visual Basic 2005. There probably is a way, but unfortunately, I don't know. If anyone could help me with this, it would be great! --daniel15 http://www.dansoftaustralia.net/ - DanSoft Australia http://www.frihost.com/ - Free Reliable Internet ...Show All
Ira at AIB Class Library Project Event
I am creating a class library (.dll) and i want to specify an event for when the class is loaded. I want to execute somthing for example "msgbox("Loaded")" almost like a form loaded event. Is this possible / how do I do it Instead of: Private myImage As New NationalInstruments.CWIMAQControls.CWIMAQImage Private WithEvents t1 As New System.Timers.Timer(250) Which is declaring the new object ...Show All
Dwarrel Problem with update query!
Dear Gurus! I am getting the following error on line number 8 of my code. Please help me finding the bug in my query. Thanks, Regards. Waseem. My Error: Run-time error '-2147217900 (80040e14)' Syntax error in UPDATE statement. My Code: cn.Open "provider=microsoft.jet.oledb.4.0;" & "data source=" & "c:\counter_1.mdb;" rs.ActiveConnection = cn rs.Open "UPDATE counter1 SET counter = 10 W ...Show All
Keros interacting with data classes
I have a general question about calling web service functions from a vb windows form application. I would like when I call a function to have returned both the requested data and a string message telling me if any exceptions were generated in producing the data on the web server. So I produced a class called ReturnData and provided it with two properties called statusmessage and BlobData. I then added the class to both my WindowsForm application ...Show All
Little_John include attachment in SMTPMail
Hi, I would like to ask how to attach a file as an attachment in the mail. i have try but it does not work. however, no error message was produced. this is my code: Dim message As New System.Web.Mail.MailMessage message.To = "li-ching.ooi@avagotech.com" message.From = txtMail1.Text message.Subject = txtsubject.Text message.Body = txtMsg.Text message.Attachments.Add(txtAttach.Text) 'Try ' SmtpM ...Show All
SasaJ Message Boxes
I want to install a messagebox to ask if the user is sure they want to delete a record from my system. How do i make it so that only if they press yes it goes ahead and delete and if they click no it doenst delete Can someone provide me with sample code please. much appreciated. if MessageBox.Show("Do you want to delete", "Delete ", MessageBoxButtons.YesNo) = DialogResult.Yes then ... ...Show All
Aaqil Bajwa Filter data from text
I have an error log that is saved by some software as a text file. Currently my program allows you to open a text file and it shows the information in a text box. I want to sort through the text box for key words so I can filter out what I want for data, for example here is some data in the text file error log: Data on me this is just filler data; blah blah 21:06:14 Copying BOM from Part:123212 Part revision for sub assembly was not found. Reque ...Show All
Ron Loxton synchronous vs asynchronous
I am a newbie and can anyone explain to me the difference between synchronous vs asynchronous programming Does .NET framework (VB 2005) is synchronous by default Ken, I am still little confused with foreground and background. Say for e.g. I have two procedures foo1 and foo2 and I do extensive calculationis and looping inside foo1(). VB compiler does not start executing foo2() before foo1() finishes. T ...Show All
Bartosz Bien TypeOf with Generics
Before generics I could use (TypeOf myObject Is MyClass) or (TypeOf myObject Is IMyInterface) to determine whether an object is a certain class or interface type. But, now if myObject is a generic then that technique does not work because the generic could be a structure. So, I'm searching for the best (i.e., fastest) way to perform the above tests when using generics. Using (TypeOf CObj(myObject) Is MyClass) is ...Show All
Mark McLain activeX control- error 424
made a new ActiveX control in VB 6. A very simple one.there is one circle of the original shape control which is called oval_shape.the usercontrol is called math_circle. in the intialize and the resize sections of the usercontrol I do the following stuff: oval_shape.top = 0 oval_shape.left = 0 oval_shape.width = math_circle.width oval_shape.height = math_circle.height when I put the new ActiveX control on anykind of form I'm ...Show All
VANA XML and Class Enum
I'm trying to avoid typing over 250 enumerations needed as part of a selection in a class. That is, user/programmer will select ONE of the 250+ specifically, a country needs to be selected from among the enum. ideally, this list is external so it can be modified. therefore, it is currently within an .xml file. How could I make some kind of class property that exposes this list through its member I thought ENUMERATION. But, what would my ...Show All
