|
Why create it as an application at all? Why not create a Windows service instead?
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
As i mentioned in my article i just created a console application which logs my documents history activities. so please understand, why i required a windows apllication? since i dont need to any interaction!
thanks dear.
so much of happy ending...
|
|
|
|
|
Sorry but you just don't have a clue.
Neither a .Net windows application or a windows service must have a GUI. For the latter its even the common scenario not having any GUI.
Just make a new windows application in Visual Studio, remove the Form and alter the Main method to make what you want. The result will be a program without any GUI or console.
Robert
|
|
|
|
|
Robert Rohde wrote: Sorry but you just don't have a clue.
I think the OP keeps calling his posts "articles".
Robert Rohde wrote: Just make a new windows application in Visual Studio, remove the Form and alter the Main method to make what you want. The result will be a program without any GUI or console.
A lot less coding, I may add. No having to call an external function from a .dll to ShowWindow, etc.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
i have mentioned about an windows console application. i hope you understand my article.
so much of happy ending...
|
|
|
|
|
Please re-read my OP - I suggested a windows SERVICE, not a GUI based or console app.
Introduction to Windows Service Applications[^]
From the article:
Microsoft Windows services, formerly known as NT services, enable you to create long-running executable applications that run in their own Windows sessions. These services can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface.
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
its just a windows console application,
which logs my current documents and other activities into a text file.
its works fine currently.
now i want add a new task on this console application, thats mail service. it will capture all log contents in the log file or there will be another way.
so mails send to another person automatically on a regular time on specified.
if u have any ideas on this pls help me.
thanks
so much of happy ending...
|
|
|
|
|
Please help me my homework.
Hello
|
|
|
|
|
|
I'd say that's a troll.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Christian Graus wrote: I'd say that's a troll.
I suspect it could be, hence not feeding it...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Paul Conrad wrote: hence not feeding it...
except to the tame tiger.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
guys two days ago asked a simple question simple seems to me coz me new to C# here there may be experts
the questions is i have made form where i placed a textbox and a button and in sql i made a table when i enter something in the textbox and click ok the data must be saved in the table for thtat
i need a code for this i tried a lot on searching but vain any one here
sas ![Rose | [Rose]](https://www.codeproject.com/script/Forums/Images/rose.gif)
|
|
|
|
|
sajid.salim.khan wrote: i need a code for this i tried a lot on searching but vain any one here
You haven't been able to find any articles on the internet on saving data to a database using C#? You can't have been looking very hard then.
You haven't said what database system you are using. If it is SQL Server, a Google search will throw up plenty of examples.
No one is going to write your code for you. You should research the problem and write it yourself.
Paul
|
|
|
|
|
Hi guys,
I'm developing a C# Windows application which makes a HTTP POST for uploading a file from the local system to the remote web server. I need to show the progress of uploading (ie. No of bytes uploaded and time remaining) in a progress bar of the Windows application. Can you guys please help me how to get the progress information of the HTTP POST.
Thanks in advance.
Param
|
|
|
|
|
Usually this is achieved by sending a predetermined number of bytes at a time in chunks and reported back to the user how many of the bytes have been sent and how long it has taken the whole operation to execute.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
So, do you mean to say that I must send segments of predefined number of bytes and I've to reassemble the segments at the remote server? Any other alternatives? Does the .NET HTTP Request class contain any parameter to report the number of bytes sent or is there any event triggered to report the same?
Param
|
|
|
|
|
I have not seen anything that tells you how many bytes have been sent. The solution I have mentioned is the only one I know of. Maybe someone else will come along with other ideas.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi all,
I am currently involved in a school assignment in which I have to use DrScheme together with C#. I know how to invoke a Scheme function from C# via calls through the MysterX library. The library also allows events to invoke on COM classes and components, but the only example I can find are Microsoft-defined COM classes, like ADOConnection.
Is it possible for DrScheme, via MysterX, to invoke a C# program's methods? (Is a C# program considered a COM class?) I have hunted high and low everywhere but couldn't find an example at all.
Note: It's not a requirement of the assignment to do this; it's just that our group, for some added functionality, wants to use Scheme for scripting, much like Scheme for GIMP, but the documentation is really sparse and there are no examples. If I can just get one example of calling a method in a C# program from Scheme with MysterX then I believe I can figure out the rest myself
Thanks in advance!
|
|
|
|
|
Not sure, I've never worked with DrScheme. Have you asked your teacher?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I'm using Visual Studio 2005 and have a Form with a MaskedTextBox.
In the Property Grid, i set AsciiOnly to true. All other properties
are unchanged. Despite that, when I run the program, the MaskedTextBox
still accepts numerals and commas, etc... To my knoledge when the AsciiOnly
is set to true, the MaskedTextBox is supposed to restrict input to only A-Z and a-z.
It appears that the AsciiOnly property is not working.
Am I missing something here?
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|
|
Paul Chin PC wrote: "We are disturbed not by events, but by the views which we take of them."
MSDN says: MaskedTextBox.AsciiOnly gets or sets a value indicating whether the
MaskedTextBox control accepts characters outside of the ASCII character set.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Yes, I already know that.
MSDN also says:
"If true, AsciiOnly restricts user input to the characters a-z and A-Z. ASCII control characters are not allowed. "
But it doesn't work. When I set the Property to AsciiOnly, the MaskedTextBox still
accepts characters other than a-z and A-Z. For example, it accepts comma (,), period (.),
numerals (1-9) etc...
Try it and see!
Is this a bug in .NET 2.0?
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|
|
The MSDN statement "If true, AsciiOnly restricts user input to the characters a-z and A-Z.
ASCII control characters are not allowed" is wrong. If it were true, the property should
have been called AsciiLettersOnly.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Yes, apparently that is so.
What is the use of having the AsciiOnly property?
It appears to be redundant and non-functional.
Could you provide a scenario or example of how to use this property?
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|