|
A bit late, but just wanna thank you for the tip, this works excellent!
|
|
|
|
|
Hi Gurus,
I'm using the PropertyGrid control, and I want it to show a button.
But when I set the PropertyGrid.SelectedObject with a object that has a Button property, the PropertyGrid shows the buttons properties, and I want the button to be shown as drawn and clickable button without any access to its properties.
How can I do that?
-----
Thanks
Sharon
|
|
|
|
|
I have download (Sent Meassage) from code project it is running well as well as when we enter correct details in the textboxes then it donot send SMS on Mobile Phone it only it send mail on the email address which is fill by us at the time of send sms the error are below
Subject: Delivery Status Notification (Delay)
This is an automatically generated Delivery Status Notification.
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipients has been delayed.
919810099974@airtelmail.com
Message/delivery-status
Reporting-MTA
it is show error on every mobile phone
if you have any suggestion then send us on below address
Manish Kumar
manishgkumar@yahoo.co.in
Manish
|
|
|
|
|
Hi All Prespected Programmers
Kindly send me method that, How may I add Integer values into Combobox Itemdata and How may retreive Integer values from Combobox Itemdata?
Thank you in Advance
|
|
|
|
|
There are three file Default.aspx, Default1.aspx and Default2.aspx.. Is it possible to call remaining two pages if I click on a Button in the Default3.aspx .? The pages are individual.. If i click on a button in Default3.aspx the page_Load Event of the remaining two pages has to be called/processed... I am using ASP.NET 2.0 and C#. pls give me suggestion. If you send code its great.
Thanks
Hosanna.
|
|
|
|
|
Sounds like your overall design is horribly wrong.
If you have code that every page should process, put it in a base class. If it's related to business logic, put it in your middle tier ( and perhaps call it from there in a base class ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
There are three file Default.aspx, Default1.aspx and Default2.aspx.. Is it possible to call remaining two pages if I click on a Button in the Default3.aspx .? The pages are individual.. If i click on a button in Default3.aspx the page_Load Event of the remaining two pages has to be called/processed... I am using ASP.NET 2.0 and C#. pls give me suggestion. If you send code its great.
Thanks,
Hosanna
|
|
|
|
|
Simply restateing your question does not help anyone answer you more fully than Christian already has!
|
|
|
|
|
Seriously, I answered you, your page design is completely broken. You cannot do this, you need instead to write your pages properly.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
lo,
i want to change a number in a certain cell
i thought i coud change it with a for loop
and i found that i can select a cell with datagridview[columnindex,rowindex]
so i thought that this would work:
datagridview[3,2].value=x.tostring(); //x is a int from the for loop
but it doesnt,
anybody ideess ???
plzzzz
|
|
|
|
|
YOU CAN USE SIMPLY
IT WILL CHANGE THE DESIRED VALUE WITH YOU VALUE
DATAGRID[ROW,COLUM]="YOUR TEXT";
sikandar
|
|
|
|
|
when i write
datagridview2[3,2]= "this is text";
i get an error
Cannot implicitly convert type 'string' to 'System.Windows.Forms.DataGridViewCell'
|
|
|
|
|
datagridview2.Rows[3].Cells[2].Value.ToString()= "this is text";
|
|
|
|
|
it works :p first not but now it does
thxx
|
|
|
|
|
Never mind dude
|
|
|
|
|
answer my combo question then i will not mind
thanks
sikandar
|
|
|
|
|
which is ur question???????
|
|
|
|
|
right below you question
if u can and try ur self
how to do some items of combobox will be bold and some are regular.
???
i willbe greatfull.
sikandar
|
|
|
|
|
|
Dear programmers
is there any way that some item of combobox can be bold and remaining will be regular.
if it is then plz tell me how..
thanks in advance.
sikandar
|
|
|
|
|
You need to make it owner drawn and render the text yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanks for response
i don know how can i render the text
can u plz give descpriction
thanks
sikandar
|
|
|
|
|
Its quite easy to make an Owner Drawn control. Basically, you are telling a control that you will write the code to draw each item in a control. In the case of a combo box, each item is an item in the drop-down portion.
To do it, follow these steps
1) Drag a combo box to your form
2) In the properties window change its DrawMode property to OwnerDrawnFixed
3) Change to the events and double click the DrawItem event
4) Switch to code view and you should have this
private void comboBox1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
{
}
5) Write your code in there, for example I used the following code to alternate bold and nomal items
private void comboBox1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
{
if((e.Index%2)==0)
{
e.Graphics.DrawString(this.comboBox1.Items[e.Index].ToString(),e.Font,Brushes.Black,e.Bounds,StringFormat.GenericDefault);
}
else
{
Font boldFont = new Font(e.Font,FontStyle.Bold);
e.Graphics.DrawString(this.comboBox1.Items[e.Index].ToString(),boldFont,Brushes.Black,e.Bounds,StringFormat.GenericDefault);
}
}
|
|
|
|
|
hi all ,
i'm asking if could the windows service that i create , can be run automaticlly when the windows start and read from the
XML file .
:->regards ,
abdallah zaid
|
|
|
|
|
Yes. Use services.msc console and set the Startup type for your service to Automatic.
|
|
|
|