|
Wes Aday wrote: I live in a hot climate
Oh, do you? Anywhere near Tosche Station[^]?
|
|
|
|
|
PIEBALDconsult wrote: Tosche Station
Define "near"... A bit east and south. Passed through there on my way here.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Wes Aday wrote: A bit east and south
Then you're probably close enough.
|
|
|
|
|
I do not understand what you mean with "cool disk" - but maybe your native language is not English and that's some strange translation.
When you want to diffentiate between "hard disks" and "removable disks", you can use Windows Management Instrumentation (WMI). I am not sure if you can differentiate between "conventional" hard disks and "solid state disks" with WMI.
|
|
|
|
|
See the DriveInfo class to get information about drives on your system. Then see the DriveType property that reveals the type of drive (fixed, removable, etc).
/ravi
|
|
|
|
|
#include <QCheckBox>
#include <QMouseEvent>
class MyCheckBox : public QCheckBox
{
public:
void mousePressEvent(QMouseEvent *event);
};
void MyCheckBox::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
} else {
QCheckBox::mousePressEvent(event);
}
}
class MyWidget : public QWidget
{
public:
bool event(QEvent *event);
};
static const int MyCustomEventType = 1099;
class MyCustomEvent : public QEvent
{
public:
MyCustomEvent() : QEvent((QEvent::Type)MyCustomEventType) {}
};
bool MyWidget::event(QEvent *event)
{
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_Tab) {
return true;
}
} else if (event->type() == MyCustomEventType) {
MyCustomEvent *myEvent = static_cast<MyCustomEvent *>(event);
return true;
}
return QWidget::event(event);
}
int main()
{
}
|
|
|
|
|
Fist, this has absolutely nothing to do with C# and you failed to ask a question at all. Just posting a big code snippet tells us nothing.
Post your question in the Visual C++ Forum instead.
|
|
|
|
|
hi , i have html webpage and contains java script code
i want to send data from c# windows form which already have webbrowser control to display the page to html page to change values of java script variables
& i can display the html page in webbrowser control but it's static values
so i want to know how to transfer data between windows form & html page
|
|
|
|
|
|
mrx100 wrote: help,please
Patience. Just about everyone answering questions is a volunteer with their own lives and jobs. If someone can answer your question, they will.
Quite frankly I do not see how, as you have not posted any relevant code that would help anyone understand your problem and what you are trying to do.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
|
and the exception message would be ..... ?
That picture doesn't tell us anything at all.
|
|
|
|
|
Dave Kreskowiak wrote: That picture doesn't tell us anything at all.
But its worth a thousand words.
Failure is not an option; it's the default selection.
|
|
|
|
|
Thank you for your response David
Anyway,I rezolve the problem with SQLite removing this
<configSections>
</configSections>
from form.config (app.config)
But now, if I started this topic with this question, I want to know how I can make that my application (with database) become movable into another pc and the database can be opened by my application ?
|
|
|
|
|
You'd have to install the appropriate database engine on the target machine and copy over your application, and then register any libraries, blah, blah, blah...
The easier method is to make an installer for it.
|
|
|
|
|
amx_tiger wrote: The database is Sql Server Compact (.mdf).
Sql Server Compact/CE uses the .sdf file extension. Your database is not a Sql Compact database. Sqlite is also a very different database-format from Sql Server.
Show us the original ConnectionString ; I bet it points to an Sql Express version. You'd only need to change the servers' location, perhaps the login-information.
Bastard Programmer from Hell
|
|
|
|
|
The original ConnectionString is :
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True
Thank you
|
|
|
|
|
That means you're using Sql Express, not Compact or Sqlite. Is there a Sql Express server installed on that other computer? It won't work without it.
This connectionstring should work "as is", since it's pointing to the Sql Express version on the "same" machine. If you want to point to your original Sql Express database, then you'll have to replace the ".\SQLEXPRESS" with "MACHINENAME\SQLEXPRESS".
Bastard Programmer from Hell
|
|
|
|
|
Yes, I have installed SQL Express on my computer.
Thank you again
|
|
|
|
|
Actually I want to create c# application setup with Ms Access Database. How i create this type of setup.
|
|
|
|
|
Koushal Dosi wrote: I want to create c# application setup with Ms Access Database
No, I'm pretty sure you don't; you really want to use SQL Server Express.
|
|
|
|
|
Using an application that creates setups. You can choose from ClickOnce, InnoSetup, InstallShield and others.
Bastard Programmer from Hell
|
|
|
|
|
|
Hi,
When I tried to access a method of webservice, I got the below exception in my windows application(.net 3.5).
"Client found response content type of 'multipart/related; but expected 'text/xml'."
When I searched, I found the solutions for web applications using MTOM encoding in wsHttpBinding. How can I resolve this issue in windows application(without installing WSE)
Thanks in advance.
|
|
|
|
|