Click here to Skip to main content
15,885,767 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Winhttp and p12 certificate Pin
Dave Kreskowiak25-Jul-17 13:17
mveDave Kreskowiak25-Jul-17 13:17 
AnswerRe: Winhttp and p12 certificate Pin
Crazy Joe Devola26-Jul-17 10:51
Crazy Joe Devola26-Jul-17 10:51 
Questionhelp me Pin
ago248621-Jul-17 9:52
ago248621-Jul-17 9:52 
AnswerRe: help me Pin
Afzaal Ahmad Zeeshan21-Jul-17 11:36
professionalAfzaal Ahmad Zeeshan21-Jul-17 11:36 
GeneralRe: help me Pin
ago248622-Jul-17 1:36
ago248622-Jul-17 1:36 
GeneralRe: help me Pin
Richard MacCutchan22-Jul-17 2:44
mveRichard MacCutchan22-Jul-17 2:44 
GeneralRe: help me Pin
Eddy Vluggen23-Jul-17 2:58
professionalEddy Vluggen23-Jul-17 2:58 
GeneralRe: Pin
ago248623-Jul-17 4:31
ago248623-Jul-17 4:31 
Hi
Sorry for the topic
"help me"

I used the dataset

Here is my code

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
namespace ACode
{
    public partial class Form1 : Form
    {
        public static string randomstring(int length)
        {
            const string chars = "ABCDEFGHIJKLMNOPQRSTUVWYZ0123456789";
            Random random = new Random();
            return new string(Enumerable.Repeat(chars, length).Select(s => s[random.Next(s.Length)]).ToArray());
        }
        public Form1()
        {
            InitializeComponent();
        }

        private void infoCodeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.infoCodeBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.dBCodeAleatoireDataSet);

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO : cette ligne de code charge les données dans la table 'dBCodeAleatoireDataSet.InfoCode'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
            this.infoCodeTableAdapter.Fill(this.dBCodeAleatoireDataSet.InfoCode);

        }

        private void btn100_Click(object sender, EventArgs e)
        {
            labelAffichage.Text = randomstring(4);
            codeTextBox.Text = labelAffichage.Text;
            prixCodeTextBox.Text = "100";
        }

        private void btn250_Click(object sender, EventArgs e)
        {
            labelAffichage.Text = randomstring(5);
            codeTextBox.Text = labelAffichage.Text;
            prixCodeTextBox.Text = "250";
        }

        private void btn500_Click(object sender, EventArgs e)
        {
            labelAffichage.Text = randomstring(6);
            codeTextBox.Text = labelAffichage.Text;
            prixCodeTextBox.Text = "500";
        }
    } 
}

GeneralRe: Pin
Eddy Vluggen23-Jul-17 8:16
professionalEddy Vluggen23-Jul-17 8:16 
QuestionConverting C# to VB.net but code gives null reference Pin
Shane James21-Jul-17 0:56
Shane James21-Jul-17 0:56 
AnswerRe: Converting C# to VB.net but code gives null reference Pin
Richard MacCutchan21-Jul-17 1:15
mveRichard MacCutchan21-Jul-17 1:15 
AnswerRe: Converting C# to VB.net but code gives null reference Pin
Ralf Meier21-Jul-17 2:33
mveRalf Meier21-Jul-17 2:33 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Shane James21-Jul-17 3:03
Shane James21-Jul-17 3:03 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Ralf Meier21-Jul-17 3:16
mveRalf Meier21-Jul-17 3:16 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Shane James21-Jul-17 4:30
Shane James21-Jul-17 4:30 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Ralf Meier21-Jul-17 8:44
mveRalf Meier21-Jul-17 8:44 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Shane James21-Jul-17 21:00
Shane James21-Jul-17 21:00 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Shane James21-Jul-17 21:02
Shane James21-Jul-17 21:02 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Ralf Meier22-Jul-17 10:25
mveRalf Meier22-Jul-17 10:25 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Pawel Wzietek1-Aug-17 2:33
Pawel Wzietek1-Aug-17 2:33 
GeneralRe: Converting C# to VB.net but code gives null reference Pin
Eddy Vluggen3-Aug-17 0:06
professionalEddy Vluggen3-Aug-17 0:06 
QuestionAccess VBA - Return Object From Function Pin
Kevin Marois20-Jul-17 20:13
professionalKevin Marois20-Jul-17 20:13 
SuggestionRe: Access VBA - Return Object From Function Pin
Richard MacCutchan20-Jul-17 20:37
mveRichard MacCutchan20-Jul-17 20:37 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 5:10
professionalKevin Marois21-Jul-17 5:10 
GeneralRe: Access VBA - Return Object From Function Pin
Richard MacCutchan21-Jul-17 6:11
mveRichard MacCutchan21-Jul-17 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.