|
childEditQty.Parent references the frmMain so use that.
[edit] i.e. childSelectedQty.MdiParent = this.Parent;
or childSelectedQty.MdiParent = this.MdiParent; [/edit]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Hi there,
I am curious as to what "n products" are available? I know of nunit, ncover, and ndepend. I'm just curious.
Brendan
|
|
|
|
|
This isn't really a C# question is it? You should put this in the General forum or the Lounge.
|
|
|
|
|
Search for ALT.NET - All these products are from different places - there is no unified list of n-products. However, the products you mentioned are heavily used by the ALT.NET community.
|
|
|
|
|
This question is "n appropriate" here.
|
|
|
|
|
Hi, i got 2 list view on 1 form. the first list view shows the product name and the other listview show the supplier name.
the user have to first select a item from the product list view , then select another item from the supplier list view.
By now, both selected items should be highlighted.
When i press the ok button, i wan to know in product list box, what the user selected and in the supplier list box, what the user selected.
However when i select 1 item from product, then i select the other item from supplier, the product list view is being disselected
DataTable dt = new DataTable();
dt = pa.GetData();
foreach (DataRow rows in dt.Rows)
{
ListViewItem product = new ListViewItem();
product = listView1.Items.Add(Convert.ToString(rows["productID"]));
product.SubItems.Add(Convert.ToString(rows["name"]));
product.SubItems.Add(Convert.ToString(rows["modelNo"]));
}
DataTable dt1 = new DataTable();
dt1 = sa.GetData();
foreach (DataRow rows in dt1.Rows)
{
ListViewItem supplier = new ListViewItem();
supplier = listView2.Items.Add(Convert.ToString(rows["companyName"]));
supplier.SubItems.Add(Convert.ToString(rows["contactName"]));
}
|
|
|
|
|
Hi.
Try setting
ListView.HideSelection = false;
Kjetil
|
|
|
|
|
Can someone refer me to some good examples of c# coding related to electronics please? That is using c# coding combined with some electronic device for example some sort of switches.
|
|
|
|
|
How are your electronics connected to the computer?
Regards,
Rob Philpott.
|
|
|
|
|
Thats what one of the things that i want to learn. I want to learn more about the connection and communication between them.
|
|
|
|
|
Probably the easiest way to get things to light and up and detect switches etc is through USB HID. (Google it). Windows provides standard drivers for HID devices (like your mouse).
Regards,
Rob Philpott.
|
|
|
|
|
I saw a couple of nice articles here on CP. One was about controlling some LED's and the other was about an LCD display. I'll surely find them.
|
|
|
|
|
|
Hello everyone,
I have did quite a lot search but failed to fina how to using SSL (Https) to consume remote web services from client side and using ServerCertificateValidationCallback.
Does anyone have any documents or samples to make a reference?
thanks in advance,
George
|
|
|
|
|
What is the problem? Are you trying to access a HTTPS site without a valid certificate? If so, just return true from your RemoteCertificateValidationCallback (I assume you are using that class).
|
|
|
|
|
Thanks leppie,
My current issue is, I want to access a remote Web Services through https other than through http. In this case, I want to use server certificate, but not using the client certificate (one-directional authentication). And in my situation, simply accept all server certificate is fine, and I just need the traffic encryption feature of https.
But I can not find such samples both in my books and in the internet. So I come here for help. Do you have any documents or samples to make a reference?
regards,
George
|
|
|
|
|
Hi,
I am developing forums website...here I need to do code for rating an article in C#.anybody know plz reply me..
thanks
Raaj
|
|
|
|
|
It depends on the design of your overall system. There is no universal way to "rate an article" in C#.
I would imagine that you have some sort of data store that contains the article. You can have some sort of association with metadata which stored things like article ratings.
|
|
|
|
|
Yes there is...
Go to a book store, buy a book of C#. And please start reading it.
|
|
|
|
|
oh....good answere.thanks..If u dont know means,dont reply ok........
Raaj
|
|
|
|
|
Hi guys! Does anyone out there know how to help me about this issue? I want to have a button at my app where the user can check for a newer version. I already uploaded the app on a server, and in the publish properties everything is setup for checking for newer version, but how should I code a button for checking for updates? Thanks
|
|
|
|
|
Something like this should work:
...
ApplicationDeployment ad;
UpdateCheckInfo info;
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
{
ad = ApplicationDeployment.CurrentDeployment;
info = ad.CheckForDetailedUpdate();
if (!info.UpdateAvailable)
{
MessageBox.Show("No Update Available", "Update Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
bool doUpdate = true;
if (info.IsUpdateRequired)
MessageBox.Show("There is a required update available. Downloading now","Software Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
else
if (MessageBox.Show("A new Softwrae Update is Available. Download now?", "Software Updates", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
doUpdate = false;
if (doUpdate)
{
ad.Update();
MessageBox.Show("The Updates have been downloaded. Restaring application", "Upgrade Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
Application.Restart();
}
}
...
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all,
I would like to know whether the following would be wise or not:
Seeing that 'System.Threading.Thread.Suspend()' is obsolete, I want to create two threads and declare an enumeration to store some thread states (not referring to ThreadState). I.E:
public struct THREAD_STATUS
{
public int threadWorking;
public int threadSleeping;
}
When the one thread wants to do some processing, it first check the state of the other thread before proceeding. Should the state be in threadSleeping state the one thread puts the other one in a Suspend state and can continue processing, thus the following can be prevented:
A thread may be performing a system-wide-synchronized operation like locking a range of bytes in a file, writing to those bytes, unlocking those bytes, then closing the file. A thread is suspended before the unlock, that range of bytes will remain locked for an indeterminate amount of time until the thread is resumed or the process terminates
Will this be a good approach?
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: I want to create two threads and declare an enumeration to store some thread states (not referring to ThreadState). I.E:
why retype something thats already been written for you?
|
|
|
|
|
Well thank you for pointing that out. Now to get back to my question; is it a good approach?
Many thanks again...
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|