355 Posted Topics
Re: Hi, Looks like the .Net MultiMediaControl isn't for free, look [URL="http://www.componentsource.com/products/net-multimedia-control/index.html"]here.[/URL] What you can do is add the Windows mediaplayer control. | |
Re: Hi, What's the error your reseiving? Can you post the original code in C#. | |
Re: Hi, You can show only the date like this: [CODE] Dim Custom As String Custom = Now.ToString("MM/dd/yyyy") ' only date TextBox5.Text = Custom[/CODE] | |
Re: Hi, You can't do web apps with Visual Basic 2008 Express, only desktop apps, but you can download Visual Web Developer Express to do web apps. Web Developer Express is also free. You can find some information and download Wb Developer Express, [URL="http://www.asp.net/vwd/"]here.[/URL] | |
Re: Hi, You need a mousebutton click for some raison? If you only want the position of your cursor then you don't need to perform a mouseclick. I've added a testbox to show you the coordinates of the cursor. [code]Public Class Form1 Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint … | |
Re: Hi, You need to change them like this: [code]Public Class Form1 Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Form2.AdjOne.Text = txtONE.Text Form2.NounOne = txtTWO Form2.verbPTone=txtTHREE Form2.AdvOne=txtFOUR Form2.AdjTwo=txtFIVE Form2.NounTwo=txtSIX Form2.NounThree= txtSEVEN Form2.AdjThree=txtEIGHT Form2.verbOne=txtNINE Form2.AdvTwo=txtTEN Form2.verbPTtwo=txtELEVEN Form2.AdjFour=txtTWELVE [/code] | |
Re: Hi, You can find more tutorials about Tic Tac Toe games on Google. But this is another one, [URL="http://www.xtremevbtalk.com/showthread.php?t=305065"]here.[/URL] | |
Re: Hi, You can try this: [code]Label1.Text = ListView1.Items.Count()Label1.Text = ListView1.Items.Count()[/code] | |
Re: Hi, I've made some changes and values to test your function. Here's the result: [code]Public Class Form1 Dim x As Integer = 50 Dim i As Integer = 4 Dim y As Integer Dim j As Integer = 10 Sub DrawScreen() Dim gr As System.Drawing.Graphics = Me.CreateGraphics Dim myPen As … | |
Re: Hi, Try something like this: [code]Dim theConnection As New OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;data source=book1.xls;Extended Properties=""Excel 8.0;HDR=NO;IMEX=1;""") theConnection.Open() Dim theDataAdapter As New OleDbDataAdapter("SELECT * FROM [Sheet1$]", theConnection) Dim theDS As New DataSet() Dim dt As New DataTable() theDataAdapter.Fill(dt) Me.dataGridView1.DataSource = dt.DefaultView [/code] | |
Re: Hi, You can find some information in [URL="http://www.daniweb.com/forums/thread99345.html"]this[/URL] thread. | |
Re: Hi, You can work around and use enabled and set backcolor to white. Here's an example: [code]For Each ctrl As Control In Me.Controls If TypeOf ctrl Is TextBox Then ctrl.Enabled = False ctrl.BackColor = Color.White End If Next[/code] | |
Re: Hi, In the button event start the timer and switch the relay on. In the timer event create a counter to count the seconds the relay is on and switch then the relay off. | |
Re: Hi, You need to add those images into the resources files like this: [code]PictureBox1.Image = My.Resources.imagename[/code] You can find the whole explanation, [URL="http://msdn.microsoft.com/en-us/library/ytt371w5(v=VS.80).aspx"]here.[/URL] | |
Re: Hi, You should read [URL="http://www.daniweb.com/forums/thread72305.html"]this[/URL] thread. | |
Re: Hi, I think you can find some information, [URL="http://blogs.techrepublic.com.com/window-on-windows/?p=745"]here.[/URL] | |
Re: Hi, Here's how I did it to draw a circle with a timer. [code]Public Class Form1 Dim count As Integer = 0 ' start count of counter Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub TestButton_Click(ByVal sender As System.Object, _ ByVal … | |
![]() | Re: Hi, You can use an Imagelist to do so, and then show the images into your panel. You can find some explanation, [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist.aspx"]here.[/URL] ![]() |
Re: Hi, What you can try is to enable the add rows button until the row is added. This is just a suggestion, bacause without code is it very difficult to answer. | |
Re: Hi, You can try this: [code]Private Function AlphabeticSort(ByVal dtTable As DataTable, ByVal sortOrder As Integer) As DataTable Dim dsSorted As New DataSet Dim columnKey As String = "TabName" Dim sortDirection As String = "" Dim sortFormat As String = "{0} {1}" Select Case sortOrder Case 0 sortDirection = "ASC" Case … | |
Re: Hi, I think you can find some information, [URL="http://www.c-sharpcorner.com/UploadFile/mahesh/EnumToString10212005144136PM/EnumToString.aspx"]here.[/URL] | |
Re: Hi, You can find some information about how to create a Phonebook with VB.Net, [URL="http://www.sourcecodester.com/visual-basic-net/simple-phone-book-database.html"]here.[/URL] | |
Re: Hi, I don't know of an easy way to do it using a ListBox control. I would use a ListView control instead. This typically gives you more features anyway, not to mention. From what I have discovered using the ListBox control, you can only set the ForeColor for the entire … | |
Re: Hi, You mentioned: [QUOTE]the problem is that RGB has three cordinates like RGB(0, 0 , 0), as Point can have only two cordinates poit(x,y) so i have force my self to make it RGB(0,0)... does it effect my code???? [/QUOTE] Yes, It will affect your code with this error: [QUOTE]Value … | |
Re: Hi, You could use something like this: [CODE] Dim x As Integer Dim y As Integer Cursor.Position = New Point(x + 2, y) Cursor.Position = New POint(X, Y +2)[/CODE] | |
Re: Hi, Here's an example how to create an Ellipse and show the same color as the pixel color. [CODE]Public Class Form1 Public MyColor As Color Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles … | |
Re: Hi, A Windows Services is a new name for a NT Services you used to develop in previous versions of Visual Studio. This Service writes some text to a text file when stop and start the service. [QUOTE]i can see the service name in the services option in administrative tools[/QUOTE] … | |
Re: Hi, Here's an example how to do this. [CODE]Public Class SplitTest Public Shared Sub Main() Dim words As String = "This is a list of words, with: a bit of punctuation" + _ vbTab + "and a tab character." Dim split As String() = words.Split(New [Char]() {" "c, ","c, "."c, … | |
Re: Hi, Show us your codes and we could help you more. | |
Re: Hi, You can find an example [URL="http://reydacoco.blogspot.com/2009/10/search-record-value-in-microsoft-visual.html"]here.[/URL] | |
Re: Hi, You have to change the data (access database) from a byte format into a bitmap format. You can do that with the MemoryStreamClass. [CODE]Public Function GetImageFromDB(ByRef imageName As String) As Bitmap Try Dim conn As New OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim reader As OleDb.OleDbDataReader conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\YourDBFile.mdb;" … | |
Re: Hi, I think you can some good information about, how to use Crystal Reports with VB.Net, [URL="http://vb.net-informations.com/crystal-report/vb.net_crystal_reports_tutorials.htm"]here.[/URL] | |
Re: Hi, You can use a low- level keyboard hook. [CODE]Private Declare Function SetWindowsHookEx _ Lib "user32" Alias "SetWindowsHookExA" ( _ ByVal idHook As Long, _ ByVal lpfn As Long, _ ByVal hmod As Long, _ ByVal dwThreadId As Long) As Long Private Declare Function CallNextHookEx Lib "user32" ( _ ByVal … | |
Re: [QUOTE=kerek2;1205487]Hi All.... I need to detect when no moving of cursor or keyboard then my form will automatic closing...how to do that..tq[/QUOTE] Hi, You need a timer event to detect when a form is idle for a certain time, then close the form automaticly after the form is idle in … | |
Re: [QUOTE=Learner7;1203185]Hi, What is the code to write in txtCaps text box event which can change the whole text entered in as capital letters? Thanks.[/QUOTE] Hi, You need the CharacterCasing property to do so. Here's an example: [CODE]TextBox1.CharacterCasing = CharacterCasing.Upper[/CODE] | |
Re: Hi, You can find an example [URL="http://support.adobe.com/devsup/devsup.nsf/docs/51533.htm"]here.[/URL] | |
Re: Hi, Declare your form2 inside the Button event, like this: [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim frm2 As New Form2 frm2.MdiParent = Me frm2.Show() End Sub End Class[/CODE] | |
Re: Hi, In addition Adatapost has written: You need to create a parentform, to do so you can use Form1 and rename it parentform.vb. Then you need to set the property IsMDIContainer = true. When you add a new form to your application you'll see that it will create a Form1 … | |
Re: Hi, You can sort your datagrid in decending or ascending order. You can find an example, [URL="http://msdn.microsoft.com/en-us/library/0868ft3z.aspx"]here.[/URL] | |
Re: Hi, You can try something like this: [CODE]TextBox1.Text = ListView1.SelectedItems(0).ToString[/CODE] | |
Re: [QUOTE=kedakai;1200954]I want to create a program that will close itself when the user was idle(not touching/moving the mouse and keyboard) for about 5 minutes...but I have a problem in how to track a user's idle time so that I could set the closing action. Could anyone give me a simple … | |
Re: [QUOTE=se_aatif;1199857]i have comleted the project i want to make a taskbar in the MDI Parent. that behaves same like taskbar, whenever a new form is opened there will be a link for the form, and also having RightClick Menu from which i can close maximize and minimize the form............ is … | |
Re: Hi, Here's just an example to show you how you can change the datestring. [CODE]Dim current As Date = Date.Now TextBox1.Text = current TextBox2.Text = current.ToShortDateString[/CODE] | |
Re: Hi, I'm a little confused about your question, so I think that you want to see the times running. Here's an example how to do it. All you need is to add a timer. [CODE]Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick TextBox1.Text = Now.ToString("G") Label1.Text … | |
Re: [QUOTE=thanlin;1200055]I am vb.net application developer. I like to intstall vb.net software.[/QUOTE] Hi, You find some explanation [URL="http://www.startvbdotnet.com/extras/deploy.aspx"]here.[/URL] | |
Re: Hi, The error 0xc000007b is telling you do not have the correct drivers for your hard drive controller for the installation. That error could be possible caused by a Virus. Do a Antivirus scan and see what happens. | |
Re: Hi, Try this: [CODE]Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If (e.KeyChar < Chr(48) Or e.KeyChar > Chr(57)) And e.KeyChar <> Chr(8) Then e.Handled = True End If End Sub[/CODE] Or this: [CODE]Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e as System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If … | |
Re: Hi, Also [B]Visual Basic 2008 How to Program[/B] by Deitel. Look [URL="http://www.deitel.com/Books/VisualBasic/VisualBasic2008HowtoProgram4e/tabid/2932/Default.aspx/"] here.[/URL] | |
Re: Hi, I think you can find some explanation [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.sort.aspx"]here.[/URL] | |
Re: Hi, Change this part of code: [CODE]Private Sub frmMain_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress If Keys.Escape Then Me.Close() Else End If End Sub[/CODE] |
The End.