|
this is the generated code in designer
this.monthCalendar1.Location = new System.Drawing.Point(305, 91);
this.monthCalendar1.Name = "monthCalendar1";
this.monthCalendar1.TabIndex = 3;
this.monthCalendar1.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar1_DateChanged);
and this is the method that opens up the new form
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
new Form2().ShowDialog();
}
|
|
|
|
|
|
Hi all,
I would like to get the following:
I need to save the SQL statement to a file after performing the Dataadapter.Save(ds,commands...) operation.
How can I get on RUNTIME the actual sql staements that were being executed?
I have tried using the QueryBuilder, but did not help...
Any help will be appreciated!!!!!!
|
|
|
|
|
I try to use SciLexer.dll by looking from vb example (SciTry.vb):
private static IntPtr sci;
public static void LoadSci(Module m, IntPtr hWnd)
{
IntPtr resVal = LoadLibrary("SciLexer.dll");
sci = CreateWindowEx(WS_EX_CLIENTEDGE, "Scintilla",
"TEST", WS_CHILD Or WS_VISIBLE, 0, 0, 200, 200,
hWnd, 0, m, 0);
}
it's not work. Then I create breakpoint on this function, resVal have some values, but sci = 0. Is this mean "CreateWindowEx" failed?
thank's
|
|
|
|
|
You are probably better off visiting the Scintilla website and looking there.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
asugix wrote: Is this mean "CreateWindowEx" failed?
They hide that information in the documentation[^]
Good luck, you're going to need it.
led mike
|
|
|
|
|
thank's for link. That sure answer my question. So that my "createWindowsEx" failed. But I don't know why
|
|
|
|
|
Good Afternoon All
In VB.NET i used to have a Module. I need to Call the Main Form when the login is successfully. So this is what i deed in C# so Far in a Class, Can someone Help me on this in C#. Becaues C# does not have Modules.
using System;
using System.Collections.Generic;
using System.Text;
namespace SystemAdmin
{
class Startup
{
public void Main()
{
bool loggedIn;
frmLogin frmlogin = new frmLogin();
loggedIn = (frmlogin.ShowDialog() == DialogResult.OK);
if (loggedIn)
{
Application.Run(new frmmain());
}
}
}
}
And my Login Screen Login button is like this
String strusername = txtusername.Text;
String Password = txtpassword.Text;
int bl ;
bl = obj.Check_Login(strusername, strPassword);
if (bl == 1)
{
Me.DialogResult = Windows.Forms.DialogResult.OK;
}
else
{
MessageBox.Show("Invalid Login");
}
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
What's wrong then?? I read you code briefly but it looks fine to me...
|
|
|
|
|
The c# equivalent to Modules in VB are the static classes.
|
|
|
|
|
you need to change ...
Vuyiswa Maseko wrote: if (bl == 1)
{
Me.DialogResult = Windows.Forms.DialogResult.OK;
}
to
if (bl == 1)
{
Me.DialogResult = Windows.Forms.DialogResult.OK;
this.close();
}
as you are not closing the form so the main function can't carry on....
|
|
|
|
|
Thank you
Resolved
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hello everyone,
I am developing an assembly class library (DLL) and an application is using it. I made strong name sign to the DLL.
The current issue is,
- The application is built with stong name signed DLL version 1;
- When I upgrade GAC to uninstall version 1 DLL and install new version 2 DLL, and run the application again (without making the application built again with version 2 DLL), the application will crash.
Is there some solution which could make the client application automatically use the lastest version DLL without rebuild the client application? I did not change any exposed interface of the class library (I just changed some internal implementation) and I do not want to make client application rebuild to make things easier.
thanks in advance,
George
|
|
|
|
|
|
Sorry for any inconveniencet, Pete.
I think it is similar but not be the same question. It is fine we could discuss from the old one as you pointed out.
regards,
George
|
|
|
|
|
You could always try doing your own research.
Follow the bread crumbs...
Assembly Versioning[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: You could always try doing your own research.
This is how he does his research. One possibility is, he's a psych student writing a thesis about online communities.
led mike
|
|
|
|
|
I am not but I know you are good at C# and C++. And a nice guy like forum.
regards,
George
|
|
|
|
|
This has been said until blue in the face, to the point I have personally stopped even bothering answering his questions.
|
|
|
|
|
I am sorry for any inconvenience, I hope you are recovered.
have a nice day,
George
|
|
|
|
|
Thanks Mark!
You mean using binding redirection or publisher policy to solve this issue?
regards,
George
|
|
|
|
|
|
Hi Mark,
The issue of binding redirection solution is, it needs to change client side app.config file. My confusion is, if we update some component, like a DLL, we can feel free to change anything about the component itself, but if we change the app.config for other component (e.g. the client who is using the DLL) is not good. Any comments?
regards,
George
|
|
|
|
|
Hi there,
I'm trying to Select All text in a text box and set to cursor position to 0.
I've tryed a few things including :
this.textBox1.SelectionStart = this.textBox1.Text.Length;
this.textBox1.SelectAll();
however this sets the cursor position to the end of the Text.
Any ideas?
Thanks
Jon
|
|
|
|
|
Try setting the SelectionStart property to 0.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|