|
I'm not sure if this is a .NET framework issue or a windows XP to Vista transition issue but I have an application I've been developing in VS 2008 (C#), .NET framework 2.0, on a windows XP machine. Recently, my team was told that we needed make sure this was vista compatible so we moved over to a machine running vista and framework 2.0 and noticed that the background colors to the combo boxes had lost their backcolor property. When the page loaded the color would flicker and then go to the default grey. At first we thought it was a theme overriding out property so we disabled the theme first through windows and then in our code using uxtheme.dll, each to no avail. Thus far the interwebs have yielded no results so I'm wondering if this is a random act of God.
"The shortest distance between two points is under construction"
-Noelie ALtito
|
|
|
|
|
Vista adds more styling to comboboxes than Windows XP did. You may have to rewrite the graphical code for those comboboxes if possible to make it more appealing under vistas themes.
As far as code is concerned, you should have absolutely no problem with moving it vista/.NET 3.0. The only problem is with overriding graphical themes/control aspects.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Yeah, to solve the problem we had to change around a few things and make some sacrifices as far as a machine using vista is concerned. We just changed the style to "flat" whenever we detected Vista. It's not as pretty but it's a fairly quick and easy solution.
Thanks for you reply. Much appreciated.
"The shortest distance between two points is under construction"
-Noelie Altito
|
|
|
|
|
Hi, im a newbie, and i now the answer is probably very simple but i just cannot figure it out. I would like to get the datagridview to STOP taking the first row as the columnheader. i hav tried using DataGridView1.Columns(0).HeaderText but iv realised it doesnt stop taking the first row as the column header but it simply replaces the text in that column header but does not do what i want. Any help is much appreciated
PS i am using vb
|
|
|
|
|
Do you mean that you don't want column headers? Have you tried setting the ColumnHeadersVisible property to false?
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton I gave up when I couldn't spell "egg". Justine Allen
|
|
|
|
|
Hi Friends.
I'm a new member.
i'm working with VB.net 2.0.
I want to add a datetimepicker into column of datagridview
please tell me how to do??
Thanks for all ideas 
|
|
|
|
|
|
Thanhks Tindo.Your guide help me so much.Thanhks again.
And Do you know how to add a MaskedTextBox into column of DataGridView???
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|
|
how do you get values from text boxes and then use them?
thanks
|
|
|
|
|
You have to use the Text property.
The String^ value can be converted to a number
using System::Convert::To[Type] .
([Type] = Double, Int32, ... )
Alex
|
|
|
|
|
string A;
int B;
A = textbox1.text;
B = convert.toint32(textbox2.text); // if possible!!!
other types other convertions
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
salam sir;
please help me how can get online help in visual studio .net 2003 and 2005?how can get free download msdn software and how can get online get help in msdn?
thanks
mohammedali
|
|
|
|
|
I am pretty certain that you need to buy MSDN library, it also comes with the purchase of the VS products. I don't know if you can get it for the express versions.
Otherwise you can use the online version, however most developers use Google, you get MSDN + community information.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I need to display a BrowseFolderDialog that contains a checkbox.
I have found a SaveFileDialog from CP[^]
that allows to add any control in SaveFileDialog. I need the same for BrowseFolderDialog.
Any help would be much appreciated.
|
|
|
|
|
I believe you will have to resort to Windows API.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Dear Sir,
I am developping one Video Application, In that I record the video using WEBCAM. the video is recorded i can see the recorded video. Now I want to adjust the brightness, color etc..
how can I adjust the brightness / contrast / color of a usb camera programatically on Win XP & Vista ?
Which api functions will I need?
I want to adjust those settings found in the standard camera settings dialog (which contains brightness / contrast / saturation ), not sure but guess it's a part of video for windows api.
I have a Logitech usb camera.
Please give solution with code.
Regards,
Balaji.V
|
|
|
|
|
balaji_vbr wrote: Please give solution with code.
Why don't you write code & we'll check it? This isn't rent-a-coder you know.
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton I gave up when I couldn't spell "egg". Justine Allen
|
|
|
|
|
we are using C#.net & windows media encoder 9 sdk for recording the video. e record the video through usb Webcam.
while recording the video i want to change the brightness, contrast.
Regards,
Balaji.V
|
|
|
|
|
Ok. So try doing it, research it, read articles, write some code & then we'll help you.
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton I gave up when I couldn't spell "egg". Justine Allen
|
|
|
|
|
This column would open a dialogbox when clicked. I want a column with an image displayed for each row how can I do that ?
|
|
|
|
|
|
Hello,
Im trying to make a little application to have a console application open and say 1 for addition 2 for multiplication, etc.
i do not know how to make a menu for a console where if i type 1 i need the console to read it and show the layout for the addition.
please help!
-Steven
krtek16@hotmail.com
p.s. i wrote it like this (addition example)
{
console.writeline("please enter first number to add");
string sNumber1Add;
sNumber1Add = console.readline();
double dNumber1;
dNumber1 = Convert.ToDouble(sNumber1Add);
console.writeline("please enter second number to add");
string sNumber2Add;
sNumber2Add = console.readline();
double dNumber2;
dNumber2 = Convert.ToDouble(sNumber2Add);
//add together
double dAnswerAdd;
dAnswerAdd = dNumber1Add + dNumber2Add;
console.writeline("The answer is + "
dAnswerAdd);
console.writeline("press enter to terminate");
console.read();
}
|
|
|
|
|
i didn´t practiced doing that but i bet it´s easy
did you tryied using routines???
...void mymenu()
{
console.writeline("*********************");
console.writeline("*****my program******");
console.writeline("*********************");
console.writeline("1 - item");
console.writeline("2 - item");
console.writeline("3 - item");
console.writeline("4 - exit");
console.writeline("select(1-4)");
...validations whatever!!!
}
good luck
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hello,
i am using VS 2003 and/or VS 2005
In C# i want to the accomplish following task:
i want to have a user control that supports multiple checkboxes in it.
the number of checkboxes and the text of these boxes should be dynamically changed.
Depending on the layout of the user control these checkboxes should be aligned horizontally or vertically.
i.e. I say control shall have 8 checkboxes and each checkbox shall have its on descriptive Text.
then these checkboxes should layout themselves left to right or top to bottom depending on ratio height to width of the user control.
I managed to build that user control, but i dont really know where to add / delete the checkboxes
in design time.
At the moment, i create the array that holds the checkboxes in the constructor (both runtime and design time).
Depending on the number of desired checkboxes, which is set via a property i dynamically grow or shrink this array.
I dont know where i should add these checkboxes to the usercontrol. When i add them in the Paint method, i have to delete them before i add them new.
Maybe someone can help me with an easy example.
Greetings Wolfgang
|
|
|
|
|
I have not tried it, but you could use
Controls.Add(...) Alex
|
|
|
|