|
hi dear i have developed a program in vb.net that just connect my webcame and take pic now i want to make a function that will crop my pictures so for that give me any help about it any function or any compoenet etc.
Regards
Msaqlain
|
|
|
|
|
Once the image has been captured, you can just draw any portion of it onto a new Bitmap, so create one the right size and draw the portion you require onto it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hey, i am working on a voice command and control project, our pc works as we give it command through mike.
i can open,close, mininize,maximize applications like notepad, wordpad, run, taskmanager through my programm.
but i want to get wave file info which is taken as input to pc. and through i want my project to work more efficientely, and accurately.
does anyone know??
|
|
|
|
|
sanket h modi wrote: i want to get wave file info which is taken as input to pc. and through i want my project to work more efficientely, and accurately.
What do you mean by "work more efficientely, and accurately"?? That's a very generic and subjective description that can be applied to any aspect of your PC or application. You'ce going to have to be more specific about what you want.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
|
You can either write your own installer, or use something like Wise for Window Installer to build one.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hello all,
Does anyone know how to show more than one database collumns in a listbox??
In documentation i read that it was not possible bus is there anyone who knows a backdoor for it?
Thanks.
|
|
|
|
|
if you just want to display data then while retrieving Concatenate it in sql query........but i dont think u can see more than one column in a listbox..may be i am wrong
Tirtha
Miles to go before I sleep
|
|
|
|
|
Use a ListView.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Is it that easy?
Shame on me!!
I wil try it.
Thanks
|
|
|
|
|
But how will i bind the listview to the database table?
There is no datasource property.
|
|
|
|
|
ListView doesn't have any datasource property...u have to add Items and Subitems to display ur data....
Tirtha
Miles to go before I sleep
|
|
|
|
|
If you need an object exposing the DataSource property then use the DataGrid .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
if u have a dataset(say myDataset) populated with your records then try this....(code is in vb.net)
Dim lvItem As ListViewItem<br />
For i As Integer = 0 To myDataset.Tables(0).Rows.Count - 1<br />
lvItem = New ListViewItem(myDataset.Tables(0).Rows(i).Item(0))<br />
For j As Integer = 0 To NumberOfSelectedField<br />
lsItem.SubItems.Add(CStr(myDataset.Tables(0).Rows(i).Item(j + 1)))<br />
Next<br />
myListView.Items.Add(lvItem)<br />
Next
Tirtha
Miles to go before I sleep
|
|
|
|
|
|
Hello,
Which Exception appears when inserting duplicated data (primairy key) in a database?
In my application "System.Data.OleDb.OleDbException" appeared but that seems to general to me??
And how can i use the try, catch statement?
Thanks
|
|
|
|
|
That looks about right, it's a database exception, and there are not exceptions defined for everything that can happen in the DB. The text of the exception will explain it
keninfo wrote: And how can i use the try, catch statement?
If you really don't know how to use try/catch, you probably need to buy a book on VB and work through it. Or, at least try google.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I know a little how try catch is working but can you help me a little ?
|
|
|
|
|
Try
' do your processing here
Catch (WhateverException As Exception)
' handle the error here
Finally
' any additional processing that needs
' doing regardless of error handling
' release database connections, etc.
End Try
Read this[^] for more info.
|
|
|
|
|
Well, I assume you knew what you've been told ( as it's the bare bones of what try/catch does ). What did you need to know ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How to get the current page number in ms word using vb.net.
i like to get the hyperlinks count in each page including the footnotes hyperlink and to store in an array
Thanks,
Nanda
|
|
|
|
|
i am trying to test the c dll in vb. but while calling the function it is giving me the follwing error.
Unhandled exception at 0x77f75a58 in Project1.exe: User breakpoint
the call from vb is like:
Dim buf As String
Dim xml As Long
buf = " "
xml = xmlnode_GetXml(root, buf, 10000)
and the code in c is like:
long __stdcall xmlnode_GetXml( XMLNODE xnode, char* pBuffer, long lBuflen )
{
std::string s = ((XMLNode*)xnode)->xml();
long l = (long)s.length();
if( pBuffer && lBuflen>0 )
{
memcpy( pBuffer, s.c_str(), (lBuflen
|
|
|
|
|
You have to allocate the right amount of memory for your buffer variable.
For instance:
Const lBufSize=10000
Dim buf as String * lBufSize
xml = xmlnode_GetXml(root, buf, lBufSize)
I used a const to highlight the requirement that buffer size must match the one passed to the called function.
Hope that helps
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
Hi all,
By using MSCOMM control i am able to make a phone call.But It requires Modem &
Phone.Is there any way of avoiding Modem,Is it Posible to make a phone call without using modem ? Please give me suggetions for this .
Thanks & Regards
Raju.
|
|
|
|