20,899 Topics
![]() | |
I converted TGREER's C# implementation of a hacked StreamReader class to VB.NET and wanted to provide it for anybody who has run into the following issue: when using a [B]StreamReader[/B], and [B]ReadLine[/B], to process a text file, you cannot determine where you are "at" within a file. The following is … | |
I have a GridView, bound to a SqlDataSource. The SqlDataSource points to a table with seveeral fields, including an Activity Date field and a Name field. By default I want it to display every entry in the table, but I want to be able to dynamically filter it with three … | |
I am a beginner with VB, I'm coming from C++. When I compile and test the program the base pay textbox changes to 0, gross pay textbox to 0 and the total deductions turns to 0.25. For the life of me I can't figure out why. My little experience with … | |
Hi lads (and ladettes) I have to create a mobile application that gathers user input, saves it to a document so that it can then be emailed back to HeadQuarters. Im new to this area ... although I have used the StreamWriter/StreamReader classes to create a new TextFile and save … | |
hai i am sridar in my project there is a database it is created by msaccess and at present i am using mysql database by vb.net coding by clicking the button i want to download a datas from msaccess database to my sql please any one help me my mail … | |
Helo, i want to include paint application in my project but i dont know what to do? what i mean is do you any paint program using vb.net so that i can download?. i have no idea how to create it w/ my own.. thanks guys | |
i want to create a login text file at each login , that will be stored in system folder that can be viewed but not modified....so that the person who logged last can be traced... here is my code : Is the code correct ??? if not what are the … | |
I m writting a project i want to save finger print image in sqlserver but io.filemode.open is error occured, how can i solve for this, help me '///////////////coding [code=vbnet] Dim sqlConn As New SqlClient.SqlConnection(ConnectionString) sqlConn.Open() Dim sqlComm As New SqlClient.SqlCommand("SELECT * From InkPaperData", sqlConn) Dim SaveAdapter As SqlClient.SqlDataAdapter '(" Select … | |
my program : When i enter a name in the textfiled and click on search i should get that name along with its ID listed below in my data grid and if such name does not exists i should get msg "enquiry not found"... Am getting the result however not … | |
Hey I been messing around with a web browser appliation. I didn't want to use the IE renderer but I wanted to use Gecko. (mozilla) after some research I came across: Mozilla Control 1.5. It was ideal as it added the renderer as a COM component. Well Supposed to! It … | |
Hello. I wonder if anyone can help me. I have the Following XML file, where I load multiple SQL database connection details: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ConnectionDetails> <ConnectionName ID="1">DAWS</ConnectionName> <ServerName>LOLLIE</ServerName> <DbName>DAWS</DbName> <UserName>sa</UserName> <Password>sa</Password> <Network>TCP/IP</Network> <ConnectionDetails> <ConnectionName ID="2">FreightEquipe</ConnectionName> <ServerName>FREIGHTFOCUS2</ServerName> <DbName>FE</DbName> <UserName>sa</UserName> <Password>sa</Password> <Network>TCP/IP</Network> </ConnectionDetails> <ConnectionDetails> <ConnectionName ID ="3">Media Express</ConnectionName> <ServerName>FREIGHTFOCUS2</ServerName> <DbName>ME</DbName> … | |
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 … | |
hello everyone, im new to c++. i was able to create a dll using vb.net, created it as COM CLASS. this is for me to be able to create a .tlb file which will be imported to the c++ version 6. my question is how will i import this library … | |
: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 … | |
Hi friends, I am new to vb.net but i know vb 6.0 very well. Please tell me how can i start my programming in vb.net. At this time i have vb.net installed on my system. Thanking you | |
I'm working on a program, in which on the click of the button a new PictureBox is declared. The problem is, that i'm checking if the PictureBox exists first, using the code [code=VB.NET] If picCanvas2 Is Nothing Then Dim picCanvas2 As New PictureBox AddHandler picCanvas2.MouseDown, AddressOf picCanvas2_MouseDown Else End If … | |
Hi everyone...did anyone know any genetic algorithm in Vb.net syntax for the generation of time tables. It is meant for a secondary schools. | |
Hello, I have a web application that connects to a webservice. Usually I can step through the webservice and my start page loads up just fine. But starting yesterday this was not the case. Now I am getting the message "Unable to connect to the remote server." As an inner … | |
VB 2005 .net 2.0 I have a folder which has about 5 inherited permissions. I want to remove or change one of these permissions. In vb 6, I was able to do this through API but would like to do this in .net. It seems I can only do this … | |
I was making a app to store music in a libary and get mp3 ID3 tags but all the code snippets ive found are really complicated, i tried using the my.computer.filesystem.getfileinfo to add the tags to a box [CODE]Dim tags As ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFileinfo(my.computer.filesystem.getfiles("C:\Program files\TuNeAgE music")) Dim Foundtags(tags.Count - … | |
Hey guys I am creating a till system (EPOS system) in vb.net I have a textbox and a datagrid and I am using SQL Server 2005 as a DBMS. I have already managed to retrieve data into the datagrid by typing in an item number into the textbox, hitting a … | |
Let me first explain my program : I have a text box in which i will be entering name and then i have a button find details when i click on dis button that name which i will enter will be searched in the database and then if the name … |
The End.