|
I guess the 64,000 question is, if your app is hidden, of what use is it ? I guess you'd do better to make your app not show up on the taskbar, and then minimize it, or move it to a non visible area of the desktop ?
Are you trying to write something that acts like a service ? If so, just write a service
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i heared this problem many time...so how casue this problem..i don't know may the .NET it self!
the only solution for this.... is to change the Opicity of the form from 0 to 100%..etc
try it..it's working
Militiaware
Faris Madi
leaving an idea like leaving your mind
|
|
|
|
|
Your application just quits because you haven't started a message pump that the form can use. Start with creating a normal Windows Forms application, not a console app. You can then put the Me.Hide in a button and it'l actually work!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hellow to all ..
i am looking for a way , that when i hit thing in a form it affect values or a combobox , in another form ,
how can i do it ?
thxx
|
|
|
|
|
Hello,
I've been trying to convert a simple USB control program from VB to C#.net for a past few days and I'm making no headway. Can anyone help? The original program is at
http://www.devasys.com/release.htm
Its at the bottom of the page, along with a C++ example.
Much thanks.
Hovik
|
|
|
|
|
there is min values for all kind of datatypes, like: integer.minvalue = -2147483648, or Date.minvalue = 12:00:00 AM, that I must use. But when displaying results in datagridview/listview I want to display nothing/empty cell. I have to use binding.
|
|
|
|
|
What are you trying to do ? The most logical way to deal with any situation like this is to massage the data going into the grid. In other words, return empty values, when that is what you want to show.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yes, agree. But what is an empty value for Date? - It is "12:00:00 AM", empty for Integer - 0. But 0 in my case is a number and anyway the values will be shown in datagridview. It's confusing, so, I'm looking for a way to show just empty cell instead 0 or 12:00:00 AM... Thank you.
|
|
|
|
|
I have no idea what your problem is here. You're editing values in the grid ? Why do you have empty values to start with, and why are they showing these values if they are empty ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have to display a group of contacts in datagrid - not editable. Fields are first name, last name, and dob (to keep it simple). DOB is not required, so for contacts who didn't specify their DOB I'd like to display nothing. But I'm getting 12:00:00 AM, which is confusing, because there is no such date for birthday. Once again, because I use binding, when DBNull comes to the place (DOB is empty in a database), it's converted into 12:00:00 AM automatically in a datagrid
|
|
|
|
|
Why don't you turn the date into a string in your data source then ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
first of all, how . And then, I have about 20-30 fields for each contact, and may have over 100000 contacts in a database. It will slow down
|
|
|
|
|
irapov wrote: first of all, how
Easy - you're returning the data from a stored proc, surely ? So, turn it into a string there. Or, if you prefer, iterate through the data again before passing it over to the datagrid. Or ( best option IMO ), databind on a function which returns either the date as a string, or an empty string if it's DBNull.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
In datagrid_itemdatabound event check for the dob, if it is no value or null set visible false for that particular cell
check for dob if no value then
e.item.cells("dob").visible=false
Jv
|
|
|
|
|
thanks so much, I've got the idea. The only problem that visible is readonly property.
|
|
|
|
|
Hi. I'm doing a project that i need to send information to a VB6 program when my machine stop. The operator must put in a job nr to restart the machine. If the nr is the same as the current job the machine must start. If not the same the VB6 program must verify that a new job will be done. The plc used is a AB SLC 503. I am new to VB6. Can anyone help me with this.
R.Cerva, South Africa
|
|
|
|
|
You're asking a very general question about a very specific (and not very often seen) application for some very specific hardware.
On top of that, you've got little to no experience with VB? Yikes!
You're best shot is Googling for something like "VB6 PLC" and see what you can understand. You're most definately not going to come up with something pre-written or "cut-n-pastable".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
please
I want to control pc via bluetooth by using vb.net
or any .net progrmme
|
|
|
|
|
Hello,
Dim obj As New Microsoft.Win32.RegistryKey
I could not create a new object of Registrykey.This class is a encapsulation method
I got the error( Overload resolution failed because no 'New' is accessible).How can I develop this type class.Please help me
Continue...
|
|
|
|
|
If you're trying to create a new subkey in the registry, you're doing it wrong. Registry and RegistryKey are essentially class factories that create and return new RegistryKey objects.
Dim myNewKey As RegistryKey = Registry.LocalMachine.CreateSubKey("mySubKey")
This will open the Local Machine hive, create a new subkey off of the root of Local Machine, then return the RegistryKey object representing the new subkey.
You can the use that object to create values in the new key.
myNewKey.SetValue("valueName", value)
' Don't forget to Flush! ;) This forces the Registry to commit changes to disk immediately.
' You don't have to call Flush if waiting for the lazy flusher to commit to disk is OK.
myNewKey.Flush()
' You do have to call Close when you done reading/making changes.
myNewKey.Close()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Free Visual Basic.NET videos at http://www.vbdotnet.somee.com
please reply for any ideas or comments
|
|
|
|
|
Hi, I need to build an application which will send the large picture (around 800kb) via an e-mail using dial up networking connection. I want to send the data very fast in order to reduce total cose and reduce time consuming. Does any one know how to use any method to send a graphic file over an internet by using a slow connection? Does the graphic need to convert to any data type before send over an internet?
|
|
|
|
|
Theres nothing special about sending an email down a slow write compared to sending it over broadband.
If you want to reduce the bytes sent for this picture, and thus speed up sending it, you're going to have to sacrifice something to do it. This is usually the image size and/or quality.
Reducing the dimensions (size) of the image will quickly take care of the problem, but now the recipient has a much smaller picture to look at.
Re-encoding an image to a .JPG image, like converting a .BMP image to a .JPG, will also reduce the size (in bytes) of the image, but it also sacrifices image quality. If the image is already a .JPG, you'll have to specify a higher compression when you convert the image to another .JPG file, thus further sacrificing image quality.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Are there any possible way to convert an image to any format (example: a small text code format) and send over an e-mail then rebuild the picture after it arrive at its destination?
|
|
|
|
|
Converting the byte stream to a Base64 encoded text, but this will actually make the file BIGGER. There is no way to convert it to a smaller number of bytes without sacrificing something.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|