|
i know about binding but how about bind to a view?
sepel
|
|
|
|
|
Works the same as binding to a table
|
|
|
|
|
sepel wrote: how about bind to a view?
READ THE FREAKING DOCUMENTATION AND STOP TYPING INTO INTERNET FORUMS!!!!!!!!
Oh, and have a nice day.
led mike
|
|
|
|
|
led mike wrote: You should learn how Data Binding works.
you took the words right out of my mouth.... This is far to genral a question,
|
|
|
|
|
Hi,
I'm calling a web service method from an application with no problems. However, when there are network problems (ie the Web Service can;t be reached), the method "timeout" is too long and the application hangs for about a minute, before giving the error that the server could not reached or does not exist. Is there any way I can prevent this behaviour? Maybe by reducing the timeout?
Thanks in advance,
Daniel
|
|
|
|
|
Hi,
I am working in a project where we need to store some data of the position of some points. This data is received with a freqüency of 100Hz, and each point is part of a movement. The two problems related with that is that the length of the movement is not known (variable amount of time to store the movement = array of positions), and that we are "free" to store the information as we want.
Is there any method relatively easy to use to store that position information for posterior processing? It is: to add information with time, with a variable amount of time (variable size of the array of positions) in C#? Methods/technique name so I can focus my research? Any guess?
Thank you!
|
|
|
|
|
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
|
|
|
|