|
any win api code in vb.net?
|
|
|
|
|
Nope. Nothing will give you a consistant interface to do this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ok. thank you, Dave Kreskowiak.
after search at google, i found this free OCR API from http://www.simpleocr.com/
|
|
|
|
|
Anybody know how to get Internet connection speed ??
Thank you for your time!
Servia Nostrum Regnum
-- modified at 20:54 Saturday 15th April, 2006
|
|
|
|
|
You need an external service to do this. Basically, you have to time the download of a known large file from a known source that is relatively close to your machine on the Internet. There is nothing you can query on your local machine to find out what the Internet connection speed is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I'm sorry,my English is bad,but I will try to explain my problem again.I use dial-up connection,and when my connection is established,connection systray icon is visible,when I click on the systray icon,the window opens.The are two tabs on the open window,general and details.On the general tab,there are two tabs,connection and activity,on connections tab,the are 3 labels:
1.)
Status : connected (if I'm connected)
2.)
Duration : time how much i spend on Internet
3.) Speed : 52.0 kbps
I need the label3 Speed,I need to determinate SPEED!!I hope that you understan me.
any idea,hint,link,anything ?? Thank you for your time!
Servia Nostrum Regnum
|
|
|
|
|
You can probably use WMI and the System.Management namespace to get a collection of Win32_NetworkAdapters. You can then try checking out the Speed and/or MaxSpeed properties to get what you want.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you for your time,I find a way
http://windowssdk.msdn.microso.../NetMon/netmon/networkinfo.asp
Servia Nostrum Regnum
|
|
|
|
|
If you want to do it the hard way, feel free! The WMI Win32_NetworkAdapter, Win32_NetworkAdapterConfiguration, and Win32_NetworkAdapterSetting classes will give the the same information without P/Invoking the Windows Network API to death.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Can you post me an example of your way!I'm not visual basic programer.I work in delphi,but any example is welcome,I'll try to convert it later.Thank you !
Servia Nostrum Regnum
|
|
|
|
|
in my site i have form to upload image
this image may be very big or very small
but
after user upload this image i want make some imagte prossessing as
(
1- i want to make two image from the original image
2- the first image have (50*50) cordinate
3- the secode image have (200*200) as max hight and max wiedth
4-i want for each image to take new name
)
u can see example in this site
http://www.blocket.se/vi/7874861.htm?ca=10_s
u can see tow image one small and one big
how can do as this in my site
Palestine
|
|
|
|
|
Hello ppl
Assume I have a ListView containing 5 columns. For a particular reason I'd like to be able to read the subitems of column 5 (index 4) into an ArrayList or a common array. I've tried different approaches, but the listview and I don't hit it off. Can somebody please give me code example of how this can be accomplished?
Tim
|
|
|
|
|
OK, I'll answer my own q. Here's one solution for those of you who have gotten into trouble with the mighty listview class...
For i As Integer = 0 To Me.MyListView.Items.Count - 1
Me.MyListView.Items(i).SubItems(5).Text
Next
'Where 5 is the index of the sixth column
|
|
|
|
|
When the thread has finished I suppose to get the message "MsgBox("Thread has finished.")" but nothing happens. Is there anybody who knows where I made the mistake ?
Private Sub but_StartBrowsing_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles but_StartBrowsing.Click
....
THR_Browse = New Threading.Thread(AddressOf BFMF.BrowseForFiles)
BFMF.dir = dirInfo
BFMF.exTensions = exTensions
BFMF.AL_MediaFileAndPath = AL_MediaFileAndPath
THR_Browse.Start()
End Sub
Private WithEvents evBFMF As clsFilesAndFolders
Sub BFMFeventHandler(ByVal AL_MediaFileAndPath As ArrayList) Handles evBFMF.ThreadComplete
MsgBox("Thread has finished.")
End Sub
Public Class clsFilesAndFolders
Public Event ThreadComplete(ByVal AL_MediaFileAndPath As ArrayList)
Public AL_MediaFileAndPath
Public exTensions
Public dir
Public Sub BrowseForFiles()
'This function search for files with a specific extension.
'dir : Directory path as directory.info.
'extensions() : Extension(s) where you are looking for.
'AL_MediaFileAndPath : Array list where the results are stored.
Dim subDir As IO.DirectoryInfo
Dim file As IO.FileInfo
Try
RaiseEvent ThreadComplete(AL_MediaFileAndPath)
For Each Filter As String In exTensions 'S1#. Loop through all extensions.
For Each file In dir.GetFiles("*." + Filter)
If file.Extension = "." + Filter Then AL_MediaFileAndPath.Add(file.FullName)
Console.WriteLine(file.FullName)
Try
Catch e As Exception
MsgBox("Problem to access File : " + file.FullName)
End Try
Next
Next Filter
For Each subDir In dir.GetDirectories
dir = subDir
BrowseForFiles()
Next
RaiseEvent ThreadComplete(AL_MediaFileAndPath)
Catch e As Exception
Main.cbo_NoAccesFileDirectory.Items.Add(dir.FullName) 'Add path to ComboBox.
Main.lbl_NoAccess.Visible = True 'Show Label.
Main.cbo_NoAccesFileDirectory.Visible = True 'Show ComboBox.
End Try
End Sub
end Class
|
|
|
|
|
i send variable by this fuction
dim ss as string = textbox1.text // here imagen i put "2415666:"
/// here code whcih minimaze the form of vb.net
System.Windows.Forms.SendKeys.SendWait("ss")// here the code which different and change . and after many click of button which make this action the string will print as "245566654" or some thing wrong .. the question why the variable printed like this ....
///here code whcih minimaze the form of vb.net
kilany
|
|
|
|
|
Mr kilany wrote: System.Windows.Forms.SendKeys.SendWait("ss")//
You didn't sned the contents of your ss variable. You sent the string "ss" to the other app (without the quotes).
The line should look like this:
SendKeys.SendWait(ss) ' no quotes!!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi,
i want to show a combobox in datagrid at runtime.
sppose if user in 5 colum he press the f9 key then currentcell is show a combobox
pls give code it helpfull to me
thanks
vipin paliwal
|
|
|
|
|
|
Hi
I want to work with data in an excel worksheet in my vb6 program, but I don't know what to do...
Could anyone introduce me a tutorial?
Thanks
|
|
|
|
|
What do you mean by working with Excel from vb6? Do you just want to display only data on the form or display it in any control and you could edit its data? But first, try to check from google search result.[^]
|
|
|
|
|
Sorry for not being so clear...
I mean editing (readin/writing) data in excel sheets...
Thanks
|
|
|
|
|
|
Thanks... I found what I needed
|
|
|
|
|
can any one tell me how to connect combobox with datagrid in VB.NET
PLZ MAIL ME AT toneeraj.kumar@yahoo.com
neeraj kumar
|
|
|
|
|
<asp:datagrid id="dataGrid1" HorizontalAlign="Center" BorderColor="#CCCCCC" Runat="server" Width="792px" OnItemDataBound="dataGrid1_ItemDataBound" AllowSorting="True" AutoGenerateColumns="False" OnSortCommand="dataGrid1_SortCommand" Height="224px">
<Columns>
<asp:TemplateColumn>
<HeaderStyle Font-Bold="True" HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
<HeaderTemplate>
first column
</HeaderTemplate>
<ItemTemplate>
<asp:DropDownList ID="dd" Runat="server" OnSelectedIndexChanged="dataGrid1_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</column>
</asp:datagrid>
add the above code in html in between form opening closing tag
Shipra Pandey
Software Developer
Solversa Technology Pvt Ltd.
|
|
|
|