- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
33 Posted Topics
Re: You can use the IsNumeric boolean property [code] If(IsNumeric(...)) Then msgbox("is a number") End If [/code] | |
Hello, I am trying this.. [code] Imports System.Data.OleDb Public Class Form1 Dim conn As OleDbConnection Dim cmd As OleDbCommand Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click conn = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0; Data Source=c:\nikhil.mdb") conn.Open() Dim row As DataRowView=ComboBox1.SelectedValue Dim row1 As DataRowView = ComboBox2.SelectedValue Dim row2 … | |
Re: [code] Try 'your code here Catch ex As Exception MsgBox(ex.Message) End Try [/code] | |
Re: Hi, [code] Do While i < Crayola.Length - 1 If (userInput = Crayola(i)) Then MsgBox("found") Exit Do ' put an exit Else i = i + 1 End If Loop [/code] | |
Hello I tried a lot however I have not been able to update data entered in the datagridview into the database table Any suggestions [code] Imports System.Data.OleDb Public Class Form1 Dim conn As OleDbConnection Dim icount As Integer Dim datagrid1 As New DataGrid Dim da As OleDbDataAdapter Dim ds As … | |
Re: simply use "isnumeric" [code] If Not (IsNumeric(NumBox1.Text)) Then MsgBox("put only numbers") End If [/code] | |
Re: use this [code] Dim d As Date = Format(Now, "MM-dd-yyyy") [/code] | |
Re: [code] Dim n As Integer = DataGridView1.Rows.Add() ListBox1.Items.Add(DataGridView1.Rows.Item(n).Cells(0).Value) [/code] just put an array Cells(i) | |
Re: create database test10.mdb and create a table ..name it as "table1" add columns "username" and "password" In asp.net add two textboxes and a button put this code in button [code] Imports System.Data.OleDb Partial Class _Default Inherits System.Web.UI.Page Dim conn As OleDbConnection Dim cmd As OleDbCommand Dim i As Integer Protected … | |
Re: use this [code] DataGridView1.SetBounds(x, y, width, height) [/code] | |
Re: i think Kate Winslet deserves to be the one. Basically i liked her nude scene in Titanic:icon_wink: dont take me wrong. We hardly see art of that kind nowadays. check out what masturbation is for at www.freedom2312.blogspot.com | |
Re: use isnumeric [code] If (IsNumeric(TextBox1.Text)) Then MsgBox("correct") Else MsgBox("incorrect") End If [/code] | |
Re: why not use a textbox to enter the id [code] str = "delete from blood_chemistry where BC_form_ID='" & Bc_form_id.text & "'",cs) [/code] enter the id in textbox... Bc_form_id.text | |
Re: [code] <%@ Page Language=VB Debug=true %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SQLClient" %> <script runat=server> Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs) ' or button click event If Not IsPostBack Then Dim DBConn as SQLConnection Dim DBCommand As SQLDataAdapter DBConn = New SQLConnection("server=localhost;" _ & "Initial Catalog=TT;" … | |
Re: if using vb as ur asp.net language you can refer this for sql server [url]http://www.vbdotnetheaven.com/uploadfile/mahesh/createsqldatabase04252005064419am/createsqldatabase.aspx[/url] | |
Hello i have created a webpage for a project using jsp in netbeans. I have created a listbox. I want it to display data from database(MS-access) and I should then be able to modify data in database like I should be able to change an entire record through the listbox … | |
I have decided to create Bulls and Cows game for my project. I have been checking for it's correctness. But it behaves bad in some cases. Like when I have already guessed the word it doesn't respond right. This happened rarely but I can conclude that it still is not … | |
Re: its a curse to them ..however lets look at the positive side www.freedom2312.blogpsot.com shows beautiful puppy pictures www.change-is-refreshing.com | |
hi the problem is when i use my own word eg here "jose" the results are correct but when i use random string it doesnt work the same here's my code [code] Imports System.Text Public Class Form2 Dim guess As String = " " Dim bulls As Integer = 0 … | |
heres the code [code] <%@ Page AspCompat ="true" %> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <% dim adoconn Dim rsnikhil dim ssql%> <%adoconn = Server.CreateObject("ADODB.Connection")%> <%adoconn.Open("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\nikhil.mdb;")%> <% rsnikhil = Server.CreateObject("ADODB.Recordset")%> <%ssql = "SELECT * FROM kulkarni" rsnikhil.open(ssql, adoconn) %> <% Do While not rsnikhil.EOF Response.Write(rsnikhil("name")) Response.Write(rsnikhil("comments")) rsnikhil.MoveNext loop %> <% rsnikhil.close() rsnikhil … | |
i wish to create a cookie for an html form. I wish to get value from textbox(how do i do this). i wish to get the values displayed when i click the submit button my code [code] <html> <body> <form> <button type="button" name="rollno">rollno</button> <input type="text" name="rollno"> <br> <button type="button" name="name">name</button> … | |
I have this code [code] Public Class Form1 Private connectionstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=c:/testn.mdb" Dim conn As New System.Data.OleDb.OleDbConnection(connectionstring) Dim cmd As New System.Data.OleDb.OleDbCommand Private ssql As String Dim dr As System.Data.OleDb.OleDbDataAdapter Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click conn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;data source=c:\nikhil\testn.mdb") … | |
Re: for my own practice i leave the calculation part to you try using constructors (methods with same name as class) [code] class Employeepay { private int salary_net; private int gross; private int noofhrs; public void setters(int sal,int gr,int noofhr) { salary_net=sal; gross=gr; noofhrs=noofhr; } } class betterEmployeepay extends Employeepay { … | |
Re: Add list box to form and add entries("strings") try this [code] Public Class Form1 Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Select Case ListBox1.SelectedIndex Case 1 MsgBox(ListBox1.SelectedItem) Case 2 MsgBox(ListBox1.SelectedItem) End Select End Sub End Class [/code] oops i used .net | |
Re: Thanks..i too am an instructor(junior) i did not know this..getch() in particular | |
Re: why dont u try Bulls and Cows game.I will help. game: guess the word eg: help if i guess "abef" ...bulls:0 cows 1 if the letter is there in the guess but not at the same position cows are counted .If the letter is at the exact position bulls are … | |
ok i know connecting access. i want to learn database connectivity using sql server in vb.net. How do i create a table in sql server in vb.net visual studio i dont have sql server installed in my pc also performing database manipulation in windows application(i have been doing it in … | |
hello again i wrote a class but not able to see the output in visual studio [code] Public Class Class1 Public Shared Sub Main() Console.WriteLine(Min(10.1, 10)) Console.WriteLine(Min("last", "first")) Console.WriteLine(Min(#1/1/2000#, #3/4/2000#)) Console.ReadLine() End Sub Overloads Shared Function Min(ByVal dblA As Double, ByVal dblB As Double) As Double Min = IIf(dblA < … | |
hello. I tried this with a bit of search. I wish to have freedom while typing text in my web page. I want the right margin to be fixed so that when i type text all aligns along the right margin. I tried tables but not satisfied [code] <html> <body> … | |
Dear sirs, I am trying to learn vb.net in 2005 and 2008.Where can i get good tutorials to learn basic as well as advanced. OOPs and web development etc. thank you | |
i was trying to run a program on RMI i did the following [code] import java.rmi.*; public interface HelloInterface extends Remote { public int add() throws RemoteException; } [/code] [code] import java.rmi.*; import java.rmi.server.*; public class Hello extends UnicastRemoteObject implements HelloInterface { private int m,n,message, k,l; public Hello (int m,int … | |
Hello. i wish to create a jsp page which will accept username and password from list and display a page showing the selected details when clicked on submit [code]<html> <head><title>course information form </title></head> <body> <form action="course_details.jsp" method="post"> username: <select name="username"> <option>nikhil</option> <option>avdhut</option> <option>gauri</option> </select> <select name="course"> <option>MCA</option> <option>MBA</option> <option>MCM</option> <input … | |
Hi. i am trying to learn c# I have newly installed Visual studio dot net 2005. i typed the following program but not getting ouptut i did file->new->file->visual c# i tried the following code [code] // Namespace Declaration using System; // Program start class class InteractiveWelcome { // Main begins … |
The End.