|
can anyone point out to me why when handling the click events, if I change the borderstyle of the picturebox on Click then the DoubleClick even never gets handled?
When the borderstyle is changed the image disappears from the picturebox for a half a second. Is there something I should be doing to avoid this and could this be why it's not being handled?
Thanks in advance.
|
|
|
|
|
None of the issues mentioned is being replicated with VS 2005. Double click event is working fine as well as image is being displayed correctly, however you will get a small flicker when you change the border style.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Yeh - I'm not sure why it wasn't handling the DoubleClick. I had in the Click that it would get the image from the file again and the ones I was testing with were HUGE so I think that was stuffing it up a bit, but it still doesn't explain why the DoubleClick wasn't getting handled. I am using VS 2005, and now I have both being handled.
Thanks for getting back to me and my issue is now sorted... somehow LOL
Cheers
Russell
|
|
|
|
|
Hi,
I have a .NET web service which exposes a web method named "GetConfigurationItem". This web method returns an object of custom class. Here is definition of class:
class ConfigValue
{
String Name;
String Value;
}
Now the problem is when I call another web method which return a string there are no issues. But when I call the above method by capturing the return value in VB genreic data type 'Object' it throws an error "Invalid Procedure call or argument". I also tried by creating a similar class in VB client and then capturing the value in that object but in this case error is "Type Mismatch".
Could anybody please let me know where I am wrong> or is there any other way I can access such web methods.
Thanks in anticipation.
|
|
|
|
|
All a web service sends and recieves is XML, I imagine the ability to send/recieve a class is a non standard thing that .NET does, through .NET serialisation. So, an alternative may be to return a string which has your two values with a delimiter.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to create some flow charting in VB. I do not have Visio and will likely want the ability to distribute my project. What are my options? Am I forced to purchase a 3rd party component? If so, can anyone recommend one?
Thanks
EM
|
|
|
|
|
Depends on your skill level. You could write your own library to do it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Always happy to take the plunge but might be limited to time. As such, would want something flawless - quickly. I was also wondering if you could use a flowlayout panel or the more advanced layout panel and just use buttons - but assuming that I will still need to connect the buttons with the appropriate directional flow arrows.
Thanks
EM
|
|
|
|
|
I'm using Wizard generated controls in a database project.
I have a dataset, bindingsource, and table adapter. There is a datagrid bound to the binding source.
I'm trying to call RemoveAt() on the binding source, but it throws an error indicating that the list is
FixedSize and cannot be modified. How do I fix this?
Thanks in advance.
|
|
|
|
|
Hi,
I am using OleDbConnection to connect to the database. When the connection string get passed i can see clearly that the password is encrypted. But all the queries and the results are communicated in clear text. Is there a way to send this encrypted?
I just wonder, because all my passwords in the database are stored encrypted...
Thanks
PS. I am using .NET 1.1
|
|
|
|
|
Hi,
I was wondering how to convert a byte value to a binary array.
for example the byte value 16, how to convert into 1111?
Thanks!
|
|
|
|
|
Hi,
AFAIK there is no direct solution, you'll have to write some code.
Here is a C# example:
static string ToBinaryString(int number) {
char separator=',';
int nibbles=8;
int index=5*nibbles-1;
char[] chars=new char[index];
for(int nibble=nibbles-1; nibble>=0; nibble--) {
for(int bit=3; bit>=0; bit--) {
char c='0';
if((number & 1)!=0) c='1';
chars[--index]=c;
number>>=1;
}
if(nibble!=0) chars[--index]=separator;
}
return new string(chars);
}
It will generate a fixed-length string, i.e. zeroes get prefixed (since that is
the way I like to have non-decimal numbers), and comma's get inserted every 4 bits.
BTW it will turn 16 into "0000,0000,0000,0000,0000,0000,0001,000"
and not in "1111" (which is 15)
|
|
|
|
|
Hi all,
Can you please help to guide me through the following for OWC11 in vb6:
1) plot a chart with 2 value axis, both are line chart
2) add annotations(text) in chart area, with controllable alignment, font, color and location
3) draw lines in chart area, with controllable alignment, color and location
Thanks all
BR
Vincent
|
|
|
|
|
hi guys
as oledbpermission class and io access related classed need to run in full trusted environment
, but is there any way that we can create some custom persimission set like stuff to run these asseblies which require oledb and io permission to run in the partial trusted environment like intranet,, thans in advance
hello
|
|
|
|
|
Hi,
I am developing a windows application. In this I have a list box which should be populated with a list of categories in the form load event.I've used a DataReader to do this. when I add a new category it should be automatically added to the list box also.I should use a seperate form to add a new category.If it's a Web appl it's very easy as the page will be refereshed every time.
|
|
|
|
|
hi
Do you want those Categories to be Added to the DB, when you add them with your list box, but still appear in your form? if so , remember you cannot update a reader, then you should use a dataset. please explain angain in detail what you want to achieve
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
In visual studio 2005, i have used a masked textbox control and set its mask property to phone number.
Also I am using a button to insert the phone number into the masked textbox(as shown in the code), but when i do so,
it inserts the number in the masked textbox from the end part not the beginning.
Code...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MaskedTextBox1.Text+="1"
End sub
How to insert the value in the masked textbox from the beginning like in a normal textbox?
Any ideas??
|
|
|
|
|
xbiplav wrote: MaskedTextBox1.Text+="1"
that is the same as MaskedTextBox1.Text = MaskedTextBox1.Text + "1"
so it appends a single 1 to whatever is already in the MTB.
|
|
|
|
|
My question is not concerned with appending the number that was already in the masked textbox.
Actually what it does is, it append the value from the last part of the masked textbox control.
I want it to append from the beginning like in a normal textbox control.
To be clear, please try it yourself.
|
|
|
|
|
xbiplav wrote: append from the beginning
there is no such thing as "appending from the beginning".
x+="1" will append a one to the existing string, increasing its length by one.
x="1" will throw away whatever x was holding and put one instead; the resulting length
will be one.
what textboxes typically do is select any text that happens to be present upon cursor entry;
the first thing you type then replaces the present text (that's like x="1"); the second
character you type is appended, etc.
When you use other means to add text to the textbox, it does not get focus, so the
present text is not selected and replaced.
|
|
|
|
|
I am sorry i cannot make you understand my question.
You have to test the problem yourself to get understanding of my question.
|
|
|
|
|
I can't as you fail to show a problem or a complete program.
There are several articles here about MaskedTextBox, maybe they can help you?
|
|
|
|
|
Please try using .AppendText .....
|
|
|
|
|
xbiplav wrote: MaskedTextBox1.Text+="1"
If you want to add the text at the beginning, how about
MaskedTextBox1.Text = "1" + MaskedTextBox1.Text
|
|
|
|
|
hello everybody!
I want to know about this above exception and why this exception occurs. If someone has experience with this exception, please tell me detail message about this.Now I can't find more information about this error code.Please help me.
phoopwint
flowerppk
|
|
|
|