143 Posted Topics
Re: Is your audio file has those media info actually. Try to open the file in foobar and see. If the file contain media info then post it here. | |
I am using WebBrowser Control... When form is loading i set webbrowser to navigate a website. Now this website running too much popup ads.. So each time webbrowser navigate a new popup window open out of my application.. Is their any way to stop that.. Thanks in advance........... | |
Re: Where you call [CODE]x.CreateIDfolder()[/CODE] please provide full code... | |
Re: please see this thread [URL="http://www.daniweb.com/software-development/vbnet/threads/414163"]http://www.daniweb.com/software-development/vbnet/threads/414163[/URL] | |
Re: [QUOTE]The simplest way is to add a roles column to your database table (or create a separate table to hold this info) so when they log in you can extract which role they belong to.[/QUOTE] And after login you can store the role in a variable. Now you can control … | |
Re: Please provide the table structure.. Like this.... [CODE]Field Name | Data Type ___________________________ Field1 | Varchar(50)[/CODE] | |
Re: Ok i think you need this query [CODE]Dim CmdStr As String = "Select ticket_number from TableName where id="+Me.TextBox1.Text+" and name='"+Me.TextBox2.Text+"' and destination='"+Me.TextBox3.Text+"'"[/CODE] Assuming id, Numeric name, Varchar ticket_number, Varchar destination, Varchar And TextBox1 for id input TextBox2 for name input TextBox3 for destination input Hope this will help u... | |
Re: This thread is solved.... | |
Re: Ok try this..... [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For i As Integer = 1 To 5 Dim myTextBox2 = New TextBox With myTextBox2 .Name = "txtNum" & i .Size = New Size(50, 26) .Location = New Point(5, 40 * i) .TextAlign = … | |
Re: where u save the information about last opened file? | |
Re: Please visit this link [URL="http://msdn.microsoft.com/en-us/library/aa389273(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/aa389273(v=vs.85).aspx[/URL] You will find all your answers... | |
Re: Yes you can use socket... But then you must install the application to each of those computer which u want to monitor... | |
Re: I Use Access Many years ago. I think.... Don't use semicolon after the query.... | |
Re: Yes you can try socket... Make a connection between two application(Two application means a application running on two different computer....).. Now when one application perform some task just send a command to refresh to other application, and in other application just refresh it... | |
Re: What error u r getting ?? | |
Re: Two types of event you can create. One is Client Side (Using Javascript) or Server Side Using (Any Server Side Language- Here VB.Net) So which one you want??? | |
Re: In ComboBox1_SelectedIndexChanged use a SqlCommand to find the SPIDOM. Like "Select SPIDOM from table where EMP_ID='"+ComboBox1.Text.Trim+"'" Now Execute the Command As Scaler If you Execute it as Scaler you will get the SPIDOM of corresponding EMP_ID.. Now Display it in TextBox.. Simple... | |
Re: Simple Try this [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim b As New Bitmap(600, 400) Dim g As Graphics = Graphics.FromImage(b) Dim x1, x2, x3, y1, y2, y3 As Integer Dim s1() As String = Me.TextBox1.Text.Split(",") Dim s2() As String = Me.TextBox2.Text.Split(",") Dim … | |
Re: What you want to do in database....??? I see the query you posted will not get executed. Because you miss some parts of the query... Like This is a complete sql query.. [CODE] Insert Into Table1 (Col1,Col2,Col2) Values(Val1,Val2,Val3) [/CODE] So i advice you to learn SQL first then try this.... | |
Re: You misplace the quotes.. try this [CODE] Dim sql As String = "INSERT INTO CAGETYPE (CAGECOST, CAGENAME) VALUES(" & roomprice & ",'" & roomtitle & "')" [/CODE] as CAGENAME Varchar so quote required for roomtitle . | |
Re: [QUOTE=jd2369;1764143][url]http://64.20.7.179:8080/Default?MAIN=ADMIN[/url] I tried: [CODE]WebBrowser1.Document.All.GetElementsByName("Login")(0).InvokeMember("click")[/CODE] still nothing please help Thanks[/QUOTE] The problem is the Admin page actually made of two or more HTML DOM Object that is. You used Frameset. So When you call WebBrowser.Document.All it only work with the first DOM so the problem... Use [URL="http://64.20.7.179:8080/TopAccess/Administrator/Login/Login.htm"]http://64.20.7.179:8080/TopAccess/Administrator/Login/Login.htm[/URL] Instead of older one. | |
Re: @acepeda Will you please post your code? | |
Re: I think you should use to load the form before accessing any objects of that form.. So [CODE] Private Sub Paybox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Paybox.Show() Call connectpaybox() Paybox.ComboBox2.SelectedIndex = 0 End Sub [/CODE] First Show the Paybox Form Try this if u get error … | |
Re: [QUOTE]right now i'm manually connection from the rpt file.[/QUOTE] how??? | |
Re: This part belongs to VB.Net so i use .Net code ok. On the keypress event [CODE] If e.KeyChar=Chr(13) Then Me.BtnOk_Click(Me.BtnOk,e) End If Private Sub BtnOk_Click(ByVal ....................) Handles BtnOk.Click 'BtnOk Code End Sub [/CODE] | |
Re: I think you can Use Try-Catch [CODE] Try thisConnection.Open() strnew2 = New SqlCommand("DELETE FROM loggedin WHERE usernam = '" & Me.LinkLabel1.Text & "' ", thisConnection) strnew2.ExecuteNonQuery() Catch(e As Exception) 'If error or crash occure catch will get executed . MsgBox("Error "+e.Message) Finally 'Error occur or not Finally execute both time. … | |
Re: Ok But never ask for code again. Please .. I give u the code because i have it now opened. Post ur problem and we will solve this. [CODE] Public Class smail ''one static method for sending e-mails Public Sub SendMail(ByVal [From] As String, ByVal [To] As String, _ ByVal … | |
Re: What data the comboboxes hold in your app??? | |
Re: [QUOTE] Help me to format currency col(2) = 1.234.567 [/QUOTE] What that mean 1.234.567 ? | |
Re: [CODE] ListView1.Items.Count ' Its for count the element 'So check it if Listview1.Items.Count<1 then <statement> else <statement> end if [/CODE] | |
Re: Here is your problem.. [CODE] Dim sum As Double For x As Integer = 0 To ListBox1.Items.Count - 1 sum += CDbl(ListBox1.Items(x))'Here actually problem occurred Next TotalTextBox.Text = sum.ToString [/CODE] Problem occurred because u r trying to convert a collection into string.. Use this code [CODE] Dim sum As Double … | |
Re: declare two date type variables .. Now make 1st with textbox1's value. and 2nd with textbox2's value. now declare a timespan variable and simply. do.. ts=d1-d2 here ts is the timespan. in timespan you can get the total minutes.... | |
Re: Use this [CODE] mystr = "{grading_teacherload.teacherid} = " & teacherLoadListView.teacherid.ToString & "" [/CODE] As teacherLoadListView.teacherid is an integer so u have to convert it to string... | |
I have something to say.. Is there any way to convert the [url]http://www.daniweb.com/software-development/vbnet/58[/url] page as live page... I mean like facebook. whenever i want to see who last reply a thread i must have to refresh the page. But it will be great if the form automatically refresh some parts … | |
Re: Please post your code we will happy to solve that... | |
Re: Dear, try this... [URL="http://www.daniweb.com/software-development/vbnet/threads/413194/1763038#post1763038"]http://www.daniweb.com/software-development/vbnet/threads/413194/1763038#post1763038[/URL] | |
Re: just change click to submit [CODE] Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim MyElementsWeb As HtmlElementCollection = WebBrowser1.Document.All For Each LogBtn As HtmlElement In MyElementsWeb If LogBtn.GetAttribute("name") = "Login" Then LogBtn.InvokeMember("submit") End If Next End Sub End Class [/CODE] | |
Re: Assume two different form one for login and other for only Authorized entry.. So after login user navigated to Authorized form. Now... You can place a Loguot Button/Menu so that user will click for logout. Now when logout button pressed Just clear all Variables value which you used for storing … | |
Re: First of all [CODE] Dim SETGETimeOut As Integer = " -t " & NumericSecondsValue.Value.ToString [/CODE] You declare SETGETimeOut As Integer but assign a string value to it... How can it be possible.. And yes you can do that. Just put some if else condition into your code and check for … | |
Re: On Combobox SelectedIndexChanged event just create a sqlcommand where u can easyly insert the value of the combobox and the execute the command as nonquery... Thats all. | |
Re: Here is the problem [CODE] printf("THE AREA OF THE CILINDER IS:%f",&Area); [/CODE] Why u use &Area ? Its a refrence type. Use only Area to solve this.... [CODE] printf("THE AREA OF THE CILINDER IS:%f",Area); [/CODE] | |
Re: I think goto Statement will solve your problem.. Like [CODE] here: printf("Enter a number"); scanf("%d",&num); if (num<10) // Checking whether the input is correct. In this case >=10 { printf("Sorry Wrong Input\nPress any key to input it again!"); getch(); clrscr(); goto here; } [/CODE] | |
Re: Try this [URL="http://www.webicy.com/programming/6149-tutorial-create-captcha-vb-net.html"]http://www.webicy.com/programming/6149-tutorial-create-captcha-vb-net.html[/URL] | |
Re: I found some buggy things on ur code.... [CODE]Public Class Teams Private MyADONetConnection As New OleDb.OleDbConnection Private MyDataAdapter As New OleDb.OleDbDataAdapter Private MyCommandBuilder = New OleDb.OleDbCommandBuilder Private MyDataTableTeam As New DataTable Private Sub Teams_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MyADONetConnection.ConnectionString = _ "Provider=Microsoft.jet.OLEDB.4.0;Data Source=datab1.mdb" MyADONetConnection.Open() MyDataAdapter … | |
Re: [CODE] Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged Me.TextBox.Text = ComboBox1.SelectedValue End Sub [/CODE] | |
Re: Where u want to insert?? In database or what??? | |
Re: try this : [CODE] 'Load Engineer Names, and create one tab for each engineer Dim myEngineerCounter As Integer = 0 Dim myEngineerName(20) As String Dim myEngineerID(20) As Integer Dim myEngineerActive(20) As Boolean Dim dgvMonday(20) As DataGridView mySQLstring = "select idEngineers, EngineerName from engineers where engineeractive = 'y'" mySQLcmd.CommandText = mySQLstring … | |
Re: I think u need this See the image first... [URL="http://img812.imageshack.us/img812/9464/75001062.png"]http://img812.imageshack.us/img812/9464/75001062.png[/URL] [CODE] Dim wacko As String Dim li As Integer = 0 For i As Integer = 0 To DataGridView1.Rows.Count - 1 wacko = DataGridView1.Rows(i).Cells(1).Value li = i For m As Integer = i + 1 To DataGridView1.Rows.Count - 1 If … | |
Re: yes. create two different table like Customer Table +---------------------+ | Customer | +---------------------+ | id (Primary) | | Name | | Bla bla bla | +---------------------+ Booking Table +-----------------------+ | Booking | +-----------------------+ | booking_id (Primary) | | customer_id (Forign) | | date | | Bla bla bla | +-----------------------+ … |
The End.