|
hi.....
what i mean of novice is im novice not on the language C# but only about invoking direct X using this language...... sorry for making you confused!!!
you have an idea about my problem..??
plz help!!!
|
|
|
|
|
Well, if you have some expercience already, I assume you already know about gdi. I'd use that to display the image. If you need a way to go fullscreen, just google. There's plenty of examples. Also, there's a p/invoke thingie for playing sound. If you insist on using directX, I don't see why you would, just use the examples that come with the sdk.
|
|
|
|
|
hi every one,
when u have an unbound combo box in the datagridview. how do u get the value selected in that combobox. I'm trying to do that and its giving me a nullref exception. I'm working in c# 2.0 windows forms
I was trying to access that with somethin like this
datagridview1["AttendanceComboBoxColumn",i].Value.ToString();
but its not working.
plz help its urgent
thanks in advance!!
Rocky
|
|
|
|
|
Hi all, Could anyone help me building an 'Un-Installer'. Our team developed a set of client applications. I am supposed to build an Un-Installer which can Un-Install more than one application based on User's choice .. Please help me (or refer me some resource) how I can build an Un-Installer in C# ??? Waiting for your replies ...
Thanks in advance
Kaliem
Two wrongs dont make a right but three lefts do...
|
|
|
|
|
to be specific, I want to develop Un-Installer in .NET ....
|
|
|
|
|
You can have a MSI project to setup right. That would manage your install and deinstall seamlessly. To create a MSI project you can access New -> Project -> Setup and Deployment project in your Visual Studio.
|
|
|
|
|
Hi all,
I have an application that fetches data from a web service, and then displays the data into the datagrid on a form.
I have put some images so that the form looks similar to the Web page developed for the same application.
Now the problem is when i show the form the form displays and then all the controls are slowly painted on it.
What i want is the form should not be displayed until all the controls are fully painted on the form. So that it does not flickers.
Any ideas, pointers in this regard will be appreciated.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
there should be two function available called SuspendLayout and ResumeLayout .
hope this helps...
V.
No hurries, no worries
|
|
|
|
|
Hi every 1,
I have a project in which I am using DataGridView and I have to show ContextMenu on the grid.
The problem I am facing is, I need either the Index of the cell where the user "Right Clicks" or get it selected some how... The reason I can't do it is that the when I assign context menu to the DataGridView it takes over the RightClick event of the DataGridView meaning that it will never be fired.
If any1 can suggest a feasible solution to it I will be great full.
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
|
Thanks Robert
You really saved my day..
ThaNKS AGAIN
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
Hi,
I'm trying to check if a certain tabpage is selected.
This is how i tried it:
foreach (TabPage tabControl in this.tabControl1)
{
if (this.tbp1)
{
}
}
I didn't find any property which represents "selected" for this.tbp1.
And i also got an error in the foreach statement which says:
foreach statement cannot operate on variables of type 'System.Windows.Forms.TabControl' because 'System.Windows.Forms.TabControl' does not contain a public definition for 'GetEnumerator'
How can i iterate through my tabpages in a tabControl and check if a certain tabpage is selected or active?
Thanks in advance!
|
|
|
|
|
Hello,
You have to compare the Index property of the TabPage, and the SelectedIndex property of the TabControl.
foreach (TabPage tp in this.tabControl1.TabPages)
{
if(tp.Index == this.SelectedIndex)
{
}
}
Hope that helps!
All the best,
Martin
|
|
|
|
|
Bulls eye!
|
|
|
|
|
Hi,
try using TabControl.SelectedTab .
Robert
|
|
|
|
|
Hi guys,
I thank all of you for your reply!
But what Robert suggested did the trick
Thank you !
|
|
|
|
|
you can use the Selected or Clicked event of the tabPage (not the tab control) you can access this by selecting the tab control then go to the properties panel and on the top of the panel click on the drop down arrow and select the name of you tab page that u want to iterate. then select the events and select any event you wish
Good luck
|
|
|
|
|
|
People, who took their time for helping you and answered you two days ago, will not be happy.
|
|
|
|
|
rs2006 wrote: But I couldn't see the red line,I don't know why.
You were given a solution before. It didn't completely work but it got you further than your code above - Why did you revert to code that you know does not work in any situation when you had code that does work in some situations? Doing this is a slap in the face to anyone that tried to help you the first time round.
What you need is some way to keep the lines you draw on the form there permanently. You can do this by having the form respond to an OnPaint event and have it redraw the line every time the form gets damaged.
An alternative solution is to create a control that represents the line and have that draw itself when instructed.
|
|
|
|
|
it didn't show cz the panel is not painted unless the form is loaded cz the initializeComponents() method the is used by the compiler to paint and draw all the controls is not called unless the form is painted.
So u can't draw and paint on an undrawn and unpainted control
|
|
|
|
|
quiteSmart wrote: it didn't show cz the panel is not painted unless the form is loaded
He was actually told that a wee while ago. He obviously didn't listen.
|
|
|
|
|
Argggh. I hate it when they don't listen.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Some people need to hear the same thing twice to understand it well
so take it easy guys
don't hit him on his first fault
|
|
|
|
|
your welcome
but please look at the answers to your posts cz as i have read from the above replies that they answered u before on the same question.
no need to dosplay the question twice on this discussion board.
this will get some people upset
|
|
|
|