|
TaSsl wrote: Methods/technique name so I can focus my research? Any guess?
Sure, search for Collections or Containers. Good luck with your school assignment.
led mike
|
|
|
|
|
How can I disable the Print button when PrintPreivewDialog window is opened. It's built in with PrintPreviewDialog and I couldn't find any way to do it. Does anybody know how to do it.
Thanks
|
|
|
|
|
Hi All
i have a calendar on one form and i have a schedule on another form. When a use clicks on a date on the calendar or dobule clicks it i want it to open the Schedule form.
Does any one know how to do this ?
Thanks in advance
|
|
|
|
|
add an event handler to the double clikc on the date time form then in the event handler open the form and pass what ever parameters you want to
|
|
|
|
|
I have tried that but no luck.
Thanks
|
|
|
|
|
Can you post the code that you used?
Did you get an exception when you tried it? If yes, please post the message here
|
|
|
|
|
I am trying to write the code but i don`t know what to write. Im very new at c#.
|
|
|
|
|
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
|
|
|
|