I have an identity (auto-increment) column in my mssql table, which is also my primary key. I want to use these numbers on my form, such that when I open that form, the auto-increment id will already be displayed on a textbox (so I wont have to type it in anymore). It's like, trying to display the next auto-increment id on form load while no data is entered yet. Like on paper forms where the form numbers are already there before it is even used or filled up. I hope I'm making it clear. Is it possible? How do you …

Member Avatar
Member Avatar
+0 forum 6

hi all I have an exercise when I select the value in the combobox will confirm the value on datagridview I wrote a code in combobox of from1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sQry As String sQry = "SELECT Name FROM dtaStudent" Dim con As SqlConnection = New SqlConnection(sqldb.ConnectionString) Dim da As SqlDataAdapter = New SqlDataAdapter(sQry, con) Dim dt As DataTable = New DataTable() da.Fill(dt) ComboBox1.DisplayMember = "Name" ComboBox1.ValueMember = "ID" ComboBox1.DataSource = dt ComboBox1.Focus() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'code form2.ShowDialog() End …

Member Avatar
Member Avatar
+0 forum 1

internet explorer has stopped working i cant open any web pages. mozilla firefox will open the yahoo page but when i try to go to another site any site it says its untrusted i cant even check my email and i get a security warning? how do i fix this? and how do i fix internet explorer, id rather use this than mazilla firefox...

Member Avatar
Member Avatar
+0 forum 7

Hello DaniWeb community! I have the following problem: I developed and OpenID authentication system on C#, it worked perfectly on my LocalHost, but when I published it, I keep getting this error messages about No OpenID endpoint found. I'm using Google, Yahoo, Chi.mp and myOpenID, and with none of them works on IIS, but on LocalHost it works perfectly. The error log is the following: [CODE]Error:System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> DotNetOpenAuth.Messaging.ProtocolException: No OpenID endpoint found. at DotNetOpenAuth.Messaging.ErrorUtilities.VerifyProtocol(Boolean condition, String message, Object[] args) at DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingPartyControlBase.LogOn() at WikiLoader.Login.OpenId_Click(Object sender, CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String …

Member Avatar
Member Avatar
+0 forum 1

The End.