|
not web based i ment app as in application
|
|
|
|
|
From your comments, I conclude that you want to get Windows 7 to work in "Kiosk mode". Google that expression, and you'll find some links.
|
|
|
|
|
yes THANK YOU i was not sure how to do it or if it was possible but yes i looked up "Kiosk mode" that is Exactly what i was looking to make
|
|
|
|
|
yes THANK YOU i was not sure how to do it or if it was possible but yes i looked up "Kiosk mode" that is Exactly what i was looking to make
[SOLVED]
|
|
|
|
|
a long long way trying to get picture file size when loaded into application, now i got something close enough.
i convert image into [byte]() like this,
Dim imgSize As [Byte]() = Nothing
imgSize = DirectCast(Me.imgView.EditValue, Byte())
MessageBox.Show(imgSize.GetLength(0).ToString())
yes i have the value in byte, however the value != from the file windows properties, and yes always bigger.
did i miss something or wrong way?
|
|
|
|
|
That depends on what you mean by "get picture file size when loaded into application".
A Bitmap object will always represent an image in memory as 32-bits per pixel (R, G, B, A). Images on disk can be of varyious formats and compressions, so there is no relationship at all between the image size in memory and the file size of the image on disk.
|
|
|
|
|
I may be missing some subtlety here but why don't you get the file size directly?
Dim Info = My.Computer.FileSystem.GetFileInfo("filepath")
Dim FSize = Info.Length
Label1.Text = FSize
|
|
|
|
|
hey thank you for that code, but i've just figured out that your suggestion works only for standard picturebox.
however, i'm using devexpress picture edit control.
this control didn't support location.
but really, thank you very much for helping.
|
|
|
|
|
His code does absolutely NOTHING with a PictureBox.
You're not explaining yourself very well at all so we have no idea what information you're really after or why. That makes it very difficult to help you with anything.
|
|
|
|
|
actually i'm asking why when i convert an image into byte array
and get the length, i gain byte size of the image,
but the size always bigger than the real image 10-50KB.
you are right about compression dave, thank you.
|
|
|
|
|
Hi,
I plugged in a form a datapicker, but I'm having difficulty viewing the correct date when I fetch the same from a mysql table.
I manage the double-click on a row in a datagrid to retrieve the record data when editing a record in a form.
If the date my datapicker (textdatanascita) is set to the value of the table.
FormRegistrazioneUtente.TextDatanascita.Value = Me.DataGridView1.Rows.Item (e.RowIndex). Cells ("ut_datanascita"). Value
MsgBox (FormRegistrazioneUtente.TextDatanascita.Value)
As evidence of this fact I put a msgbox to check the accuracy of the data, and in fact everything is ok. The data obtained is as expected.
But when I open the form all the data in various textboxs are the expected ones, while only datapicker still shows the current date.
Someone would be so kind as to tell me where wrong?
thanks a lot
|
|
|
|
|
It isn't very clear what you're having a problem with. Are you saying that you're trying to retrieve records from the database using the date in the DatePicker control?
Or, are you saying that the date you get from the database isn't being bound to the DatePicker control properly?? If so, what does you're code look like that does the binding to the DatePicker? Are you binding to the DatePicker's SelectedDate property?? You should be!
|
|
|
|
|
Hi everybody
I am working on app in vb 2008 and have following situation:
I have one form with datagridview binded to access table with dataset, bindingsource, tableadapter and tablemanager. User cannot change, delete or add records in datagridview.
On same form I have two buttons for editing and adding new records
When user clicks on "edit" button another form is opened and on this form detailed information is displayed (based on row selected in datagridview) so user can edit and save data. On second form there are several txt boxes binded to same table through another dataset filtered on current record with following code: frmPD.TblPartnersBindingSource.Filter = "CompanyID =" & TblPartnersDataGridView.CurrentRow.Cells(0).Value.ToString
My quiestions are:
1. Is this correct way to open "details" form (using filter property of bindingsource)
2. How to use same "details" form to add new record.
Sincerely
Ivan
|
|
|
|
|
hello
there is an idea that you could use your textboxes at same form(let me say top)
when you navigate between records,your detaild information will be shown in text boxes to the user.
you can use TblPartnersBindingSource.addnew to insert a new record to database.
modified 17-Jun-12 7:33am.
|
|
|
|
|
Dear all,
I am testing out a command line program written in VB.NET. Of course the first line would check if the number of parameters is right. I use
Dim inputArg() As String = System.Environment.GetCommandLineArgs()
I find out the GetCommandLineArgs() fails if the input directory name is long! If I have input as:
"C:\abc123\456780\" "C:\long long long space\" "abc=def, 123=456, 81\23 33" , I would get: inputArg(1) | "c:\abc123\456780" c:\long" | inputArg(2) | "long" | inputArg(3) | "long" | inputArg(4) | "space" | inputArg(5) | "abc=def, 123=456, 81\23 33" |
Beside using a shorter path, any idea?
|
|
|
|
|
I'm assuming that the quotation marks are all part of the input in which case you're confusing the heck out of the parser! As I understand it, the input you need is ..
C:\abc123\456780\ "C:\long long long space\\\" "abc=def, 123=456, 81\23 33"
if the long directory name includes spaces else
C:\abc123\456780\ C:\longlonglongnospaces\ "abc=def, 123=456, 81\23 33"
See MS help ....
Quote: Command line arguments are delimited by spaces. You can use double quotation marks (") to include spaces within an argument. The single quotation mark ('), however, does not provide this functionality.
If a double quotation mark follows two or an even number of backslashes, each proceeding backslash pair is replaced with one backslash and the double quotation mark is removed. If a double quotation mark follows an odd number of backslashes, including just one, each preceding pair is replaced with one backslash and the remaining backslash is removed; however, in this case the double quotation mark is not removed.
|
|
|
|
|
biop.codeproject wrote: Beside using a shorter path, any idea?
- That's not even close to "long"
- What does "fail" mean? If you report a "fail", please state whether it throws an exception, does not work as expected, or whether your computer simply died.
- What's wrong with the results that you list at the end of your post? These are the args that I would expect.
Bastard Programmer from Hell
|
|
|
|
|
Cool man! I love your reply. It really challenges me to be more careful next time when I post my question. I should clearly state what my input should be. I guess right now you should figure out I want to have three parameters. First one is a directory name. Second one is also a directory name. The last one is a special string.
|
|
|
|
|
|
It's not the quotes that are screwing it up, it's the backslashes. You don't normally see directory paths specified with a trailing backslash. You can put any filepath you want inside double quotes, even if there are no spaces in the path.
|
|
|
|
|
Thanks. Finally someone can help out.
|
|
|
|
|
A single backlash in front of a quote character makes the parser treat that character as part of the string rather than a separator.
|
|
|
|
|
Thanks. Finally someone can help out.
|
|
|
|
|
hey friends,i have a problem about my program...
i have just make a simple web browser,but i think it is very simple...
can you tell me an opinion about advanced browser features?
|
|
|
|
|
You might want to describe what kind of opinion you're looking for and define what you think is an "advanced browser feature".
BTW, dropping the WebBrowser control on a form is not making your own "simple browser". All you're doing is embedding Internet Explorer into your app. You haven't actually "made a browser".
|
|
|
|