|
yes you can.
But you need to create your own TableStyle. In fact you can add as many columns as you wish, the constraint being MappingName property of the TextboxColumn should match a column name.
|
|
|
|
|
Wanted to know the benifits of having an MCAD certification
|
|
|
|
|
|
For me, having an MCAD and MCSD has helped me to get my foot in the door at a few places that I have worked. If you are a contractor, it can also help to justify a nice high payrate
I had a manager once that said that he would definately keep someone's resume with a certification over one without, but that it would not be a deciding factor over two people that were interviewing.
Steve Maier, MCSD MCAD
|
|
|
|
|
The major benefits from my point of view is the study process that you make to be qualified to certification
which will make you more informative than before
MCAD
|
|
|
|
|
Hello
I have one grid, but it has columns that polling info from two different tables, what is the best way to do it?
Thank you
|
|
|
|
|
I guess the best way to do it is to combine the data from the two tables into one using a join in the query used to retrieve it. And then you can bind the dataTable to the Grid.
Elvis (a.k.a Azerax)
Life is Music listen to it before it fades
|
|
|
|
|
Hi,
I want to print a report using Crystalreportviewer. I have used
Crystalreportviewer1.PrintReport();
for printing the report. Print Dialog box opens, here I want to set Paper Orientation to "Landscape" by default, and want to check whether the printout is taken by clicking Ok button or the printing is quited by clicking Cancel Button.
Struggling a lot here...........
Please Help...
Regards,
Ashwini
|
|
|
|
|
How to remove the close button from a form.
|
|
|
|
|
this.Closing += new System.ComponentModel.CancelEventHandler(this.FormClosing);
private void FormClosing(object sender, System.ComponentModel.CancelEventArgs e)
{
if(/*some condition not satisfied*/)
{
e.Cancel = true;
}
}
|
|
|
|
|
Hi,
I am trying to build a program that to monitor com + applications.
In below,is my program:
COMSVCSLib.IGetAppData appData = null;
//declare a variable of IGetAppData
Type typ = Type.GetTypeFromProgID("COMSVCS.TrackerServer", true);
appData = (COMSVCSLib.IGetAppData)Activator.CreateInstance(typ);
// create COMSVCS.TrackerServer in appData
System.IntPtr aAppData = new IntPtr(0) ;
uint n;
// when i run the code bellow, the compiler emit the follow message "A null reference pointer was passed to the stub."
appData.GetApps(out n,aAppData);
anyone can help me?
Glauco Alves
|
|
|
|
|
I've trying to get MX records for a domain using c#. Below given code (taken from MSDN) works fine for me, when having direct internet connection:
------------------------------------------------------------------------------
IPHostEntry hostInfo = Dns.Resolve(hostString);
// Get the IP address list that resolves to the host names contained in the
// Alias property.
IPAddress[] address = hostInfo.AddressList;
// Get the alias names of the addresses in the IP address list.
String[] alias = hostInfo.Aliases;
Console.WriteLine("Host name : " + hostInfo.HostName);
Console.WriteLine("\nAliases : ");
for(int index=0; index < alias.Length; index++) {
Console.WriteLine(alias[index]);
}
Console.WriteLine("\nIP Address list :");
for(int index=0; index < address.Length; index++) {
Console.WriteLine(address[index]);
}
------------------------------------------------------------------------------
However, the same piece of code fails to work when I'm connecting to Internet through a Proxy Server and Socks5 authentication. Below mentioned error was received:
------------------------------------------------------------------------------
The requested name is valid, but no data of the requested type was found
------------------------------------------------------------------------------
Since C# Sockets doesn't support proxy, I'm using socket class provided by mentalis.org. I'm able to connect to the Proxy server but when trying to connect to a domain such as yahoo.com on port number 53 (default) I'm receiving "General SOCKS server failure.". I wonder what might be causing this error.
Org.Mentalis.Network.ProxySocket.ProxySocket s = new Org.Mentalis.Network.ProxySocket.ProxySocket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
// set the proxy settings
s.ProxyEndPoint = new IPEndPoint(IPAddress.Parse("192.168.0.1"), 1090);
s.ProxyUser = "<username>";
s.ProxyPass = "<password>";
s.ProxyType = ProxyTypes.Socks5;
s.Connect("yahoo.com", 53);*** Immediately after this line I'm receiving this error.
If I try to connect to port number 80, then everything is working fine and I'm able to send & receive data.
Could anyone point out where I'm going wrong. Any help would be greatly appreciated. Thank You.
Keshav
keshavcn@yahoo.com
|
|
|
|
|
Hi,
I have a query (sql2000) that uses the COMPUTE clause. This query returns 2 resultsets. (The normal select and the set create by the COMPUTE clause,
How do I pick this up with C# ?
Regards
|
|
|
|
|
If you get the result into a dataset, the set will contain two tables.
If you use a datareader, use the NextResult method to move on to the next resultset.
---
b { font-weight: normal; }
|
|
|
|
|
Great, and then the tables are selected by the index I guess ?
|
|
|
|
|
Yes.
---
b { font-weight: normal; }
|
|
|
|
|
hi dudes;
how are you all ?
when i open my application which is consisting of listbox and button to add values in the listbox but normally when i close the application and reopen it again it gives me new listbox with nothing included inside it that is because every time the application starts the initialize components method create new instance of the listbox that is fine .
but what about if i need to store these values one time and every time i open my application the values still exist ? any help about this the same as the download accelerator as much as the files you download they stored in listbox in the application and if you close the application and reopen it again you can see the values inside the listbox of the downloaded files ? any help to do the same ?
Thanks alot.
Miss With The Best And Die Like The Rest
|
|
|
|
|
snouto wrote:
need to store these values one time
Store them to a file in the Closing-EventHandler of the form,
read them from the file in the form's Load-EventHandler.
<br />
private void MainForm_Load(object sender, System.EventArgs e) {<br />
ReadInitialValue();<br />
}<br />
<br />
private void MainForm_Closing(object sender, System.EventArgs e) {<br />
SaveInitialValues();<br />
}<br />
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
check this useful link
http://www.codeproject.com/csharp/PersistentDataStructures.asp
|
|
|
|
|
|
Hello gurus,
I'd like to know how to cancel the Closing event?
I mean, when the user click on the close button of the main window, I ask him if he wants to quit via the MessageBox class. If he answers no or cancel, the window does not close.
Can someone show me a code snippet please?
Thanks for the help.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Cancelling the closing of a form is quite simple and can be implemented as follows:
protected void Form1_Cancel (Object sender, CancelEventArgs e) {
if (!myDataIsSaved) {
e.Cancel = true;
MessageBox.Show("You must save first.");
}
else {
e.Cancel = false;
MessageBox.Show("Goodbye.");
}
}
Elvis (a.k.a. Azerax)
Life is Music listen to it before it fades
|
|
|
|
|
ok this works
thanks
There is no spoon.
|
|
|
|
|
Hi,
I am using a database. And return the data to a DataSet dsPlayers. Some players have a birthday, which is a DateTime field, and some do not. These have no value so it says <null>. I want to put their birthday to a DateTimePicker dtpBirthday, but when it is <null> I want to give the DateTimePicker the value DateTime.Now.
I have the following code, which is noit working for me.
<br />
if (dsPlayer.Players[0].BirthDay.ToString() == null)<br />
{<br />
dtpBirthday.Value = DateTime.Now;<br />
}<br />
else<br />
{<br />
dtpBirthday.Value = dsPlayer.Players[0].BirthDay;<br />
}<br />
What is the best way to make this if statement?
|
|
|
|
|
You can use the method IsNull of the DataRow class to check if the value in a cell is DBNull.
---
b { font-weight: normal; }
|
|
|
|