|
Looking at his profile, he looks like a habitual cross poster
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
hi
i am nikhil, an engineering student.nw i enguaged with my mini project 'sms jukebox',for this purpose i want 2 know how can we access sms 2 our vb.net projects from mobile phone through data a cable? i am using visual studio2005. pls help me....
coooool
|
|
|
|
|
You will either need your phone connected to your PC somehow, or use a Web Service.
If you have your mobile phone connected to the PC, chances are the phone will expect data via a serial connection.
Check out the manufacturer's website for your mobile, as they may have an API you can use.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Hi,
I have encrypted the "WMV" video files. Is there any way to decrypt the Video files on-the-fly without storing on disk and play it in media player.
while decrypting i have a data as a BYTE[]. is it possible to assign the byte[] to player.
Thanks & Regards
Kumaran
|
|
|
|
|
So you are trying to give an encrypted video to someone so they access it and play the video, but the catch is that they can't access it?
Sounds... very zen.
|
|
|
|
|
You simply don't have a choice here. MediaPlayer doesn't expose a method to play from an in-memory stream. You have to give it a file to play, that's not encrypted.
Now, I know you've already bee told to write a codec to do this.
|
|
|
|
|
how to get file from internet by using the webclient
Dim Client As New WebClient()
Client.DownloadFile("http://www.yahoo.com", "D:\abc\yahoo.html")
when i run this code i am getting out put yahoo.html page when i run this code local host
if i host in remote server i want to download the same page in D:\ or any other directory what i need to give the path.
i getting exception when i run the same code in server.
i am getting out put successfully , when i run local host , pleasee any one can give me solution for this, i want to download file in my local phisical directoy, when i host my dotnet application in remote system.
This is haneef.............................................................
|
|
|
|
|
haneef, you are an idiot
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
haneef wrote: i am getting out put successfully , when i run local host , pleasee any one can give me solution for this, i want to download file in my local phisical directoy, when i host my dotnet application in remote system.
The account that is running your code on the server must have access permissions to the file share on your local machine. It apparently doesn't, or you haven't mapped "D:" to the share on your workstation.
In order to pull this off, you really need to understand Windows Networking. I suggest picking up a book on it.
|
|
|
|
|
I want put some buttons in datagrid of vb.net,how do i do it.Plz help me,
Thank you.
coolsatty
|
|
|
|
|
Please try to google it first.
http://www.google.com/search?hl=en&rls=GGLG%2CGGLG%3A2006-10%2CGGLG%3Aen&q=add+button+to+datagrid
|
|
|
|
|
Hey there,
first off all i hope you'll excuse my average english.
I'm tyring to create a UserControl with the following aspects:
+ it has a static image in the background, that is recreated every mouseup event
+ when i have a mousemove event while the left-mouse-button is pressed it should open up a rectangle
i tried some solutions, but nothing worked. (graphics, graphics and bitmap, ...)
has anyone an idea how i could solve this problem?
greets
Radames2007
|
|
|
|
|
|
Is there a function in vb.net that will encrypt a password. I want to store encrypted passwords in the database.
|
|
|
|
|
Create your own encryption is one option
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
There are encryption classes in the System.Security.Cryptography namespace.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
hi all,
in my application i create multiple panel during run time . These panel also contains some other control .Base on number of records return by database query , panels is created (up to 1000).During execution i face "Error creating window handle." multiple time . i search on net, for resolve this problem but no proper solution is found.
anybody have idea that how can resolve this problem ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
You're creating over 2,000 controls on a form??? I hope you like waiting for the form to paint.
This is a REALLY bad idea. I suggest you limit that to a few hundered controls.
Part of the problem you're running into is that you're create so many windows. The Handle pool is probably being exhausted, explaining the error you're getting. If you don't properly dispose and release these resources, you'll cause this problem. BTW, the Handle pool isn't specific to your app. It's a system-wide pool. So, if you run the pool dry, the entire system will start doing strange things.
|
|
|
|
|
Hi!
I have place a splitcontainer on the form vertically. So the panels in the container called Panel1 and Panel2. I have also placed a tabcontrol inside the panel 2 and a groupbox in panel1. When I click a tabpage in tabcontrol I want to disable Panel1. However It doesn't do anything. Why?
Thanks
<br />
Private Sub TabLayout_TabIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabLayout.TabIndexChanged<br />
<br />
'This message never shows up. This control resides in Panel2<br />
MsgBox("Here")<br />
End Sub<br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hi All
I am using a WebBrowser control to navigate to sites in my VB.Net application. After navigating I want to Navigate to some of the links in it depending on some conditions. Can anybody advise how can I collect the links contained in the WebBrowser Document and how can I Raise a click event for a collected link so that it automatically navigates to the link.
I have written the code as bellow :
Dim link1 As mshtml.HTMLLinkElement
link1 = WebBrowser1.Document.Links(10)
Now How can I click the link link1 to navigate to the link.
Please Help. Thanks in advance.
Sekhar
modified on Monday, February 11, 2008 6:42 AM
|
|
|
|
|
Hi!
I have a listview box within 2 columns. When I populate and sort the listviewbox with ListviewItemComparer, I don't get any error but when I do it second time inside from another procedure ,I have received invalid index of 1 message in ListviewItemComparer class file. In second time When I apply an index of 0 for the column to sort, I don't get any error message but when I define 2nd column in listview box, I get error.
Any help will be appreciated!
Thanks.
Juneyt.
<br />
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
Call LoadTags()<br />
End Sub<br />
<br />
<br />
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click<br />
<br />
'I reload it when any new entry takes a place in database<br />
<br />
Call LoadTags()<br />
<br />
End Sub<br />
<br />
Private Sub LoadTags()<br />
<br />
Dim mySelectQuery As String = "SELECT * FROM Tags"<br />
Dim myconnection As New OleDbConnection(SQLConnStr)<br />
Dim myCommand As New OleDbCommand(mySelectQuery, myconnection)<br />
<br />
myconnection.Open()<br />
<br />
Dim myReader As OleDbDataReader = myCommand.ExecuteReader<br />
<br />
If myReader.HasRows = False Then<br />
myReader.Close()<br />
myconnection.Close()<br />
Exit Sub<br />
End If<br />
<br />
ListView1.Items.Clear()<br />
<br />
While myReader.Read<br />
<br />
ListView1.Items.Add(myReader.GetValue(0).ToString)<br />
Dim TACC As Int32 = ListView1.Items.Count - 1<br />
<br />
ListView1.Items(TACC).SubItems.Add(Trim(myReader.GetValue(1).ToString))<br />
<br />
End While<br />
<br />
myReader.Close()<br />
myconnection.Close()<br />
<br />
<br />
If ListView1.Items.Count > 1 Then<br />
'The error occurs here!<br />
ListView1.ListViewItemSorter = New ListViewItemComparer(1)<br />
ListView1.Sort()<br />
End If<br />
<br />
<br />
Public Class ListViewItemComparer<br />
Implements IComparer<br />
Private col As Integer<br />
<br />
Public Sub New()<br />
col = 0<br />
End Sub<br />
<br />
Public Sub New(ByVal column As Integer)<br />
col = column<br />
End Sub<br />
<br />
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer _<br />
Implements System.Collections.IComparer.Compare<br />
Dim returnVal As Integer = -1<br />
returnVal = [String].Compare(CType(x, _<br />
ListViewItem).SubItems(col).Text, _<br />
CType(y, ListViewItem).SubItems(col).Text)<br />
Return returnVal<br />
End Function<br />
<br />
<br />
End Class<br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Well, the first problem I see is that your code is making an assumption it shouldn't be making:
While myReader.Read
ListView1.Items.Add(myReader.GetValue(0).ToString)
Dim TACC As Int32 = ListView1.Items.Count - 1
ListView1.Items(TACC).SubItems.Add(Trim(myReader.GetValue(1).ToString))
End While
This code is adding a new item to the list view, but then using an index to add items to that item, which MAY NOT point to the same item! Rewrite the code to create and use a ListViewItem object, modify it with subitems, then add it to the ListView:
While myReader.Read
Dim newItem As New ListViewItem(myReader.GetValue(0).ToString)
newItem.SubItems.Add(Trim(myReader.GetValue(1).ToString))
ListView1.Items.Add(newItem)
...
|
|
|
|
|
Hello every one
How ca I select a item in a combobox when I know which index to be selected?
Regards
Nishkarsh
|
|
|
|
|
cbx.SelectedIndex=knownIndex
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
hi guys
i am using 3-tier architecture in my application,
now problem is with my reporting as i am not using datasets,i am using custom domain objects.
now my reports need dataset in order to show data on reports but i just want to use
custome objects not data sets , is there any alternate or better solution ,, thanks in advance
hello
|
|
|
|