|
Hi,
My application has no form it runs in a backgroud, so the Sendmessage command didn't help me, it send the command to the main form of the application but i don't have one!
There is several option to run an application without a window for example:
Putting the application in the startup of the computer
Thanks,
|
|
|
|
|
Hi,
you could add a window (possibly invisible) to your app and have it receive messages
(if necessary, by overriding WndProc).
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
My application has a window, but when I put the application in the startup of the computer it run without a woindow
Thanks,
|
|
|
|
|
You could send a signal from an app to your running windowless program, e.g. by using
a named mutex.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Take a look at .NET remoting. This will allow you to communicate from one application to another, regardless as to whether or not either has a window.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how i can understand that , which website(url) was opened in computer?
or
which website(url) is opene in computer now
maysam_mici @yahoo.com
thanks.
maysasm_mici@yahoo.com
|
|
|
|
|
The model of communicating with a website is extremely ephemeral. The browser makes a request and opens a connection to the server and the page is sent back. Once the browser has the page the connection is closed. You could create some sort of socket that operates in promiscuous mode (but I think that kind of thing was curtailed in XP SP2) and monitor the internet traffic as it goes past.
|
|
|
|
|
HI,
i'm using this method to get the tables names
but it's seems to come back empty
how do i use this method properly?
Have Fun
Never forget it
|
|
|
|
|
First of all you create an object of DataTable, because GetSchema() returns a DataTable.
DataTable objDataTable = new DataTable();
objDataTable = dbConnection.GetSchema();
GetSchema() returns a DataTable (MetaDataCollections) that contains three columns with the following headings:
1 - CollectionName
2 - NumberOfRestrictions
3 - NumberOfIdentifierParts
This table contains 16 rows. CollectionName (Column 0) contains the following data:
MetaDataCollections
DataSourceInformation
DataTypes
Restrictions
ReservedWords
Users
Databases
Tables
Columns
Views
ViewColumns
ProcedureParameters
Procedures
ForeignKeys
IndexColumns
Indexes
If you wants to get the information of databases, you use the following code:
objDataTable = dbConnection.GetSchema("Databases");
In above code GetSchema() take one parameter CollectionName of string type.
If you wants to get the information of tables, you use the following code:
objDataTable = dbConnection.GetSchema("Tables");
|
|
|
|
|
|
Currently I'm developing a C# winforms application which pulls data from an SQL server. The problem is that I have many forms (~10) and creating an instance of a dataset for every form will consume a lot of memory. So I was wondering if anyone could tell me what are pros and cons of using global dataset instance as opposed to local (where each form has its own instance).
Thank you
Niaher
|
|
|
|
|
I suspect you are experiencing a fundamental misunderstanding about application development. Unless your 10 forms are all visible at once, you won't have 10 datasets in memory at all. Most likely, your app is pulling data from a SQL Server DB that other users are accessing ? In that case, it's always best to be working on up to date data. There should be a data layer that's used globally, but not an actual global dataset that contains data.
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 )
|
|
|
|
|
Thank you.
Probably all I need is a lot more reading on design patterns .
|
|
|
|
|
No, this has nothing to do with design patterns. I did mention some stuff to do with n-tiered development ( I'm giving you a term you can google here ), but the core thing is, members of your forms do not exist unless the form exists.
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 )
|
|
|
|
|
I think it's more along the line of "Think of the poor guy who inherit the system"
1. He may need to add fields etc later, and break 9 of the form, or spend more time not to break them.
2. In order to not break the other form, he may add another global dataset.
3. Then another guy who inherit it, see the 2 global dataset with similar data, he either has to make sure it doesn't break anything, or add something in the dataset, break something, and spend more time fixing the rest.
I have seen it in one of the application in my previous company, and I was unfortunately the Nth guy.
Keep the dataset to each form or business object, and keep the problems localized.
|
|
|
|
|
Hi Experts, I want to build free program that simply converts RTF fromt to HTML fomrat. Firstly, I want to have the following functionality like Bold, Italics, and underline. How do I do this startup. Is it better to concentrate on Regular expression or any windows call. Is there any other things i need to be carefull about.
Thanks in advance for ur input.
|
|
|
|
|
Regex does seem like an obvious way to parse your text. Another thought - I suspect Word does this for free, what's your application, can it require Word to be installed ?
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 )
|
|
|
|
|
I don't want to rely on microsoft Word howerver, i want my solution to be independant.
|
|
|
|
|
yeah even i want to convert both english,chinese from rtf to html with bold,italics and underline formats...
kindly help me on this issue..
|
|
|
|
|
Hi netJP12L,
The RTF Converter[^] includes the conversion from RTF to HTML.
Cheers,
Jani
|
|
|
|
|
A bit of somewhat relevant info: I play Need for Speed Hot Pursuit 2 and I'm making an easy way to modify the car's data. I have a ComboBox on the form and when the form loads I want it to read the content of the game's "Cars" folder. So basically what I'm looking for is the C# equivalent of PHP's glob function to get a list of folders in the "Cars" folder.
|
|
|
|
|
That's what Directory.GetDirectories() is for.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Go away Murphy's Law! About a minute ago I figured out how to get sub_directories.
Thanks.
|
|
|
|
|
Hi All
Is declaring a Variable using static public int aVariable = 0; the same as using public static int aVariable = 0;
and if not why is this so.
Equally if they are are the same why the two formats.
Thanks
James
|
|
|
|
|
There's no difference. It's not really two formats. In the specification of the language, there are just no rules regarding the order that you can specify certain combinations of modifiers/accessors.
David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
C++ to C++/CLI Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: converts C# to C++/CLI and VB to C++/CLI
|
|
|
|