|
Not from that code - if I paste it in and hook up the event then it does what I expect. Shows the box, press Yes and it exits. Press No and it doesn't.
Check that you are executing the right code: put a breakpoint on the if line, and see if the debugger hits it.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Sometimes when I have an issue like this, I'll break it out. Store the result of the messagebox in a variable and stop at that point. You can see exactly what is happening each step.
What OriginalGriff said is the first step.
|
|
|
|
|
I'm pretty sure that OriginalGriff knew this. You replied to OG, and not to the OP - who won't be notified that there's been a reply to a reply.
|
|
|
|
|
the debugger does not hit anywhere and still working with strange way.
|
|
|
|
|
Then you need to start by looking at the button you press in the designer, and see where a click event is taking you. Because if the debugger isn't hitting the if condition, then it isn't executing that method...
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Is that btnLogout also the CancelButton of your form?
|
|
|
|
|
yes i had set it as cancel button simultaneously.
|
|
|
|
|
Then you must handle the Form Closing event, and set its Cancel property to true in case you do not want to close the form (in btnLogout_Click just do a this.Close()).
|
|
|
|
|
for the use that i want it i just make none the cancel button property that has the logout_click button
so i use only the command application.exit();
and when i press button logout and in messagebox NO then it stay in the form that i am at the same time
|
|
|
|
|
In his table with 1 column named 'Picture', Image data type, when you save the image successfully, but when the XTraReport intelligent display shows only the string column, but do not show columns Picture is, I wrote the following code to help you with you know, okay thanks in advance.
xrPictureBox1.DataBindings.Add("Image", DataSource, "Picture");
|
|
|
|
|
Who is this aimed at? Is this meant to be a question? I can't tell because there seems to be a lot of confusion there.
If it's a question about displaying pictures in XTraReport, the DevXpress forums will be your best source for an answer. Try looking here[^] and entering XTraReport Picture as your search criteria.
|
|
|
|
|
Me non not as a, helps me with, me to do.
|
|
|
|
|
What? I appreciate that English isn't your first language, but that sentence makes no sense to me.
|
|
|
|
|
I bind text data type is correct, but the wrong type of image. You see if that helps. The code I wrote is as follows:
Code in simpleButton4_Click
DataTable data = User.getInfo();
rptUser rpt = new rptUser();
rpt.DataSource = data;
rpt.BinData();
rpt.ShowPreview();
Code in xtrareport
public void BinData()
{
xrTableCell3.DataBindings.Add("Text", DataSource, "username");
xrTableCell4.DataBindings.Add("Text", DataSource, "full_name");
xrPictureBox1.DataBindings.Add("Image", DataSource, "img");
}
Please help me!
modified 2-Jul-13 2:37am.
|
|
|
|
|
Good Day
I have a C++ Dll that has the following functions
void DisplayError( HWND hDlg, WPARAM wParam )
HRESULT ValidateI2CDeviceEx( HWND hDlg, ULONG i2cBase, PULONG pAccessBytes )
BOOL ValidateSetValue( HWND hDlg, char *str )
BOOL ValidateIdxValue( HWND hDlg, char *str )
ULONG atox( LPSTR s )
EnableGroupBoxes( HWND hDlg )
LRESULT CALLBACK EM2800PropProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
LRESULT CALLBACK About( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
VOID DestroyEM2800Prop()
VOID InitEM2800Prop()
ATOM MyRegisterClass( HINSTANCE hInstance )
BOOL InitInstance( HINSTANCE hInstance, int nCmdShow )
int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
i would like to use this non-com dll in C# Link to DLL[]
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
|
Thanks that should do
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hello,
when I am using axWidowsmediaPlayer and Dispose it afterwards. I get memory leaks. The mediaplayer is dynamically created with each usage and after some time disposed. Every single instance stays in memory until the system crashes.
I need help here. Could't find anything useful on the net.
The exceptions when disposing are:
System.Runtime.InteropServices.InvalidComObjectException
"COM object that has been separated from its underlying RCW cannot be used"
I already posted my problem here:
http://www.codeproject.com/Questions/610465/MemoryplusLeaksplusinplusWindowplusMediaplusPlayer
It ist the same problem as this one:
http://www.codeproject.com/Questions/155836/Memory-Leaks-in-Window-Media-Player-c
Sinde there is no answert to that since 2011 I wanted to know is someone knows the answer.
Please help. I am running out of ideas. Thanks.
|
|
|
|
|
john00 wrote: ...is dynamically created with each usage... Every single instance stays in memory until the system crashes
Exactly that is the problem. Why don't you instantiate just one single instance, use it for all the files to be played, and then dispose of it correctly when you close your program?
The exception you show is just a consequence of the wrong code, not its cause.
|
|
|
|
|
I have to do it like that because I want to play more than one video at the same time and want to be able to use the form to show pictures without video
|
|
|
|
|
I am new to C#, so any one can help me to understand the => operator in C# or give me some resource on this.
Thanks in advanced.
|
|
|
|
|
This (=>) is called the Lambda operator.
This will help you generate lambda expressions.
You specify input parameters (if any) on the left side of the lambda operator =>, and you put the expression or statement block on the other side.
For example, the lambda expression x => x * x specifies a parameter that’s named x and returns the value of x squared.
|
|
|
|
|
Thanks Abhinav S so much!
|
|
|
|
|
The => operator in C# is for an example
if your int is equals or more then the other int.
I hope this help
//XoulsZ
|
|
|
|
|
No, that's wrong. Let me tell you: => != >= !
|
|
|
|