|
As far as I understood from problem, the simple answer is to fire a delete query on the database with where condition.
Befroe that you can get the row items by trapping the cell clicked event.
it will give you the row number and from its items list you can build the quesry.
Hope this helps
|
|
|
|
|
Hi
my be I can imagine you database Schema !!
assume that you have a table like this
Table Name = Table1
Table Fields
Name | Age | Home
----------------------------
stark | 25 | MyHome
sonya | 21 | HerHome
if you want to delete "stark , 25 , MyHome"
then you have to write an Sql Query like this
Delete from Table1 Where Name = 'Stark' and Age = '25' And Home = 'MyHome'
P.S
the best Schema for your table should be , like this
ID | Name | Age | Home
----------------------------
1 | stark | 25 | MyHome
2 | sonya | 21 | HerHome
then your query will be like this
Delete from Table1 Where ID = '1'
hope this will help .... if my answer was going far from you Question .. Just let me know , I still have more ideas to help you
Have Good day
I know nothing , I know nothing
|
|
|
|
|
Regarding System:Windows:Forms:MenuItem
The Click event is not raised for MenuItems which contain a submenu -- see Note in the Remarks section of MSDN documentation. Has anyone found a way to override this? Does anyone have an explanation for this feature?
Rick Bidlack
www.signalsandnoises.com
|
|
|
|
|
Rick Bidlack wrote: Has anyone found a way to override this?
This is not an override, but a well documented API:
The following events may be of interest:
* DropDownOpened
* DropDownOpening
* DropDownClosed
* DropDownItemClicked
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Hi to everyone, i want to use a textbox and write in some debug message during the execution of my program.
My problem is when i use this->textbox->AppendText("text to append") i don't known how go to next line.
With old printf for c-like syntax i use "\n" but in my case if i use it, it goes to the next line but i see a little square at the end of the line.
Another thing...what is when i declare a string the letter L at the begin?
String^ v=L"Succeeded..";
Thanks for answers,regards.
|
|
|
|
|
Append Environment.NewLine to the text.
|
|
|
|
|
Also make sure that you set your textbox to multiline.
|
|
|
|
|
I have previously only used data binding in grids and lists, but now I wish to extend an application to enable the user to double click a list item to edit it. I would like some suggestions or pointers on how to get started on this. Most documentation I've come across only addresses grids etc.
|
|
|
|
|
Hi to everyone, i've a window form project in visual c++.
I want to put a while loop in a button click method(to see in a picture box some images taken from a memory buffer and every loop i refresh the picturebox) but this is the problem when i execute the project:
when i click on the button and enter the loop i can't do anything with the other controls of the form. Any suggestions how to resolve my problem?
Thanks for answers in advance, regards.
|
|
|
|
|
I don't know what the command is in c++ but in .net it is Application.DoEvents(); So there must be something similar, but I am not sure what it is.
Ben
|
|
|
|
|
Thank yuo very much. I try and works.
this is msdn for c++
Application.DoEvents Method
Processes all Windows messages currently in the message queue.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
SyntaxSyntax
C++
public:
static void DoEvents ()
|
|
|
|
|
I wud suggest you to put it on different thread itself
|
|
|
|
|
Win XP Pro, VS 2005 SP1
Just had a strange Data Execution Prevention error after upgrading my ClickOnce app. Then Explorer crashed with a memory corruption error and non-killable dialog box. I eventually killed it on the Process tab in Task Manager. Task bar and icons all went. Logged off and on and everything was back to normal. Ran the ClickOnce app. and it worked. Has anyone else experienced this? Or was it just coincidence.
Previous ClickOnce upgrades had been OK. The only difference is that with this one Visual Studio had not auto-incremented the version number initially. So I had to manually increment it before publishing.
Kevin
|
|
|
|
|
I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?
|
|
|
|
|
|
I have created a Serializable class named "Student".
[Serializable]
public class Student
{
}
Also created a custom user control.
then i used the list<student> in the custom user control.
public class myControl : UserControl
{
List<student> students;
public List<student> Students
{
set
{
students = value;
}
get
{
return students;
}
}
}
the controls is performing exact and there is no any compilation error.
but if i use this control on any form then designer view of that form vanished out and display this error.
Object of type 'System.Collections.Generic.List`1[WindowsControlLibrary1.Student]' cannot be converted to type 'System.Collections.Generic.List`1[WindowsControlLibrary1.Student]'.
Kindly help that why the designer view of this form vanished out.
|
|
|
|
|
I have a example.htm page I would like to be visible after windows XP have been locked, using Cttl-Alt-Del. There seem to be limitations on the file type that can be used, mainly pictures.
My htm document allows the display of live information from a server as a front end only, with no interactive access, which is what is required. But when the screen is locked or times-out after 5 mins and locks out I loose the display. The screen reverts back to the last know picture used or shows a blank page
I'm struggling as to where to look next for ideas, any help would be much appreciated.
|
|
|
|
|
It is just my opinion, but I don't think it can be done. When the computer is locked, pretty much most things get locked down. I would think your best bet would be to create a screen saver and display the info you want with the screen saver.
Ben
|
|
|
|
|
I've been looking at screensavers, but need an application that only looks at local computer files and links set by admin rights only. The application can not have any option to connect to the internet or intranet as this causes security issues.
|
|
|
|
|
Hai
I am new to WinForms how to close Form1 when I moved to Form2 in a button click...
try until u succeed
|
|
|
|
|
at the buttin click event create an instance of current form and the form u want open..try sumthing like this
At button click event:
currentform form1=new currentform();
formToOpen form2=new formToOpen();
form1.hide();
form2.show();
bye
|
|
|
|
|
Rahul83 wrote: currentform form1=new currentform();
I'm sorry, but that plain will not work. It creates a new Form1, which will have no bearing on the one that is visible.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can call Hide() to hide the visible form, and then show form2 using ShowDialog() if you want a modal form ( I presume you do, why would you want a modeless form attached to an invisible form ? )
A better approach is to define both forms as user controls and put them on the one form, and just swap which one is visible.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm always nervous about the new technology becoming the next VB6. So what is the future for a new app being developed with Winforms and C#? I can see a long upgrade path for this product and I have no interest in making a radical UI change anytime soon. Sure, I know about WPF, but the timing isn't right for my use of that platform.
|
|
|
|
|
Well, VB6 was around for a fair while, and so has Winforms now been.
If you don't want to use WPF then WinForms is the only real option apart from C++/MFC ( which is kind of dead ). WPF is what will replace WinForms.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|