|
Dear All,
I have problem with create control on runtime
I create control Panel Or PictureBox, I want to send it to back or front but can not,
Please help me
Socheat
|
|
|
|
|
This is so difficult to do! It took me ages to work it out...Send to back of z-order[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
You left of the sarcasm smiley!
|
|
|
|
|
I wanted him to click on it!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Hi everyone, I'd be grateful if you can help me on this:
Suppose I have this table:
Code Name
---- ----
1 A
2 B
3 C
When bound to a DataGridView , when choosing from the Code column a value of say "2" how would I populate the corresponding value from column Name that is "B" in this case??
Thanks a million guys!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You could look it up in the row of the data grid, or in the row of the data source.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
DataView dataview = new DataView(datatable);
dataview.RowFilter = "Code = '1' AND Name = 'A'";
GridView.DataSource = dataview;
I know nothing , I know nothing ...
|
|
|
|
|
Hi
From where you want to choose the code column value??Is it dropdown or something else
himanshu
|
|
|
|
|
Yes, both columns are drop down and have the full values listed.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
In the event that fires when selecting a cell (cant remember the name), which should have parameter such as e.RowIndex and e.ColumnIndex, assuming your DataGridView is named myDGV:
myDGV.Rows[e.RowIndex].Cells[e.ColumnIndex].value.toString() -> this get the value of the selected cell.
myDGV.Rows[e.RowIndex].Cells["MyColumnName"].value = "MyStringValue" -> this sets a value for the specified cell.
|
|
|
|
|
Hi All,
I am trying to call a C++ function into C# using PInvoke. The C++ function accepts a filename as a parameter and then writes to that file.
However, the hitch is when a simple filename is passed from C#, at the C++ end it is implicitly appended with Escape characters which is why it cannot find the file.
For Eg: If I pass a file as "ABC.txt" which lies in my bin\debug folder of the C# application, at the C++ end it becomes bin\\debug\\abc.txt which is wht it cannot write to the file.
Did anyone encounter a similar problem and has resolved it?
Kinldy help me out here.
Any help is appreciated.
Thanks in advance
Siddy
|
|
|
|
|
siddy17 wrote: at the C++ end it becomes bin\\debug\\abc.txt
Are you sure that's not just the debugger representing the string as a C# string?
Have you viewed the string using the text visualiser instead to be absolutely sure it is really containing the double slashes? (Hover over the string variable, you'll get a little arrow in the tooltip which will offer you some visualisers, choose the Text Visualiser)
|
|
|
|
|
Hi I have used Text visualizer.
May be I was not very precise. In C#, I have to use '\' as an escape character. Hence If I pass a filename as "D:\\ABC.txt", the function in C++ does not take the path as is, it implcitly appends two more '\'s as escape characters (one for each '\' in the filename) and hence cannot
find the file.
The problem lies at at the C++ end.
Thanks,
Siddy
|
|
|
|
|
What if you send the path as @"d:\abc.txt" ?
जय हिंद
|
|
|
|
|
Hi!
I have a simple question.
With an interface I can force the classes that implements it, to implement methods and properties defined in the interface. But am I able to force the classes to inherit som other class, with an interface?
Thanks!
|
|
|
|
|
No.
What you could do is make the class "inherit" the interface and then you inherit the class. If it is an abstract class I would imagine (because I've not tried it) that you could delay the implementation of the interface until it got to the class that inherits the abstract class.
|
|
|
|
|
AFAIK no.
Why do you want to do a forced inheritance?
जय हिंद
|
|
|
|
|
I want my derived classes both to have the functionality from the System.Windows.Forms.UserControl and have to implement the methods and properties described in my IGroup interface.
|
|
|
|
|
Using an interface, you can only "force" a class to inherit only other interfaces.
If you want to force a class to inherit some other class, you can create, as others have said, an abstract class thats derives from the class you want to force inheritance. Keep in mind, though, that in c#, unlike interfaces, a class cannot directly inherit from multiple classe.
|
|
|
|
|
Yeah, that will probably be my solution. I now use an abstract class instead of the interface!
|
|
|
|
|
Hi,
I keep getting the following problem only on Vista. My application is working fine on XP. Need your expertise to advise me on what went wrong.
//Code fragement
GetRecords() //from Access Database
ComputeValuesforRecords() //I am modifying the record values in dataset
DisplayRecords() //I am showing them in Grid
---
This code fragement always shows an error message "There is no row at position 0' when ComputeValuesforRecords() is called. This happens only on Vista. I am not sure why this is happening. Any clues?
Thanks
|
|
|
|
|
Without knowing anything other then your method names, did you include your access database file with your project? Did you hardcode the path to your access file, if so is that path still valid under vista?
|
|
|
|
|
EliottA wrote: is that path still valid under vista?
And do you have the necessary access permissions?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I want to access HTML code of sites like www.yahoo.com through C# application to collect some info ! how can i do this?!
thanks
|
|
|
|
|