|
I was told that I can text to cell phones from my pc or at this web sight....but can't get an answer..can someone help my retarded ass??
|
|
|
|
|
Do you mean in a program, or are you asking a general, consumer level question in a programming forum ?
There used to be web sites that would send SMS, I dunno if there still are.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have a datagrid whose datasource is a dataset.
<br />
Dim DiagCmd As DbCommand = db.GetStoredProcCommand("p_Get_All_Diags")<br />
Dim dsDiags As DataSet = New DataSet("Diagnostic_Codes")<br />
dsDiags = db.ExecuteDataSet(DiagCmd)<br />
dgDiags.DataSource = dsDiags.Tables(0).DefaultView<br />
The above works.....
Now, I want to be able to click a button and move an item from one grid to another... sounds simple enough.... The code to do that is below....
<br />
Private Sub btnNxt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNxt.Click<br />
<br />
dsAuto.Tables(0).Rows.Add(dsDiags.Tables(0).Rows(dgDiags.RowSel - 1).ItemArray)<br />
<br />
End Sub<br />
and this works.... my problem is if I click on the columnheader and change the sort order it will move the item based on how they originally appeared in the grid.
ie. if the grid starts with A-Z and I click the header making it Z-A.... if I then click Z(Which is now at the top) and click my btnNxt it will move A.
Anybody help is greatly appreciated...
-Kay
|
|
|
|
|
Hi, does anyone know how to code the 'memory' buttons on a calculator
(memory =, - , Clear, and Recall) in VB.
Thanks a bunch.
|
|
|
|
|
That smells like homework to me. Google 'variables VB.NET'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I would like to create a dataset that indicates whether co-ordinates on a grid are occupied. How do I set the composite primary key to be made up of xPosition and yPosition?
Then I need to populate the values with 'false' initially and mark them as true through a function. How do I populate the values?
Is the size of the dataset incremented automatically as I increment the values or do I have to do it explicitly?
Public Class Plateau
...
Private Sub initDataSource()
'Create PlateauPostions
'define attributes
With plateauPositions
.Columns.Add("xPosition", System.Type.GetType("system.int32"))
.Columns.Add("yPosition", System.Type.GetType("system.int32"))
.Columns.Add("occupied", System.Type.GetType("System.boolean"))
End With
'enforce composite primary key on xPosition and yPosition
... ??
End Sub
Jon
|
|
|
|
|
I have a problem using the picturebox. i am creating a game and i am using my character as a picturebox. i am moving him using the (w - a - s - d) format. now .. when i am pressing the "D" .. the code is doing this:
picSnake.Location = new point(picsnake.location.x + 4, picsnake.location.y).
Now the problem is this: the snake is moving to the right as it is suppose. but the problem is this that the picture is refreshing itself and when i am pressing the "D" and keep the "D" pressed all the time, the picture is like erasing itself and then it comes back again and goes to the right because the "D" is pressed. how can i solve this problem?? its very ugly right now
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
You can't do this with a picturebox and expect it to work nicely. You should draw the image direct to screen, or, unless the game is simple, look in to DirectX.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
can i use directx using vb.net??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Of course - just download the SDK and it should install managed DX automatically.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Is there an easy way to alternate forecolors in a listbox simular to datagrids in vb.net ???
silver-gray
|
|
|
|
|
Silver-Grey wrote: Is there an easy way
What's easy for us may not be easy for you.
There is no support for this built into the ListBox control, so you'd either have to find a replacement control that supports this, or create your own ListBox control and ownerdraw the ListBox to get this effect.
Since you'd have to supply the Fore/BackColor's for the even and odd rows, you'd probably want to start by creating your own ListBox class so you can expose these properties. You can Google for "ownerdraw listbox vb[^] for examples.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
vb.net
i'm dynamically adding buttons to my form and to these buttons adding the same sub to be handled which shows a messagebox, that should show the number of the button.
see example:
<br />
public cmd as button<br />
<br />
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
Dim i As Integer = 1<br />
Dim z As Integer = 5<br />
Dim x As Integer = 10<br />
Dim y As Integer = 10<br />
<br />
For i = 1 To z<br />
cmd = New Button<br />
cmd.Width = 100<br />
cmd.Height = 40<br />
cmd.Left = x<br />
cmd.Top = y<br />
Me.Controls.Add(cmd)<br />
AddHandler cmd.Click, AddressOf show_messagebox<br />
x += cmd.Width + 5<br />
Next i<br />
<br />
End Sub<br />
<br />
Private Sub show_messagebox(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
MsgBox("button ") ' + a number indicating what button has been clicked<br />
End Sub<br />
<br />
how can i find out, which button has been clicked?
this example uses only a few buttons, but i need to differentiate between up to several hundreds.
|
|
|
|
|
The sender parameter is a reference to the button that has been clicked.
---
b { font-weight: normal; }
|
|
|
|
|
yes, i know that, but i dont know how to use that.
|
|
|
|
|
Cast the reference to Button , then you can reference it's properties:
Button button = DirectCast(sender, Button);
---
b { font-weight: normal; }
|
|
|
|
|
hello, my question is this. i've been wondering how do i show the list of services running in a machine, through vb.net? and i'm not getting anything usable while i search google.
any help would be appreciated.
thanks in advance
|
|
|
|
|
You're looking for the ServiceController[^] class.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
that's it, thanks for the help
and can anyone help in some way, how to "see" the instances of msde using vb.net?
any help would be appreciated
-- modified at 13:05 Friday 29th September, 2006
|
|
|
|
|
I would like to play a beep with a particular lenght in milliseconds. How to do this in VB.net? Is there a way to play the beep with soundcard and not with PC Speaker (the beep function would instead call a wav/mid file and adjust its length according to the target length)?
All help is welcome!
|
|
|
|
|
Which version of VB.NET? In 2005, you have the <a href="http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx">My.Computer.Audio</a>[<a href="http://msdn2.microsoft.com/en-us/library/081ed2x7.aspx" target="_blank" title="New Window">^</a>] object that will do something like this.
There is no method or function call to resample a wave file and strech/compress it to play in x number of milliseconds. You'll have to find a library to do this for you. I don't know of any off the top of my head.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Is there a way to generate a sine wave sound with a particular frequency?
|
|
|
|
|
|
|
use int.TryParse to turn your string into a number, and ToString to turn the result back into a string.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|