Click here to Skip to main content
14,974,167 members
Everything / Programming Languages / Basic

Basic

Basic

Great Reads

by Chris Boss
BASIC is one of the most misunderstood programming languages! Mention BASIC to a current software developer and one quickly finds out that it is not viewed favorably by most programmers.
by David A. Gray
A reference chart that doubles as the engine behind a data structure mapper
by Member 12032084
.dll for making the FTP management with VB.NET easier
by George Sefcik
This article will show an easy way to add the ability to print, or save as an image, each screen (Window) or FrameworkElement (UserControl) in your application.

Latest Articles

by Nikolay Veld
Jupyter + HDFS + YARN + Spark and only one open port using NGINX
by DiponRoy
Read a large CSV or any character separated values file chunk by chunk as DataTable and Entity List
by Thomas Weller
Given here are some myths of 'textbook-TDD' and why they are wrong
by Chris Boss
BASIC is one of the most misunderstood programming languages! Mention BASIC to a current software developer and one quickly finds out that it is not viewed favorably by most programmers.

All Articles

Sort by Score

Basic 

Please Sign up or sign in to vote.
4 Sep 2017
Chris Boss
BASIC is one of the most misunderstood programming languages! Mention BASIC to a current software developer and one quickly finds out that it is not viewed favorably by most programmers.
Please Sign up or sign in to vote.
28 Jun 2016
David A. Gray
A reference chart that doubles as the engine behind a data structure mapper
Please Sign up or sign in to vote.
4 Oct 2015
Member 12032084
.dll for making the FTP management with VB.NET easier
Please Sign up or sign in to vote.
28 Aug 2016
George Sefcik
This article will show an easy way to add the ability to print, or save as an image, each screen (Window) or FrameworkElement (UserControl) in your application.
Please Sign up or sign in to vote.
15 Aug 2016
Richard Deeming
If you're replacing the entire contents of the textbox, try the simple approach:txtclients.Text = string.Join("\n", storedata);
Please Sign up or sign in to vote.
24 Dec 2016
OriginalGriff
1. Who creates a database? How is it created? Where is it created? And, what does it look like?Developers, mostly - often in their guise as "data administrators". Basically, we do it - because while it's actually pretty simple to "create a database" getting it right is a lot harder. How do...
Please Sign up or sign in to vote.
6 Apr 2018
CHill60
VB 6.0 is not sold any more - it hasn't been supported for decades. I haven't tried but I doubt very much you will get it to work under Windows 10. It was difficult enough in Windows 7 (that is a period of my life that I prefer not to talk about) Make the move to VB.net - it's free for many of...
Please Sign up or sign in to vote.
18 Apr 2013
Mike Meinz
testDataLabel.Text = testDataLabel.Text & typeListBox.Items(typeIndex).ToString & " " & guests.ToString & " " & totalCharge.ToString("C0") & vbNewLine
Please Sign up or sign in to vote.
2 Aug 2013
OriginalGriff
Set the tab order so that a different control that can accept the user input focus has a lower number: the OK button, for example."It works but only with buttons and textbox,RTF boxes ones ! i dont need it but is there any way to work it with picture box or labels something... Just curious...
Please Sign up or sign in to vote.
3 Aug 2013
Sergey Alexandrovich Kryukov
"Focus" always means "keyboard focus". You can have focus on something else, some other control which allows user input. Not having keyboard focus when a form gets activated makes no sense at all.Besides, it's the best to set focus to some control of your choice only once, when the form is...
Please Sign up or sign in to vote.
13 Aug 2014
Richard MacCutchan
There is no simple way by programming to rename a registry key. You would have to create a new key, copy the subkeys and values from the old one to the new one, and delete the old key and its content. This seems like quite an advanced test for a school project, especially given your comments...
Please Sign up or sign in to vote.
16 Feb 2015
Richard MacCutchan
At a brief glanceico == Icon.FromHandle(bmp.GetHicon); // error should not be "=="// should be ico = Icon.FromHandle(bmp.GetHicon);However, your title mentions Visual Basic so there may be other issues. Please edit your question and explain exactly what error you see.
Please Sign up or sign in to vote.
18 Jun 2015
Sergey Alexandrovich Kryukov
You cannot "contain a FillRectangle"; this is not a stationary object. You can render rectangle using System.Drawing.Graphics.FillRectangle, but it happens in response to Paint event.First, scrolling. For scrolling, you can have your control where you render graphics inside some scrollable...
Please Sign up or sign in to vote.
29 Jul 2015
Wendelius
You have an extra comma in the end of the column list in the statement. Instead of str = "insert into ListOfVessels ([VesselCompanyName], [VesselBuild], [VesselType], [VesselGross], [VesselDW], [VesselFlag], [VesselImoNo], ) values (?, ?, ?, ?, ?, ?, ?)"try str = "insert into ListOfVessels...
Please Sign up or sign in to vote.
28 Sep 2015
Sergey Alexandrovich Kryukov
Please see my comment on Free Pascal. From your comments, I suspect this is what you may like. There is a huge culture (anti-curly-braces culture, by the way) behind it: Algol, then Wirth's Pascal, Modula, Ada (most important step), Borland's Turbo Pascal, Object Pascal, Delphi (major .NET...
Please Sign up or sign in to vote.
15 Dec 2015
OriginalGriff
You're getting close, but you need a loop to go through each of the characters in turn: at the moment you only look at the first one (and that by luck, since you don't ever assign a value to mycount).I'd also use a Select Case instead of long If condition:Dim vowels As Integer = 0For Each...
Please Sign up or sign in to vote.
15 Feb 2016
hypermellow
Hi,The reason you are receiving an exception is because the email address format is NOT valid.Have a look at:Email address - Wikipedia, the free encyclopedia[^]Local part:Character . (dot, period, full stop), ASCII 46, provided that it is not the first or last character, and...
Please Sign up or sign in to vote.
24 Mar 2016
Patrice T
Qbasic is seriously outdated, I recommend to update to more recent language.The only way is by reading documentation, trying examples, and finding tutorials (if possible), you are more likely to find examples programs, but you will have to analyze them yourself to understand.
Please Sign up or sign in to vote.
24 Sep 2016
OriginalGriff
Look at your IF:IF num1 > num2 AND num3 THENThat doesn't do what you think it does!You think it means "if number one is the greatest of the three numbers" - it doesn't. The AND breaks it into two separate conditions and insists that both must be true: So "if number one is greater than number...
Please Sign up or sign in to vote.
8 Aug 2020
Richard MacCutchan
Sandeep's answer is partially correct, but I think you want the possibility of any combination of the options, so something like: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim someString As String ...
Please Sign up or sign in to vote.
20 Jul 2021N
OriginalGriff
To define a class in Python, you use the keyword class: Python Classes[^] So all you need to do to find the class name in there is find the keyword and look to it's right. And .. it isn't in there. So ... no classes are created in that code,...
Please Sign up or sign in to vote.
24 Oct 2012
_Vitor Garcia_
Check this outQuickSort Revisited, Optimised, and Stabilised[^]
Please Sign up or sign in to vote.
24 Feb 2013
Prakash Thirumoorthy
use session objects,value assigningsession["SessionName1"]="test";getting values from sessionvar a = session["SessionName1"];Regards,Prakash.T
Please Sign up or sign in to vote.
28 May 2013
Maciej Los
Have a look at similar question and answers: Take One List Box Item At A Time Then Perform Code[^]
Please Sign up or sign in to vote.
29 May 2013
CHill60
There is quite a lot wrong with your code ...1. You have started a timer and stopped it but you are not actually using it. Here is a link to a timer tutorial[^]2. As a result of that your For loop runs very quickly straight through to the point where it sets Label3 text to "OK".3....
Please Sign up or sign in to vote.
2 Aug 2013
Pheonyx
Hi there,I believe the solution to your problem can be found here:How to extract the strings between two characters[^]It uses a regular expression to find the string and extract it.
Please Sign up or sign in to vote.
2 Aug 2013
Thomas Daniels
Hi,Try this:label1.Text = System.Text.RegularExpressions.Regex.Match(textBox1.Text, "(?
Please Sign up or sign in to vote.
7 Mar 2014
OriginalGriff
All you need to do is look at the entries in the file.Assuming you are using SharpZipLib:public static bool IsPasswordProtected(string path) { using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read)) { using (ZipInputStream zip = new...
Please Sign up or sign in to vote.
27 May 2014
Richard MacCutchan
References:recordset ' is a reference to a set of records, and must be initialised at the beginning of the program..field ' is a reference to a particular property of the recordset("DATE") ' is a field qualifier which creates a reference to the "DATE" column in the recordset field...
Please Sign up or sign in to vote.
18 Jun 2014
_Asif_
Add one bracket in both these linesif ((((strcmp(taxstatus, "S")==0))||((strcmp(taxstatus, "s")==0)))){if ((((strcmp(taxstatus, "M")==0))||((strcmp(taxstatus, "m")==0)))){
Please Sign up or sign in to vote.
18 Jun 2014
KarstenK
it is a bracket too much opened, but write cleaner code:if ((((strcmp(taxstatus, "H")==0))||((strcmp(taxstatus, "h")==0))) && (grosspay>500)){//is is enough bur use spaceif ( ( (strcmp(taxstatus, "H")==0) || ((strcmp(taxstatus, "h")==0) && (grosspay>500) ) {instead of...
Please Sign up or sign in to vote.
28 Sep 2014
Richard MacCutchan
You can read http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseposition(v=vs.110).aspx[^] for getting the mouse position, and http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawline(v=vs.110).aspx[^] for drawing lines. If you are starting out in...
Please Sign up or sign in to vote.
29 Oct 2014
Peter Leow
Read this to understand the root cause: SQL FOREIGN KEY Constraint[^]
Please Sign up or sign in to vote.
2 Apr 2015
OriginalGriff
If you go to the home page: http://www.codeproject.com/[^]You will see a link on the right hand side: http://www.codeproject.com/Learn/Android/[^] - start there.
Please Sign up or sign in to vote.
2 Apr 2015
Suvendu Shekhar Giri
I believe, the source to learn android programming is Getting Started With Android Development[^]This is official documentation/help site for android developers.Another useful website is -Android Programming Tutorial[^]Even I've written few android tutorials, have a look if those...
Please Sign up or sign in to vote.
18 Aug 2015
CHill60
If you debug your code you will find that Obj1 contains all of the values in your range, not just a single cell.I also prefer to use the StringBuilder class rather than concatenating strings (you will need Imports System.Text)So potentially the easiest way to iterate through all of the...
Please Sign up or sign in to vote.
3 Sep 2015
OriginalGriff
Don't. It's possible but it rarely ends well.The problem is that while it's easy to grow and shrink the controls themselves (in the .NET version of VB that can be automatic using the Dock and Align properties) that doesn't change any font size, because that is set by the system to be...
Please Sign up or sign in to vote.
6 Nov 2015
Maciej Los
Above code refers to Microsoft Office Excel BeforeSave event, but you mentioned that you use OpenOffice Calc!See:Using a Global Library to Automate OOo Calc[^]Document Events[^]Creating a simple macro[^]Google book: Using Spreadsheets in OpenOffice.org 3.3[^]
Please Sign up or sign in to vote.
26 Nov 2015
Garth J Lancaster
I think you need to 1) explain what you mean by JSON format and or check the definition.2) explain what you'll be doing with the JSON data that 'represents' a file you could, for example, do something like this :-"MyFileStringArray" : ["File Line 1", "File Line 2"]but that...
Please Sign up or sign in to vote.
26 Nov 2015
Sergey Alexandrovich Kryukov
The question, as formulated, makes little sense. JSON format is nothing but just format; this is the form of syntax for a JavaScript object of type 'object'. Okay, if, for example, you have some text in, say, JavaScript variable, allText, the JSON string may look as{"text": allText; }When...
Please Sign up or sign in to vote.
15 Feb 2016
Richard Deeming
This bug seems to have been fixed somewhere between versions 4.0 and 4.6 of the framework. The following code fails in .NET 3.5, but works as expected in 4.6 on my machine:var address = new MailAddress("name.@outlook.com");If you need to support this type of address, it seems your only...
Please Sign up or sign in to vote.
1 Mar 2016
Matt T Heffron
This is clearly homework since "need to use if statement".Clearly you need to get more familiar with C# syntax; specifically the assignment and comparison operators.public bool IsEnrolled(){ if (CurrentEnrolledCourse == null) { return false; } else { ...
Please Sign up or sign in to vote.
23 Mar 2016
Richard Deeming
Use the shell folder constant {commonstartup}, as documented here[^].
Please Sign up or sign in to vote.
24 Mar 2016
CPallini
Google[^] is your friend.
Please Sign up or sign in to vote.
10 Apr 2016
Patrice T
Quote:i need helpho can i add two numbers using function in visual basicWhat you need is to learn the language and this, we can't do it for you.I recommend to read VB documentation and follow tutorials. You will find the answer to your question pretty soon.The question tells us that...
Please Sign up or sign in to vote.
7 Sep 2016
Garth J Lancaster
you're doing a lot of console.readline(s) there ... are you sure you need that many ? how about something like (using one variable to hold the answer, instead of one for yes and no)Dim answer As StringConsole.WriteLine("Hello, Would you like to know why programming is valuable? Yes or...
Please Sign up or sign in to vote.
26 Sep 2016
Garth J Lancaster
I would have started on a piece of paper, since you only have 3 variables, LINES, X, YI'm going to use a notation a
Please Sign up or sign in to vote.
11 Oct 2016
CPallini
Following Richard's suggestion:Quote:You are looking for the string "time" in the array of integers, so that will never work. You need to create a variable named time that will be allocated some integer value indicating what the hour is.trystore_open = Nonestore_hours = [9, 10, 11, 12,...
Please Sign up or sign in to vote.
8 Jan 2017
Dave Kreskowiak
The last version of Visual Studio that was supported on Vista (requires SP2) was 2010.I'd SERIOUSLY look at upgrading the O/S to at least Windows 7 so you can use the latest version of Visual Studio.You can get VS2010 Express from here[^].Today's free version of Visual Studio is 2015...
Please Sign up or sign in to vote.
8 Jan 2017
Peter Leow
You will need a development pc and an IDE for development and testing, you can get a community edition of the latest visual studio at Downloads | Visual Studio Official Site[^] Before that, get yourself a newer pc and os that meet these Visual Studio 2017 System Requirements[^] Once the...
Please Sign up or sign in to vote.
9 Jan 2017
OriginalGriff
It depends. If the member has it enabled - and not all do - then if you look at any forum message (not Quick Answers) then there will be an "Email" option at the bottom, next to "Reply". This send a private message to them, adding with your email for a reply. Be aware that many people may...
Please Sign up or sign in to vote.
3 Apr 2017
Dave Kreskowiak
You don't "code the check boxes". You write code to get the state of the checkboxes and go through whatever algorithm you're talking about to generate the value you're looking for. Since you make no mention of what this algorithm is supposed to do to generate the end result, it's impossible to...
Please Sign up or sign in to vote.
26 Apr 2017
Richard MacCutchan
Your signUp class does not have an explicit base class so it is based on the Object Class (System)[^] which does not have a load method.
Please Sign up or sign in to vote.
22 Sep 2017
OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
Please Sign up or sign in to vote.
19 Jan 2018
Karthik_Mahalingam
W3Schools JS [^] is the best and easy way to start for beginners You shall practice using   Try it Yourself »   button under each topic, but it will not have any intellisense support, for smooth typing experience you shall download any code editor like Visual Studio Code - Code Editing....
Please Sign up or sign in to vote.
19 Jan 2018
Patrice T
This site will help you ti learn languages and techniques related to web development. W3Schools Online Web Tutorials[^]
Please Sign up or sign in to vote.
5 Feb 2019
CPallini
You code doesn't try to find prime numbers: it lacks a primality test and the like. Try import math def is_prime(primes_list, n): # primality test limit = math.ceil(math.sqrt(n)) i = 0 while primes_list[i]
Please Sign up or sign in to vote.
28 Feb 2019
MadMyche
I would review the MS Documentation on Basic Authentication and look at the section for configuration of login domains Basic Authentication | Microsoft Docs[^]
Please Sign up or sign in to vote.
31 Mar 2019
CHill60
You are not supposed to "find" the code, you are supposed to write it. We will not write code for you - there are other websites where you can pay programmers to do that. This is either your job or your homework. Either way it is your responsibility to write the code (and test it, and submit...
Please Sign up or sign in to vote.
29 Oct 2019
OriginalGriff
Start with the last element, and reduce your index instead of increasing it. If you use the Array.Length property, and subtract one you have the index of the final element: in your case that would be 10 - 1 = 9 I'd use a For loop instead of While though.
Please Sign up or sign in to vote.
27 Apr 2020
CHill60
If you know enough about this to give us a hint then you know enough to answer your own question. But, what you have actually done is post your homework or course exercise. We do not do your homework, although we will help if we can if you get...
Please Sign up or sign in to vote.
28 Apr 2020
Richard MacCutchan
The constructor for Student contains one more parameter than the constructor for Person. You need to add a call to the parent constructor with the following code: Student(String firstName, String lastName, int id, int[] testScores) { ...
Please Sign up or sign in to vote.
22 Apr 2021
Nikolay Veld
Jupyter + HDFS + YARN + Spark and only one open port using NGINX
Please Sign up or sign in to vote.
7 May 2021
Richard MacCutchan
Wrong place. This website is for technical questions, and you have been a member long enough to know that. Try your local library.
Please Sign up or sign in to vote.
19 Jun 2021
Patrice T
Quote: ArrayTag contains more than three items, whatever number i decide to arragtag, same problem. Maybe is all about the module Stop guessing, and make sure with the debugger. Your code do not behave the way you expect, or you don't...
Please Sign up or sign in to vote.
15 Jun 2021
Wendelius
If I understand the situation correctly, I think it would be easier to work with XmlDocument rather than using a XmlWriter to write the content. With XmlDocument you can create/modify/delete the content and when needed you can save or load the...
Please Sign up or sign in to vote.
15 Jun 2021
Maciej Los
I'd suggest to use XmlSerialization[^]. See: A Complete Sample of Custom Class Collection Serialization and Deserialization[^]
Please Sign up or sign in to vote.
24 Jun 2021
Maciej Los
WebBrowser class[^] has several disadvantages. See: c# - Webbrowser Control Limitations - Stack Overflow[^] - answer provided by Erx_VB.NExT.Coder. So, if you would like to be able load sites with javascript, you have to change with another control.
Please Sign up or sign in to vote.
24 Oct 2012
b2906
3 alternatives  
I have been given an algorithm which I then have to make a program for which allows the user to enter in 8 Numbers into an array. Each time a number is entered, the index is incremented and a new maximum is found based on the numbers entered. The algorithm goes as is: BEGIN Set Index to...
Please Sign up or sign in to vote.
24 Oct 2012
fjdiewornncalwe
I would make a small change in the way you write your conditions so as to remove some redundant duplication of code.If Index = 7 Then MsgBox("Maximum amount of data entered, reset to add more.")ElseIf txtShoeSize.Text = "" Then MsgBox("Enter a Number.")Else If Num >= Maximum...
Please Sign up or sign in to vote.
24 Oct 2012
psychic6000
i cant find where you are read the variable num, are you missing thisIf (Integer.TryParse(txtnum) = True) Then num = Integer.Parse(txtnum) Else MessageBox.show("Not A number")returnend if
Please Sign up or sign in to vote.
1 Nov 2012
Deenuji
1 alternative  
how to pass one page fileuploadbox filename to another page in asp.net?
Please Sign up or sign in to vote.
1 Nov 2012
sarathtamil
IN Upload Button Clickstring strFilename = Path.GetFileName(FileUpload1.FileName);label1.text=strFilename;Session["filename"]=label1.text.ToString();using session to pass the filename in another page:another page:pageload()string a=Session["filename"].ToString();Label2.Text=a;
Please Sign up or sign in to vote.
9 Jan 2013
Sarathkumar Nallathamby
1 alternative  
Hi all,I am having exp in asp.net .. But some of my fri tellling learn from basics.. As i know c, c++ is the basic for the programming ..But, Somebody telling before u start to develop u need to study some logics and maths like algorithms and all .. Whether anybody have any suggestion...
Please Sign up or sign in to vote.
9 Jan 2013
prashant patil 4987
you must learn basc concept of c, CPP, OOPs all Concepts..
Please Sign up or sign in to vote.
18 Jan 2013
Richard MacCutchan
Don't! VB6 is long out of support and will gain you nothing. If you want to learn some sort of Basic then VB.NET is the way to go. However, as others have already said, C# is probably a better choice if you have a C background.
Please Sign up or sign in to vote.
18 Jan 2013
Member 9768396
2 alternatives  
Hello every one so i want to learn Visuel Basic 6 Because i'm finish C langauge .If you have any books can help me do note hestate please and thank you ...
Please Sign up or sign in to vote.
18 Jan 2013
Tharaka MTR
If you finished "C" language, I can't imaging why are you going to study Visual Basic 6 instead of C#. My advice is, C# is suitable for you. Event VB.NET is better than VB6. VB6 is very old language.anyway, here are the links for...
Please Sign up or sign in to vote.
3 Feb 2013
Dree2
After all those responses :) and a couple of days of more searching I found this:http://visualstudiogallery.msdn.microsoft.com/28b96cd4-b755-48a0-b686-9abb7d5607a8[^]Works like a dream.Dree
Please Sign up or sign in to vote.
24 Feb 2013
Teledextri
2 alternatives  
I would like a simple way to get the value from a previous web page.I tried this:var=Page.PreviousPage.FindControl("Hidden1")but I need to have var be a string or a double to put it in a textbox on the current page.If there are better ways of finding data from other pages feel...
Please Sign up or sign in to vote.
24 Feb 2013
Sisir Patro
HI,You can get the value from one page to another page by 3 different ways.1. using session value.2. using querystring values.3. using cookies concept.Use one of these following methods and you can able to get the value from previous page.Thanks
Please Sign up or sign in to vote.
26 Feb 2013
SleepyCrat
If you are trying to get parameter values from querystring and you are already using JQuery, then you can try out this plugin which will get q-string params for you. jQuery-URL-ParserI haven't tried it , but it seems it will work for you in the following format...var...
Please Sign up or sign in to vote.
23 Apr 2013
PEANAFCONSULT
I am developing an application in Visual Basic 2010 that is accessing a database using ADOThe problem I have is that the reference to ADO seems to disappear when I clean the build.The error message I get is:'ADODB' is not declared. It may be inaccessible due to its protection...
Please Sign up or sign in to vote.
28 May 2013
Sergey Alexandrovich Kryukov
Use Form.Location:http://msdn.microsoft.com/en-us/library/ms159414.aspx[^].It's up to you what events of menu strip you need to use — you did not explain what behavior do you want. But it should not be a problem, too.—SA
Please Sign up or sign in to vote.
11 Jun 2013
Member 10018770
1 alternative  
I want to Get Full port name such as "Standard Serial over Bluetooth link (COM).How can i do it through Serialport in visual basic 2008.
Please Sign up or sign in to vote.
2 Aug 2013
AbhinavGauniyal
2 alternatives  
I was just writing a small program to start with Visual Studio (visual basic) , and i am stuck at 1 particular position. Suppose there is 1 text box (in which user enters some sentence) and a label beside it. now i want that if User enters this sentence: "#Green# What is color of the leaf"Then...
Please Sign up or sign in to vote.
4 Mar 2016
AbhinavGauniyal
2 alternatives  
I have created a form in Visual basic and a textbox into it. Whenever i start the form[debug it :p] (press F5) the textbox automatically gains focus. I dont want it to gain focus, any way to do that?
Please Sign up or sign in to vote.
7 Aug 2013
hasmukhsumra2005
1 alternative  
Open remote url webpage with Basic authentication by asp.net,I have done code likeInternetExplorer IEControl = new InternetExplorer();IWebBrowserApp webBrowserCtl = (IWebBrowserApp)IEControl;string strAuthenticationHeader = "Authorization: Basic " +...
Please Sign up or sign in to vote.
7 Aug 2013
Manas Bhardwaj
I guess you need to really go back to the design board and decide what you want to do. Are you seriously creating InternetExplorer object on server in ASP.Net? That would never work and does not make sense at all.
Please Sign up or sign in to vote.
14 Aug 2013
Rakesh Meel
Function tired_of_name_test()Dim oExcel As Excel.Application ' Excel ApplicationSet oExcel = New Excel.Application ' Start itoExcel.Workbooks.Open...
Please Sign up or sign in to vote.
14 Aug 2013
ridoy
Try something like..Dim FileNumber As Integer = FreeFile()FileOpen(FileNumber, "d:\path\filename.txt", OpenMode.Output)For Each Item As Object In ListBox1.Items PrintLine(FileNumber, Item.ToString)NextFileClose(FileNumber)Or,Private Sub btnSave_Click(ByVal sender As...
Please Sign up or sign in to vote.
14 Aug 2013
ridoy
Check these..Export data to Excel in Vb.Net with Auto format technique.[^]Export ListBox data to Excel... [^]
Please Sign up or sign in to vote.
21 Aug 2013
Stefan Wittwer
I think that is, what you want:' Some variablesDim moveX, moveY As IntegerDim newpoint As New Point' Setting up Point 'newpoint'Private Sub MnD() Handles MenuStrip1.MouseDownmoveX = Control.MousePosition.X - Me.Location.XmoveY = Control.MousePosition.Y - Me.Location.YEnd...
Please Sign up or sign in to vote.
24 Aug 2013
Mahesh Bailwal
It seems like that dataFromClient does not contains "$" and that's why dataFromClient.IndexOf("$") is returning -1 which causing dataFromClient.Substring(0, dataFromClient.IndexOf("$")) to throw "Length cannot be less than zero" exception.Please debug and check it.
Please Sign up or sign in to vote.
26 Aug 2013
PatilVL
2 alternatives  
HiI am facing a strange problem.When I insert a record from VB.net code to MS Access 2010, the record gets inserted. But when I open the Access database I find that the first field is not showing the value. But I know that the value is recorded but just not visible (By entering a character...
Please Sign up or sign in to vote.
26 Aug 2013
_Amy
No, it's not possible. A value you inserted in database will/should be available in the database table. If I am not wrong, your record(which you are trying to insert) is not getting inserted in database.PatilVL Wrote:By entering a character of the value in search textbox, it will be visible...
Please Sign up or sign in to vote.
22 Sep 2013
Member 10290452
im just trying to some low level programing in free basic to explain to my six year old son that computers aren't magical and that there programed by people and the computer does exactly as its told. anyway I wanted to write a simple program for him to play with where hes a spy hacking into a...
Please Sign up or sign in to vote.
14 Oct 2013
Madhu Nair
Change the format of the cell to Text before copying the value
Please Sign up or sign in to vote.
29 Oct 2013
Valery Possoz
HelloIf you assume that TextBox1.Text and Label1.Text always contains a number then just multiply the two values and display the result:Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Timer1.Enabled = False Dim...
Please Sign up or sign in to vote.
27 Nov 2013
OriginalGriff
Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.Posting this here relies on them "dropping by" and...
Please Sign up or sign in to vote.
17 Feb 2014
PatilVL
This was a silly mistake. In vb code the character vbcrlf was added (in the beginning of the string in some place to the text string which was inserted into field. (If I wanted to stored a string Mystring, I was sending vbcrlf & Mystring). Thus the sting stored was not at all visible!
Please Sign up or sign in to vote.
4 Mar 2014
Kourosh Hashemi
1 alternative  
How To Build A Excel File Searcher In Visual Studio.netthat mean i enter a name in this program and it give me result in excel.please help me i need this program
Please Sign up or sign in to vote.
4 Mar 2014
Richard MacCutchan
Do not multi post the same question. I already responded to your later post of this subject.
Please Sign up or sign in to vote.
10 Apr 2014
omprakash jaiswal
2 alternatives  
hi dear sir i have create zip file and this is password protected. and how to check this Rar file is password protected file throw code in vb6.0;plz help me
Please Sign up or sign in to vote.
7 Mar 2014
Abhinav S
This cannot be done without using a third party like SharpZipLib[^].
Please Sign up or sign in to vote.
20 Mar 2014
Benniit
1 alternative  
I'm using visual studio 2012 (vb.net) and when I created the project, there was this start button on the tool bar which looks like an arrow.Some weeks later, I realized the start button had changed to "Attach".When I run the application, "Attach to Process" form appears instead of my...
Please Sign up or sign in to vote.
21 Mar 2014
Benniit
I'm using visual basic.net 2012 ultimateand when I created the project, the start/continue button on the tool barwhich looks like an arrow was there.Some weeks later, I realized the startbutton had changed to "Attach".When I run the application, "Attach toProcess" form appears...
Please Sign up or sign in to vote.
23 Mar 2014
CHill60
I presume you are referring to the green "Start Debugging" button and you have inadvertently changed the menu bar optionsThe following link will explain how you can change thathttps://www.google.co.uk/?gfe_rd=ctrl&ei=YisvU8z7FKfR8gej5IFA&gws_rd=cr#q=visual+studio+customize+menu+bar[^]
Please Sign up or sign in to vote.
7 Apr 2014
Jack Kentos
Hey guys,So I am doing a third year university economics unit concerning climate change. Myself and three others have been tasked with the following:Your task is to design a market for due date trading for implementation in 2015. You will need to think and make decisions about the...
Please Sign up or sign in to vote.
20 Apr 2014
Atakan Aktoprak
Hi , I'm trying to write a program.Will be a question.How do I print the name and save face?I made the program codes.Dim cekim As Capture = New Capture Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim resim As...
Please Sign up or sign in to vote.
26 May 2014
abkcareer
1 alternative  
I'm working on a RESTful mobile application using ASP.Net Web APIs. I am inclined to use Basic authentication. I have followed some articles which gave me good start. I understood that "username:password" will be encoded and added to "Authorization: Basic " and sent it as header on subsequent...
Please Sign up or sign in to vote.
26 May 2014
sankarsan parida
Follow both of article which will help you to make your requirement fullfilSend Parameter using HTTP request security/basic-authentication[^]Encode your passwordhow-to-encrypt-and-decrypt[^]
Please Sign up or sign in to vote.
27 May 2014
Member 10430192
1 alternative  
Hello, I use ado control to connect access 2003. Now I am stuck in inserting date and Time. It gives me errors.So Can anyone give me code how to insert date from vb.net to access database.The code which I use isto add date in the recordsetrecordset.field("DATE").value=...
Please Sign up or sign in to vote.
7 Jun 2014
Bebser
I really don't get why this doesn't work for 64bit applications to read 32bit applications modules.Works perfect with 32bit -> 32bitWell this works perfect to grab modules from 32bit process to other 32bit process when using dwFlags &H8But with 64bit to 32bit it fails with dwFlags set to...
Please Sign up or sign in to vote.
17 Jun 2014
Richard MacCutchan
See https://www.google.com/search?q=mikromedia+5+for+tiva[^], and please also read Code Project Quick Answers FAQ[^].
Please Sign up or sign in to vote.
23 Jun 2014
rickolous
Hey guys, I am trying to solve one of the problems in the authentication section of pentesterlabs but I just can't seem to get it right. In essence, I am trying to use the urllib2 library in python for basic HTTP authentication, however despite providing the correct username and password I keep...
Please Sign up or sign in to vote.
20 Jul 2014
damuvi
Hi everyone, First of all I want to thank everyone in advance and to apologize because I have very little experience playing with wndproc and messages. I'm using the code of the following link (converted to Visual Basic and a bit modified) to intercept the keys from a barcode scanner and...
Please Sign up or sign in to vote.
23 Aug 2014
OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys.
Please Sign up or sign in to vote.
29 Aug 2014
OriginalGriff
Your best bet is to add another bool: ignoreClick.Set it to true in the MouseUp handler if it was doing a drag and check it in the Click handler.Reset it in two places: at the end of the Click handler, and in the MouseDown event just to be on the safe side.I got the order of execution...
Please Sign up or sign in to vote.
29 Aug 2014
ADemontis
2 alternatives  
I have an app where i add images programmatically to simulate the desktop shortcuts.... the idea is that i can drag the images around and click on them to start a process.The app creates the mouse events via addHandler in order to drag the image around...it uses 1)mousedown: it sets a...
Please Sign up or sign in to vote.
30 Aug 2014
ADemontis
I have found out that the Button object is not viable for this particular issue, in no way there is a method to implement the MouseClick or the MouseDoubleClick in the same object defining the mousedown and mouseup event programmatically.I had to change the newbutton type to Picturebox and now...
Please Sign up or sign in to vote.
27 Sep 2014
Mehdi Gholam
The "graphic card" is in your system, the monitor is only a display.
Please Sign up or sign in to vote.
10 Oct 2014
Sergey Alexandrovich Kryukov
You can use the class PrintDocument:http://msdn.microsoft.com/en-us/library/system.windows.printing.printdocument%28v=vs.95%29.aspx[^].—SA
Please Sign up or sign in to vote.
28 Oct 2014
Anzeis
3 alternatives  
Greetings,I have a problem with visual studio, I'm trying to insert values into a table with a foreing key, but I keep getting this errorThe INSERT statement conflicted with the FOREIGN KEY constraint"FK__sales__id_book_1920BFC". THe conflict ocurred in database "....Bookstore.mdf",...
Please Sign up or sign in to vote.
28 Oct 2014
Animesh Datta
Hello ,The error clear says that You're trying to insert a value into a column that has a FK constraint on it that doesn't match any values in the lookup table.So , check "id_book" column of which the table references before insert the data . thanks
Please Sign up or sign in to vote.
29 Oct 2014
Anzeis
I gave up and dropped the database and made a new one, then I removed the DataSet from my application on Visual Studio and created it again.
Please Sign up or sign in to vote.
15 Nov 2014
Sergey Alexandrovich Kryukov
First of all, you should not use PictureBox. My past answers explain why and what to do instead:Append a picture within picturebox[^],draw a rectangle in C#[^],How do I clear a panel from old drawing[^],What kind of playful method is Paint? (DataGridViewImageCell.Paint(...))[^],capture...
Please Sign up or sign in to vote.
13 Dec 2014
OriginalGriff
You need to add handlers to your TextBox to handle the critical DragAndDrop events: DragEnter and DragDrop: this shows how to add handlers: http://msdn.microsoft.com/en-us/library/ms743596(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2[^]The DragEnter handler needs to check if the...
Please Sign up or sign in to vote.
6 Jan 2015
CHill60
They're still being posted e.g. http://www.codeproject.com/search.aspx?q=vb.net&doctypeid=1%3b2%3b3%3b13%3b14&sort=threadmodifieddesc[^]Obviously there are fewer if it's VB6 you meant http://www.codeproject.com/search.aspx?q=vb6&doctypeid=1%3b2%3b3%3b13%3b14&sort=createddesc[^]
Please Sign up or sign in to vote.
6 Jan 2015
Sergey Alexandrovich Kryukov
Whatever you mean by "Visual Basic", even VB.NET (decent language per se) cannot be considered as anything serious, just because it was never meant to be standardized.And probably you look at C++ as at the very high-tech and clever thing? I would call it rather naive...For .NET, you will...
Please Sign up or sign in to vote.
30 Jan 2015
codetowns
1 alternative  
I am trying to find the best way to create and manage a shared log over a network in VB.net. Users on different PCs must be able to change checkboxes related to the status of files within a folder and all users must see all changes. In other words, say 5 people on different PCs all have...
Please Sign up or sign in to vote.
30 Jan 2015
Zoltán Zörgő
What has this to do with logs/logging? Anyway, the simplest method of sharing such data is using a database engine. Not necessary a heavy one like SQL Server - Firebird would do it, aspecially as it implements event model, so you can notify users about changes. An other approach woud be using...
Please Sign up or sign in to vote.
25 Mar 2015
serkanguncan
I found the answer ("message_body")The article you wrote is sending the message section diagnosis TextBox on facebookWebBrowser2.Document.GetElementById("message_body").SetAttribute("Value", TextBox2.Text)
Please Sign up or sign in to vote.
31 Mar 2015
AnotherKen
Maybe this will help? Mouse and Keyboard Tracking and Simulator[^]
Please Sign up or sign in to vote.
2 Apr 2015
Peter Leow
Follow these winning articles of Learn Android Tutorial Contest [^]
Please Sign up or sign in to vote.
14 May 2015
Ahmed Mohamed Hafez
1 alternative  
I want to make a title appear when the mouse pointer Enter for example a button Like thishttp://www9.0zz0.com/2015/05/14/15/236720724.jpgI'm using Visual basic 2013
Please Sign up or sign in to vote.
14 May 2015
OriginalGriff
How you do that depends on the environment you are writing code for: for WinForms for example, it's a ToolTip : MSDN[^]For web sites, it's the title="" HTML control element that does this.
Please Sign up or sign in to vote.
11 Jun 2015
CHill60
Whenever you are getting data from a database you should always check that the query has returned something before attempting to use it. For example Protected Sub DDOFIREF_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles DDOFIREF.SelectedIndexChanged 'LblRef.Text...
Please Sign up or sign in to vote.
8 Jul 2015
Ralf Meier
This is a customized PictureBox with a "real" transparent Background.Public Class customPictureBox Inherits PictureBox Public Sub New() Me.SetStyle(ControlStyles.Opaque, True) Me.SetStyle(ControlStyles.OptimizedDoubleBuffer, False) ...
Please Sign up or sign in to vote.
29 Jul 2015
Member 11872136
1 alternative  
Imports System.Data.OleDbPublic Class New_Vessel Dim provider As String Dim dataFile As String Dim connString As String Dim myConnection As OleDbConnection = New OleDbConnection Private Sub ListOfVesselsBindingNavigatorSaveItem_Click(ByVal sender As System.Object,...
Please Sign up or sign in to vote.
18 Aug 2015
Member 11917664
1 alternative  
Hi everyone,In simple terms I would like to use Vb.net to extract the values of a range of specified cells from an excel workbook and display those values onto a form. I have no problems opening or running the excel application/workbook; I can even read a single cell or multiple cells from...
Please Sign up or sign in to vote.
3 Sep 2015
TheBigBearNow
1 alternative  
Hello all,I am currently working on a Visual Basic application and I currently have a form created. I was wondering and been looking for a way so when the user re-sizes the form the controls will change in size depending on the user making it bigger or smaller.Also another thing I am...
Please Sign up or sign in to vote.
28 Sep 2015
OriginalGriff
You are asking for quite a lot here: Still supported, OO design, no .NETHave you looked at native C++?It's not rapid development, and it's not Basic syntax, but...if you want Basic syntax then you are stuck with Basic. And with the exception of the .NET version, that's pretty much dead as...
Please Sign up or sign in to vote.
29 Sep 2015
Vinod Kc
Hi all,I have found a program called WideStudio for RAD programming in Python, Ruby, Perl, C++. It is made by a group pf Japanese programmers. Strange UI. But i think i can something with it. Let me wet my feet in it.
Please Sign up or sign in to vote.
5 Nov 2015
VR Karthikeyan
1 alternative  
Hi,I want to disable Save and Save As options in the File Menu of OpenOffice Calc using Macro. I have tried the following code,Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) MsgBox "You can't save this workbook!" Cancel = TrueEnd SubBut it doesn't...
Please Sign up or sign in to vote.
22 Nov 2015
Member 12160080
can we create a class of view instead of table? Using GNR8
Please Sign up or sign in to vote.
30 Nov 2015
Member 12176796
1 alternative  
If e.ColumnIndex = 0 Then 'Delete button clicked 'delete button clicked inside PositionDataGridView If sender Is interviewDataGridView Then 'Messagebox notifying the user they're about to delete a record dlgResult =...
Please Sign up or sign in to vote.
30 Nov 2015
George Jonsson
Why not use the BindingSource you already have, PositionCompanyBindingSource, and connect it to your text boxes?ComTextBox.DataBindings.Add(New Binding("Text", PositionCompanyBindingSource, "Name"))(Not sure if this binding source is the correct one)You can also use a DataSet, let's...
Please Sign up or sign in to vote.
15 Feb 2016
Jurdz1964
2 alternatives  
Hi. VB Net 2008Im using System.Net.mail (version 3.5.0.0 of System.Net) to send emails.We have a perfectly valid email address in the format name.@outlook.com(Note the period before the @) but when adding the email address using mymailmessage.To.Add("name.@outlook.com") we get the...
Please Sign up or sign in to vote.
21 Feb 2016
OriginalGriff
No - because we have no idea what it should be producing, and no access to your data to test it! :laugh:This is a part of development: getting the code you wrote to work. It's a skill, and it's called debugging. Like all skills, it only develops and improves with use.So start with the...
Please Sign up or sign in to vote.
4 Mar 2016
ragys
I have a WCF Service Library Project for Duplex Communication, and a Windows Forms Application for testing with service reference to WCF Project.All Works ok, but when WCF Service try to respond with 136.500 bytes of data, I get error 413 "Request Entity Too Large."WCF Service Library...
Please Sign up or sign in to vote.
23 Mar 2016
Member 11648410
1 alternative  
how to add a exe to the startup folder using the INNO setup?What I have tried:i have created a shortcut to exe on my desktop and copied the shortcut to the startup with INNO Setup but when the OS changes(win7 to WINXP) my folder location(WIN7->C:\ProgramData\Microsoft\Windows\Start...
Please Sign up or sign in to vote.
30 May 2016
Member 12530466
Have made an application (VB/NET)that capture pics on packed articles.The problem is to get the resolution higher than 640 x 360 pixels.Many have this issue on the web but I can't find a not to complex solution.The year i 2016 and I thought these things should be fairly easy, but...
Please Sign up or sign in to vote.
14 Aug 2016
F-ES Sitecore
After the loop you could addtxtclients.Text = txtclients.Text.TrimEnd('\n');
Please Sign up or sign in to vote.
15 Aug 2016
Patrice T
First, choose the language:- the code is not basicThe principle of foreach is avoid having a counter thus, in the loop, you don't know when you are in last iteration.The traditional solution is more like: txtclients.Text = txtclients.Text + storedata[0]; for (int i=1;...
Please Sign up or sign in to vote.
5 Sep 2016
Dahal Mahesh
Hi Alec I had used Cognitive services using Azure for OCR and found them interesting. Though not 100% accurate but very close to it. You might want to explore on it if you got an azure subscription.
Please Sign up or sign in to vote.
7 Sep 2016
Member 12726440
2 alternatives  
I have Programming in Basic in High School and was tasked with a project in which I was to make a program that says hello to the teacher as well as give a paragraph describing why programming is valuable in today's time.My initial idea was to make a program that greets and asks the teacher a...
Please Sign up or sign in to vote.
7 Sep 2016
Patrice T
Quote:This works but I have to put "Yes" on the console three times before the "Well...1" pops up and when I test it out with "No", "Well...1" pops up instead of "Well...2". Sometimes "Well...2" pops up but it's rare.This is exactly what you asked your program to do.You should learn to use...
Please Sign up or sign in to vote.
24 Sep 2016
G-MINOR
3 alternatives  
I'm currently a senior in HS learning QB64... in school. I've only been programming for a several weeks and absolutely love it. Sucks I waited till senior year to take a programming class. Anyway here is my code. It is supposed to input three numbers and then output the largest number in circles...
Please Sign up or sign in to vote.
24 Sep 2016
Patrice T
Try to replaceIF num1 > num2 AND num3 THENwithIF num1 > num2 AND num1 > num3 THEN
Please Sign up or sign in to vote.
26 Sep 2016
G-MINOR
2 alternatives  
So I had a problem on a hw assignment that told me to print a triangle out of stars.I ended up guessing and checking and pulling out this.DIM LINES AS INTEGERCLSINPUT "How many lines will your triangle be: ", LINESFOR x = 1 TO LINES PRINT FOR y = 1 TO x PRINT...
Please Sign up or sign in to vote.
7 Oct 2016
G-MINOR
2 alternatives  
So I have a question for my programming class. Question Below. Cant figure out how to do it. My teacher said to use an array but I don't know how.Write a program which picks 20 random numbers between 10 and 99 inclusive. The numbers are then printed out with all the evens on one line and...
Please Sign up or sign in to vote.
7 Oct 2016
Garth J Lancaster
I'd chuck out the GOTO's and rethink the approach .. what about 1) generating an array of 20 random numbers RANDOMIZE TIMER' Declare an array to hold all the random numbersDim AllNumbers As INTEGER' Generate 20 Random numbers in the correct rangeFOR x = 1 TO 20 z = INT(RND *...
Please Sign up or sign in to vote.
17 Nov 2016
Member 12856880
1 alternative  
I am getting "'Namespace' statements can occur only at file or namespace level" error. How to fix it?Imports System.ComponentModelImports System.DiagnosticsImports System.DrawingImports System.IOImports System.LinqImports System.Windows.FormsImports System.XmlPublic...
Please Sign up or sign in to vote.
17 Nov 2016
Mohtshm Zubair
As Matt is tellingmove Namespace NVCompressGUI after last import statement and above class statement like below Imports System.Xml Namespace NVCompressGUI Public Class Form1 and also move End Namespaceto the bottom as last line
Please Sign up or sign in to vote.
24 Nov 2016
Member 12869253
1 alternative  
every time when I pick a letter, the label keeps getting shorterWhat I have tried:Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnStart.Click 'Enable buttons when clicking start EnableButtons() btnStart.Enabled = False 'Start buttons...
Please Sign up or sign in to vote.
24 Nov 2016
Patrice T
Quote:the label keeps getting shorterOn first look, there is nothing obvious to explain why the label gets shorter.You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you...
Please Sign up or sign in to vote.
6 Dec 2016
FellippeHeitor
IF Solutions are ok.Bashing BASIC without knowing about QB64 is not ok.QB64 is a modern extended version of the Basic programming language that retains QB4.5/Qbasic compatibility and compiles natively for Windows, Linux and macOS.www.qb64.org
Please Sign up or sign in to vote.
8 Dec 2016
Member 12894289
Hello,my Problem is an DataGridView named "Datenansicht".Dim sql As StringDim data As New DataSetDim dataShow As New DataSetsql = "select Eintrag_ID, Erfasser, Kategorie, Uhrzeit from Nutzereinträge"db.ReturnDatagrid(sql).Fill(dataShow)This is how the DataGridView is...
Please Sign up or sign in to vote.
24 Dec 2016
Rasik Bihari Tiwari
Q1. Who creates a database? How is it created? Where is it created? And, what does it look like?Q1.1 Who creates a database?Ans:Anyone who knows how to create a database can create a database, even my mom can do it if I guide her. From IT stand-point, during an enterprise software...
Please Sign up or sign in to vote.
4 Mar 2017
Member 13037760
1 alternative  
Hey Friends. I Am Trying To Access Data From DataGridView To Form By CellClick Event. In VB .NETWhen Ever I Click On Cell I Got All Data From Table To Form But Not Able To See Image In PictureBox.When I Tried Only This Code:pic1 = selectedRow.Cells(13).ValueDim ms As New...
Please Sign up or sign in to vote.
4 Mar 2017
Graeme_Grant
Convert.ToByte Method (Object) (System)[^]
Please Sign up or sign in to vote.
5 Mar 2017
Richard MacCutchan
The first thing you need to do is to learn all about SAAS, so a good starting point would be: SAAS - Google Search[^].
Please Sign up or sign in to vote.
3 Apr 2017
Mehedi Shams
Hi Member 13103467, It is not quite clear what you want to do. Please provide minimum code snippet that explains the problem. Based on what you say, I understand that you want to browse through all your checkboxes and attain to Yes/No type answer based on an evaluation of the selected values....
Please Sign up or sign in to vote.
12 Jul 2017
CHill60
Here is a version of your code that copies data from D9 to the end of the data used and pastes the results into the [Comprehensive] sheet starting at cell D9 instead of A2. It copies the data present from D9 to the last column rather than attempting to copy all of the columns for the rows used...
Please Sign up or sign in to vote.
25 Aug 2017
B.Sudhir
2 alternatives  
1. I was trying to execute a Bash Shell Script from any directory in the system. for this I need to make it available to execute anywhere in the system. 2. I also mistakenly added wrong path which I wanted to delete but its not happening. Please help. What I have tried: 1. I've added the...
Please Sign up or sign in to vote.
25 Aug 2017
Richard MacCutchan
1. You should use the absolute path to your bin directory, or a defined variable such as $HOME, rather than the tilde (~). 2. You should post your question to the writer of the SO answer.
Please Sign up or sign in to vote.
25 Aug 2017
Jochen Arndt
To change the PATH environment variable you should export it (the export command will write it to the environment): PATH=$PATH:~/bin export PATH Without the export command, the variable will be only set for the actual shell session but not for commands executed in that session or other shell...
Please Sign up or sign in to vote.
18 Sep 2017
OriginalGriff
This is not a development question: you need to find a hardware related site and ask it there: we deal with software queries.
Please Sign up or sign in to vote.
22 Sep 2017
CPallini
Quote: Not much since I do not understand anything Then it's time to study. Take, for instance, Task1. You should be able to get an integer from the user check if it is odd or even (there's the hint 'use modulus') report the result to the user Just using Google you can get help on each of...
Please Sign up or sign in to vote.
22 Sep 2017
Patrice T
Quote: Not much since I do not understand anything Those tasks are among the most basic programming tasks possible. Start study seriously, check your lessons, find a tutorial or have a talk with your teacher. We do not do your HomeWork. HomeWork is not set to test your skills at begging other...
Please Sign up or sign in to vote.
11 Oct 2017
OriginalGriff
This is your homework: so I'll give you no code! But this is pretty simple, if you read your notes from the last lesson. There are two sections to this: 1) Ask the user how many times to print the message, and get the response as a number. 2) Loop that many times to print the message. Now, I'm...
Please Sign up or sign in to vote.
19 Oct 2017
KarstenK
You should write for every needed output a function which deliver it and than do the output. You can define an array like this, but you also need to free the memory: int *arr = 0;// define pointer int count = fillArrayFunc( arr, a, b, n ); for( int i = 0; i
Please Sign up or sign in to vote.
3 Nov 2017
Dave Kreskowiak
Did you even bother to contact Revelation Software for Support[^] and documentation on their product? Notice the "Support" link in the header of the page.
Please Sign up or sign in to vote.
19 Jan 2018
Member 13633486
2 alternatives  
I'm new to coding and would like to know what to learn first in JavaScript? I know there are a lot of concepts. I would like to be able to practice the concept after I have studied each one. What would you suggest first? Would making a button be a good idea? Thanks for your feedback! Don What I...
Please Sign up or sign in to vote.
4 Mar 2018
Member 13708882
1 alternative  
Hi There, I have a question about running a query and fill the text box. I am using visual studio 15 community. I link the database mdb file in datasource and created the dataset. I need to click the button to run a query condition is to lookup a customerpart number from the textbox and result...
Please Sign up or sign in to vote.
4 Mar 2018
Maciej Los
Follow this: How to use Microsoft Visual Basic .NET to connect to a Microsoft Access database and to retrieve data[^] Connect to data in an Access database (Windows Forms)[^]
Please Sign up or sign in to vote.
6 Apr 2018
VB6 Programming
You can buy VB6 on Ebay. If you have a paid MSDN subscription you can download VB6. VB6 works fine on Windows 10 Microsoft's VB6 support statement
Please Sign up or sign in to vote.
10 Apr 2018
Member 13730124
1 alternative  
Hi, im currently working on a project to create a menu driven program only using coding in visual basic console application. I'm stuck on creating the quadratic solver as im unsure on how to start. Im stuck on the quadratic equation part, any help will be appreciated thank you What I have...
Please Sign up or sign in to vote.
10 Apr 2018
CPallini
Is is just a matter of Translate mathematical formulas into Visual Basic expressions Use an if chain on the discriminant value e.g. det = b * b - 4 * a * c If det
Please Sign up or sign in to vote.
23 Apr 2018
Jochen Arndt
The error source is most probably located in the form tag which you have not shown or in the Apache configuration. Such errors occur when the action attribute of the form tag point to a HTML file instead of a script file. They may also occur when the web server is not (properly) configured for...
Please Sign up or sign in to vote.
30 May 2018
Member 13742637
1 alternative  
Hey, so basaically what I want to do is: if I enter a new value into a cell, automaticaly add this number to an existing number of another cell. So when I add a new value into B24, the value of D24 automaticaly gets added up by the value, if no value is there dont do anything. Thanks for the...
Please Sign up or sign in to vote.
30 May 2018
CHill60
In the VBA editor (Alt-F11 to get to it) double click on the Sheet you want this to happen on. Enter the following code:Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) 'This checks for any entry in column B If Application.Intersect(Range("B:B"),...
Please Sign up or sign in to vote.
14 Jun 2018
Dave Kreskowiak
Well, you can easily find the source of the problem if you used the debugger. The collection exposed by .classes doesn't exist. It's null. When you called the Add method on a null object, you got that exception. You have to examine your TravelInformation class to find out why that collection...
Please Sign up or sign in to vote.
14 Jun 2018
Dave Kreskowiak
Oh, it's not that help isn't allowed. It's that your definition of "help" isn't helpful to you at all. No, you're not going to have your code written for you. You don't learn a damn thing that way.
Please Sign up or sign in to vote.
14 Jun 2018
Patrice T
Quote: I am deleting this question since no help is allowed on homework No, help is allowed on homework, simply help is not us doing your homework. Here, we help you fix your code, mainly, you have to show your code and explain what is wrong. A sample input, actual output and expected output...
Please Sign up or sign in to vote.
12 Jul 2018
CHill60
This is not a code-writing service - although there are such services out there be prepared to pay and the less you are prepared to pay the lower the quality of the product you are likely to receive. I strongly recommend that you edit your post and remove your email - this is an open forum and...
Please Sign up or sign in to vote.
3 Sep 2018
OriginalGriff
You should talk to the people who created it - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back! We have no idea who made it, what connections it has, how it transfers information....
Please Sign up or sign in to vote.
7 Oct 2018
Alex McAllister
1 alternative  
Im making a site where my students can submit anonymous answers to me, I have a domain for the site, and I just want the site to be a blank page with a text box that they can enter words into. How to I receive what the students posted, so that other students cant see it? Can I send the answers...
Please Sign up or sign in to vote.
7 Oct 2018
OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
Please Sign up or sign in to vote.
5 Nov 2018
OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
Please Sign up or sign in to vote.
15 Nov 2018
Richard MacCutchan
Why have you reposted this question? I have already provided you with links to the answer.
Please Sign up or sign in to vote.
11 Dec 2018
kyrons
1 alternative  
I can fill the listbox with data from database, but I cannot refresh the listbox items after unbinding and rebinding. When I rebind the listbox1, it adds or accumulate all items and it does not refresh, it was just adding. What I have tried: This is the in filling listbox provider =...
Please Sign up or sign in to vote.
12 Dec 2018
Richard MacCutchan
The DataAdapter.Fill Method (System.Data.Common) | Microsoft Docs[^] adds the new rows to the existing set. You need to clear your adapter tables first.
Please Sign up or sign in to vote.
5 Feb 2019
Member 14118484
1 alternative  
def prime(n): """Finds the nth prime number as a result of user input""" index_list = [] primes_list = [] for i in range(1, (n + 1)): index_list.append(i) for p in range(2, (n + 1)): if (n % p == 0): primes_list.append(p) return primes_list ...
Please Sign up or sign in to vote.
28 Feb 2019
Steven M. King
1 alternative  
Hello. I have a site configured for Basic Authentication in IIS8 but when I try to hit it and am prompted for credentials, the credentials I pass are not accepted (these are the credentials of a local account on the server that has been given Full Control to the site). I am definitely entering...
Please Sign up or sign in to vote.
11 Jun 2019
Member 11271238
2 alternatives  
#=========login===============...
Please Sign up or sign in to vote.
11 Jun 2019
Richard MacCutchan
You need to use the + sign to concatenate literal strings with variable values: mydb.execute("select * from tbl_name where name = '" + Username + "' && password = '" + Password + "';") However, you should never store passwords in clear text, it leaves your system vulnerable to hackers....
Please Sign up or sign in to vote.
11 Jun 2019
OriginalGriff
In addition to what Richard has said, Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead. When you concatenate strings, you cause problems...
Please Sign up or sign in to vote.
19 Aug 2019
Member 13834211
1 alternative  
Im building a form that has multiple ones. The idea is to only connect in the first form to serial port. When click a button it shows up another form. In this there are many buttons that send data through serial port. I cant made the link between this forms What I have tried: Im new at this,...
Please Sign up or sign in to vote.
19 Aug 2019
RickZeeland
Make a static class with your serial communication code that you can access from any form. See example here: Static Classes and Static Class Members - C# Programming Guide | Microsoft Docs[^]
Please Sign up or sign in to vote.
10 Sep 2019
krishnakali pal
1 alternative  
I am trying to connect to an Analysis service server using basic authentication from the application which already uses SQL authentication to connect to the SQL database. Can I use both SQL authentication and Basic authentication from the same application. It is a .Net application What I have...
Please Sign up or sign in to vote.
10 Sep 2019
Maciej Los
Quote: ... the application is throwing error 'The page you are requesting cannot be served because of the ISAPI and CGI restrictions list settings on the web server' Please, read this to resolve your issue: 404.2 The page you are requesting cannot be served because of the ISAPI and CGI...
Please Sign up or sign in to vote.
17 Sep 2019
Slarsen817
1 alternative  
I am working on building my website on Squarespace. I have my coding set up for some text with the "vw" (variable width) for my font. It shows up on my computer with no problem, but when I view on mobile, the text becomes really small. any suggestions? What I have tried: I have searched a...
Please Sign up or sign in to vote.
17 Sep 2019
Richard Deeming
Two possible solutions from this StackOverflow thread[^]: 1) Use calc: font-size: calc(10px + 1vw); Edit fiddle - JSFiddle[^] 2) Use media queries: .responsive-text { font-size: 10px; letter-spacing: 2px; line-height: 1; } @media (min-width:1000px) { .responsive-text { ...
Please Sign up or sign in to vote.
24 Sep 2019
OriginalGriff
That's a seriously low level of encryption - it's not going to protect you from anybody who really wants to know what you are protecting - heck, it pretty much screams "this is important to me!" to make it obvious what to try attacking first ... and there are whole magazines published every...
Please Sign up or sign in to vote.
24 Sep 2019
Patrice T
Quote: Is there a way to write data to a file in the font that was used in the software This makes non sense, it look like a big misconception. Chars stored in a file are no related to a font, not even remotely. Quote: I use an ascii shift cypher to give a low level of encryption. What you...
Please Sign up or sign in to vote.
19 Oct 2019
OriginalGriff
Wrong place to ask: you need to talk directly to the admins. Try here: Article Writing Discussion Boards[^]
Please Sign up or sign in to vote.
19 Oct 2019
RickZeeland
Another popular option used by a lot of authors is to include a link to their project on GitHub[^]
Please Sign up or sign in to vote.
29 Oct 2019
Anibalito
2 alternatives  
Hi, I'm working with SpreadsheetLight in Visual Studio 2008. DocumentFormat - 2.05 SpreadsheetLight - 3.4 When executing the SaveAs ("File Name") method on some terminals, regardless of whether it is Windows 7 or 10 it takes a long time to finish its execution, not allowing you to do anything...
Please Sign up or sign in to vote.
24 Oct 2019
Richard MacCutchan
Unless this is an actual coding issue there is not much that anyone here can do. You should ask at SpreadsheetLight for .NET Framework[^]
Please Sign up or sign in to vote.
29 Oct 2019
Sports0028
2 alternatives  
Here is my Visual Basic and I’m trying to learn how to print in reverse order . Dim data() = {30, 50, 60, 35, 43, 13, 81, 29, 74, 21} Dim i = 0 While (i
Please Sign up or sign in to vote.
29 Oct 2019
Patrice T
Advice: - play values in this code and see what results it gives. - use the debugger to watch exactly what the code is doing. - try to figure out what changes are needed to print list in reverse order. - find tutorials about loops in basic. and experiment. There is an almost universal solution:...
Please Sign up or sign in to vote.
29 Oct 2019
Anibalito
Hello, After continuing to test, without results, I decided to change and do it in Visual Studio 2019 with NetFramework 4.7.2. and the same libraries. Problem solved!
Please Sign up or sign in to vote.
2 Nov 2019
Member 13039327
1 alternative  
Dear all, In Visual Basic I have the code that I can get the company details by entering their VATnumber. Now the result I am getting is in 1 big json string. Now I have heard that VATlayer also can work with a JSONP Callbacks, this however, I can't seem to figure out how to put in the code so,...
Please Sign up or sign in to vote.
2 Nov 2019
RickZeeland
Example: http://apilayer.net/api/validate?callback=CALLBACK_FUNCTION[^] You can find the documentation about JSONP Callbacks here: Documentation | vatlayer API[^] You can generate a class for the JSON response here: JSON Utils: Generate C#, VB.Net, SQL Table, Java and PHP from JSON[^] Public...
Please Sign up or sign in to vote.
22 Nov 2019
OriginalGriff
Having sorted your "additional info solution", I looked at the question, and ... No. It doesn't quite work like that. We're not going to reverse engineer a large chunk of code for you - that's either your work and you are getting paid for it, or it's part of your homework and it wouldn't be...
Please Sign up or sign in to vote.
22 Nov 2019
RickZeeland
Maybe you can try the Zlib example here: fbc/zlib.bas at master · freebasic/fbc · GitHub[^]
Please Sign up or sign in to vote.
23 Nov 2019
Patrice T
Quote: How do I decompress this code? Difficult to guess what you want because the code provided is not compressed and is not about compression. We have to guess what the word 'compression' means in your head. There is nothing we can do for you until you explain clearly what you want.
Please Sign up or sign in to vote.
29 Nov 2019
MohannadNajjar
1 alternative  
HI ,,, What is wrong in the code to convert the program interface to another language interface ??? IN Visual Basic .NET (Visual Studio 2019) Imports System.Globalization Imports System.ComponentModel Public Class Form1 Private Sub ArButton_Click(sender As Object, e As EventArgs)...
Please Sign up or sign in to vote.
29 Nov 2019
RickZeeland
Seems ok to me, using an online converter it can be converted to C#. Convert VB.NET to/from C# online - Roslyn Code Converter[^] using System; using System.Globalization; public partial class Form1 { private void ArButton_Click(object sender, EventArgs e) { ...
Please Sign up or sign in to vote.
7 May 2020
patrickb123
Hi everyone! I am modifying the Basic Sharp Interpreter for my application, my application is a winforms application and i have imported the classes from BasicSharp into my application and i am able to send code through it and get a response. I...
Please Sign up or sign in to vote.
11 Aug 2020
OzWaz
3 alternatives  
I have written a program in Basic and now I need to reproduce it in php. Within a (basic) while loop I use the “goto” facility to bypass code in the loop not required if a certain condition is met. I found a goto code in php manual but it...
Please Sign up or sign in to vote.
2 Aug 2020
OriginalGriff
For starters, even in Basic, you shouldn't use Goto - and certainly not when rewriting code into a more modern language than SmallBasic! Instead, reverse the If test: Start: while (condition) if (other condition) Goto start do...
Please Sign up or sign in to vote.
8 Aug 2020
Richard MacCutchan
You have not declared either $flip or $A before trying to use them in an expression. Also, using goto is really bad practice, there are better ways of resetting your values. I have modified your code to the following, although I am not sure what...
Please Sign up or sign in to vote.
8 Aug 2020
Dark Frost
3 alternatives  
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If CheckBox1.Checked = True Then Dim a As String = "-clone" Else End If If CheckBox2.Checked = True Then ...
Please Sign up or sign in to vote.
12 Sep 2020
Gerry Schmitz
The parent is the ISBN / Title; the children are the physical books for that ISBN. The parent says nothing about condition, price, location / owner; the children do. The parent may contain (original) author, first pub date, ... attributes not...
Please Sign up or sign in to vote.
22 Dec 2020
Member 11700078
1 alternative  
I have one child Form (Form2) in a MDI project with one label and one button control. Form2 also having a public Sub ChangeText(). When run this SUB changes the Label text. On clicking the Button one Modal Form will pop up. This modal Form also...
Please Sign up or sign in to vote.
22 Dec 2020
CHill60
Have a read of this series of Tips that will show you the right way to do this Transferring information between two forms, Part 1: Parent to Child[^] Transferring information between two forms, Part 2: Child to Parent[^] Transferring information...
Please Sign up or sign in to vote.
18 Jan 2021
Bhasker Babu
1 alternative  
when I am inserting a array of char type. I have set rray, but when I run the program it takes less values and print them instead of taking the no. of values which I have initialized. please check this import java.io.*; class charr { public...
Please Sign up or sign in to vote.
19 Jan 2021
Richard MacCutchan
I just tried your code and it works fine*. Please provide more details as to exactly what you are seeing. *although it does need to be surrounded by a try/catch sequence to check for IOException. [edit] I am still not exactly sure what your...
Please Sign up or sign in to vote.
17 Feb 2021
Richard Deeming
Your code is doing exactly what you've told it to do - take the value from the "Type of Learners" column on the first row of the result, and insert it into cell 66,8 in your sheet. If you want to insert data from multiple rows, then you need to...
Please Sign up or sign in to vote.
28 Mar 2021
Dave Kreskowiak
There is a property on the ProgressBar control, called Style. Set it to ProgressBarStyle.Marquee. No other code required.
Please Sign up or sign in to vote.
28 Mar 2021
Inter_Offical
1 alternative  
Can I know to design a Avast loading animation, because I really like to use it on my own application. Like this -> https://pasteboard.co/JUHbFCH.gif[^] but in Avast-like UI. (VB.NET or C#) What I have tried: I tried to do this in a normal...
Please Sign up or sign in to vote.
4 Apr 2021
Daniel Peqini
1 alternative  
I want to find the order that the buttons are clicked and add them in an Array where they are sorted by their click order. Then i want to know the name of the last button clicked (4 buttons). What I have tried: I have tried to check when a...
Please Sign up or sign in to vote.
4 Apr 2021
OriginalGriff
So create a class level List of Buttons, and handle their Click events. In the handler, check if the button has been added already, and if so, remove it. Then add the button. Since a List is ordered by "last entry at the end" you just need to...
8 Aug 2013
Pradeep_Prabhu
DevOp ROI relies on combining best practices with the right tools. Tooling enables practices, and vice versa. The CloudMunch platform makes it happen.
Please Sign up or sign in to vote.
5 May 2021
OriginalGriff
First off, DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously. At a guess, you are retrieving the image data...
Please Sign up or sign in to vote.
15 May 2021
Member 12640969
1 alternative  
Hello, A problem that has many causes and as many solutions if I judge the previous questions but none of which suits my situation. I was working with Visual Basic 2013 on Win7 SP1 x64 (Yes, I know it's obsolete but it was a "legacy" of an...
Please Sign up or sign in to vote.
15 May 2021
Member 12640969
Sorry, Please read : "I Installed Visual Studio 2019 (always with the Basic)" Thanks Dom
Please Sign up or sign in to vote.
15 Jun 2021
BenNgu123
2 alternatives  
I'm pretty new, I was wondering how I can add new elements to my code instead of constantly changing the same one. My code just allows me to edit the same element instead of being able to make a new element. My goal is making a contacts...
Please Sign up or sign in to vote.
24 Jun 2021
ionMEMBER
1 alternative  
Hi ! I have a project webbrowser with vb.net; works fine but does not load all websites. This is like internet explorer, but on it works fine. Maybe not support javascript, but idk if have a solution What I have tried: Public Class Form1 ...
Please Sign up or sign in to vote.
20 Jul 2021U
Alice Woods
1 alternative  
Hi there, Can someone please help me how to locate the class name, object attribute and variables, and object methods from the code below... I'm so confused, please help! thank you import sys import numpy as np frankston_stock = []...
Please Sign up or sign in to vote.
9 Aug 2016
Alеksey Nemiro
Authorization users using OAuth for websites and programs. Using API of different providers: CodeProject Forums Viewer, Dropbox file