|
how can i add a midi file in my csharp project?
*.mid
|
|
|
|
|
Add it where? In the resources at build time, or in the memory at execution time?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
I think Richard gave you a good hint - resource file...
|
|
|
|
|
In fact i want to know within my computer which drive is a cool disk?
|
|
|
|
|
faraz34 wrote: which drive is a cool disk
The one with the sunglasses?
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
|
|
|
|
|
ok i implement your advice, from now on i will never argue with an idiot, and i ask my question fron a polite expert.
|
|
|
|
|
Instead of being abusive try asking a sensible question.
faraz34 wrote: i want to know within my computer which drive is a cool disk?
What does this mean cool disk? How are we expected to know what is configured in your computer?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Yet it is well understood that nothing to do with computers is cool.
|
|
|
|
|
PIEBALDconsult wrote: nothing to do with computers is cool
Well apparently there are "cool drives"... so maybe computers are coming back into being cool. Next thing you know we will have cool motherboards. I live in a hot climate so maybe a cool mouse would help.
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: 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
|
|
|
|