|
Are there any good tools for distributing a small c# app which would set up the .NET framework on a clientPC if needed?
Also, so much of Visual Studio seems focused on web development. Are writing desktop apps with c# a thriving concern, or would there be better tools out there?
Thanks!
John Held
|
|
|
|
|
In the past I have added a new project to my window app's, from the Other Project Types & Choose 'set up & deployment' type. This will create an .msi file & in here you can select pre-requisites like - checking for the .net framework.
Hope this helps,
Janet
|
|
|
|
|
|
Thanks so much Janet and Ben! Your info really helps!
John Held
|
|
|
|
|
John Held wrote: Are writing desktop apps with c# a thriving concern
Well, there seem to be quite a few jobs out there which ask for this. But I suspect that most of these are for corporate applications rather than the mass market. However, Microsoft have a number of such apps. floating around, e.g., XML Notepad, Paint .NET; and much of the UI parts of recent apps. are Win Forms based.
Kevin
|
|
|
|
|
i am using vb.net 2003.i am doing my project in vb.net windows application.
how do i remove selected row permanently from sql database through datagrid in vb.net windows form during runtime.
for example,
values are in datagrid like
name age rollno city
ramu 22 68 chennai
rajesh 23 70 cbe
kamal 21 52 salem
arun 25 04 trichy
here name,age,rollno,city are field name.now i want to remove selected row permanently from sql database through datagrid.In this datagrid,if i select "kamal" row(kamal,21,52,salem) means,that kamal row will remove permanently from sql database.how to do these.i want in vb.net windows application,not web application.plz help me.
|
|
|
|
|
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.
|
|
|
|