20,284 Topics
| |
Hi I am currently writing code to read and write certain labels and textboxes. The code for the save button works fine: [ICODE] Dim savef As New System.IO.StreamWriter("c:/text.txt") Text savef.Write(TextBox1.Text + ControlChars.NewLine + Textbox2.Text + controlChars.NewLine + label2.Text) savef.Close() [/ICODE] I need to have a load feature, here is my … | |
i need help on setting the timer control to close an animated form within a specific period of time. | |
[code] i have writen a function in the vb class file and i am trying to read the function form the asp.net but it is showing an error Error 13 Reference to a non-shared member requires an object reference. can you help please i am new to this subject elvin … | |
[QUOTE]In Visual Basic 6.0, control arrays could be used to specify a group of controls that shared a set of events. The controls had to be of the same type, and they had to have the same name. In Visual Basic .NET, control arrays are no longer supported. Changes to … | |
[code=vbnet] Imports mshtml Imports SHDocVw Imports Microsoft.Win32 Imports System.Runtime.InteropServices Public Class Form1 Public Const BaseKey As String = "SOFTWARE\Microsoft\Internet Explorer\Extensions" Public Const SubKey As String = "{10954C80-4F0F-11d3-B17C-00C0DFE39736}" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reg As RegistryKey = Registry.LocalMachine Dim sk As RegistryKey = … | |
I'm having a weird problem with a MenuStrip, in which it's just white untill clicked on, when it behaves normally (Screenshot here: [URL="http://i312.photobucket.com/albums/ll353/anticipation33/WeridMenuStrip.png"]http://i312.photobucket.com/albums/ll353/anticipation33/WeridMenuStrip.png[/URL]) It's never happened to me before, and it just started happening by it self, after no changes. Any help would be appreciated, thanks. | |
how can i set that it will count also from the label that "how many rentals are overdue"[CODE=vbnet]Structure rental Dim rentalid As Integer Dim familyname As String Dim Firstname As String Dim dateborrowed As Date Dim duedate As Date Public Overrides Function ToString() As String Return " " & rentalid.ToString() … | |
Dear All, In VB.net, (1) Place a textbox on the form with bigger size and multiline property TRUE (2) Allow AutoScroll of the form TRUE (3) Run the application (4) Resize the form in such a way that there should be vertical scrollBar along the form (5) Now click on … | |
Hi..out der... I want to do attendance marking appl...in dat when i select a date and click ok....all the selected colms frm my database should be visible in my LISTVIEW... Besides these columns i want check box so that i can check dem to mark present.... and when i click … | |
Does ne one knw how to create an uneditable text file ? plz tell me.....n also about check box in datagrid.... | |
I want to delete the text file output.txt ,but I get error message. File cannot be deleted used by another process. Can you please help me..I tried close nad flush commands for filestream and stream readers..but did not help.. Here is my code. [code=vbnet] Dim chkstr As String chkstr = … | |
Hey, I'm writing an application that requires a login procedure. My problem is I don't know how I can compare the Username field to make sure it doesn't already exist in the table. I'm using VB.Net 2005 and Access 2007 and my database is stored as a .mdb file. thanks, | |
Hi all, I am trying to extract some records from a SQL Server 2005 database and insert into a MySQL database. The extract from SQL Server must also be captured as an XML file. I want to call this from a button. Unfortunately, I have not been able to do … | |
hi friends i need a good tutorial for learning creating macros in excel using visual basic. i have never programmed in vb.so i dont know how much it will take me to learn. i serched online but most of them were available only after registeration. can someone suggest me some … | |
I have two OUs OU=Student and OU=Teachers and my root OU is LDAP://dc=test,dc=labs,dc=edu in the Student OU i have three computers named Std1,Std2,Std3 and three computers in Teachers OU named Tea1,Tea2,Tea3 I am writing a VBA script in Excel in which i want to display my Computers in that OU … | |
hi everyone, i m a university student. currently i m doing a project dealing with 2 Serial Port IrModem. i have successfully construct d sending and receiving part.but is jus a string. what should i try out for sending a file or compress a big file and send to each … | |
I am currently writing a Poker Clock program in VB 2008. I have got everything working up until I try and type this (on a button) Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Interval = 120000 End Sub End Class 120000 being 2 minutes, I … | |
I'm drawing onto a PictureBox, using the code [code=VB.NET] Dim XPrev, YPrev, XCur, YCur As Integer Private Sub picCanvas_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picCanvas.MouseDown 'Setting the previous points for line drawing XPrev = e.X YPrev = e.Y End Sub Private Sub picCanvas_MouseUp(ByVal sender As System.Object, ByVal … | |
Hows it going everyone. Im pretty sure theres a simple way to do this, but cant figure it out right now. Im still relatively new to vb .net, and have a function that reads a csv file into a datatable and fills a datagrid. But what I want to do … | |
I have created a small application for mobile device using vs2008. i can retrieve the data . But i cant insert the data's into the database. These are methods i used to insert. But no work Any one can help to solve this issue. [B]Method - 1 ---------[/B] Dim conn … | |
:confused: I have to modify a hangman game to open a sequential file, read thru the file and count the no. of words, generate a random no. from the file and read the word from the file corresponding to the random no. and use it in the game, as well … | |
Ok I've search around and can't find a solution to it. I'm making a program to manage DKP for a game (World of Warcraft) and I need to import the roster from a website. The website is [url]http://www.wowarmory.com/[/url]. The link a guild roster will look like [url]http://www.wowarmory.com/guild-info.xml?r=Skullcrusher&n=Dark+Depths&p=1[/url]. I will have … | |
Ok , I'm new here and looking for help already. I am working through Sams teach yourself VB.net and I've lost a form! Well not quite but i am trying to get to my form in design view and I just cant seem to get to it. It opens when … | |
Hey I got a form which has no form border style. The problem is, when I run my maximise code the form covers the whole screen including the start bar. Is there anyway around this? Obviously when you click the form border's maximise button it fits nicely with the start … | |
Hi all, first of all I'm totally new to this programming thing. I've just started a degree course in IT and struggle a bit with getting the right code to do stuff. Are there any books anyone would recommend to someone who thinks "Dim" is what lights do? Oh yeah … | |
Hi..look this mi module [CODE] Module Module1 Sub Main() Dim nume As New numeros Console.WriteLine("Numeros aleatorios") Console.WriteLine("Escriba numero 1") nume.setnumero1(Console.ReadLine) Console.WriteLine("Escriba numero 2") nume.setnumero2(Console.ReadLine) Console.WriteLine("Escriba numero 3") nume.setnumero3(Console.ReadLine) Console.WriteLine("El menor numero es {0}", nume.numeromenor) End Sub End Module [/CODE] this mi class [CODE] Public Class numeros Private numero1, numero2, numero3 … | |
Hey Guys, I am currently making a VB.net version of the Classic Ski Free at the moment. (which is going really well) But I got a issue where I got a panel on the main form (the player movement area) and when I full screen the application obviously the panel … | |
Please I need help urgently in summing up several numbers in a list box using VB.NET. I,ve stayed too long tring to figure it out, but it all proved abortive. Looking forward to a reply soon. | |
Hi friends, In VB.NET which is most popular visual C#,Visual Basic,Visual J#,Visual C++ Thanking you | |
I have an if sentence in my vb.net windows form [CODE] 'If StrComp(WindowState.ToString, FormWindowState.Minimized.ToString) = 0 Then If Me.WindowState <> System.Windows.Forms.FormWindowState.Normal Then '[Object].ReferenceEquals(WindowState, FormWindowState.Minimized) Then ' System.Windows.Forms.FormWindowState.Minimized Then ' FormWindowState.Minimized Then ... [/CODE] The evaluation, as you can se I have tried in different ways, evaluates to true even it … |
The End.