|
Thank you very much benjymous for the help.
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi there,
How do I fire the DropDown event of the DateTimePicker control?
I'd like to fire the event from another control.
Thanks,
J
|
|
|
|
|
i want to send a SMS to the pc thorugh infrared or bluetooth, which i received from some one. can any one tell me how do this ? i'm trying to do this,but i'm not an expert in this feild..
|
|
|
|
|
I'm not expert. But so far I know, if you are connected through infrared or bluetooth, then you get a new COM port. Just use class SerialPort to connect to this new COM port. Then you must go to the website of your mobile phone manufacturer. You can download API from support, how to receive / send SMS through PC. Just use that code.
|
|
|
|
|
Hello everybody!
I'm having a project:"Comunication between 2 PC by RS232(COM)".
I have not yet source code about this project!
I've just need a program in which I can comunicate between 2 PC by RS232 (send file or chat).So if everybody here have source code or a program about my project,please share it to me! Thanks very much!
Thanks for reading my message!
Regards,
|
|
|
|
|
I'm thinking, would it not be easier if we just sent you our paychecks directly? Saves all this messing around finding projects.
|
|
|
|
|
|
Thanks stancrm!
but download file on website you give to me is:communication with LCD device.
I need :"Commuication RS232".I think that program can't help me!
|
|
|
|
|
Hi All,
Prerequisites:
* VC#.NET and GDI+.
* Windows forms.
* A rectangle is drawn on the form along with rect tracker.
Problem:
How to rotate rect and rect tracker?
|
|
|
|
|
Hint:
Take a look at classes in System.Drawing.Drawing2D namespace, namely Matrix class.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Write some code in C# that rotates the rectangle and tracker. Sheesh, come on. We don't write your code for you - if you want that try rentacoder.com. Write some code and if it doesn't work, show it to us so that we know that you've at least tried for yourself.
|
|
|
|
|
I have not asked anyone to write code for me, mister.
Some guy "dnh" has responded (about Matrix). Now i am trying to write the code. That's enough.
I think u have reacted like this after seeing my awful question format.
|
|
|
|
|
Don't you just swap the Height and Width of the rectangle?
|
|
|
|
|
Hi,
In a .net application there is a link that brings up a SSRS report.
I have noticed that if it is the first time this report is requested i.e. Application has just been opened and the report button is clicked, then it takes a while to get this report to appear on the screen. But if this report is requested again (i.e. for the second time or more) then it only takes a few moments for the report to appear on the screen.
So it seems that only the first time the report is requested it takes a longer time to get this report. Is there a way to reduce this initial load of the report?
Thanks
|
|
|
|
|
It is either that the report manager is starting up (in the same way that any asp.net application does), or that the SQL has been cached for the second hit (and possibly both). So I don't think that this is really possible.
|
|
|
|
|
Hi all...
I'm developing a system for a hospital in windows forms and now comes to me to see the deployment of the application...
First to come to my mind was clickonce, but the problem is that it does not install to all user, so that every user that wants to use it have to go to the download site and install it...
Them it comes msi installer... This works fine, but how can I manage the updates with that??? The updater block is no longer supported and for that I think it's not a good choice...
Does someone knows another method, or another framework or service t do that???
Thx...
|
|
|
|
|
First of all, I am not sure what do you mean by “but the problem is that it does not install to all user, so that every user that wants to use it have to go to the download site and install it...”
Whichever deployment option you choose, users need to install the application (irrespective of clickonce or msi).
Try giving a button ‘Check for Updates” in your application through which user can check if an application has been updated or not. This is ideally checked by the version number of your application.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
as long as I know clickonce is installed by users, into the user account. A new user on that computer have to install the program again.
If there's a way to install to all user once, the TI department install the application and when a user log in in that computer the program only will check for updates..
I think I'll use the updater application block, but it's not supported anymore, or I'll make an update solution myself...
Thx
|
|
|
|
|
I'm trying to get the cpu usage of the running processes and I thought I had found the answer the PerformanceCounter but I can't really get it to work.
I start of by filling a ListView with the running processes and then update mem-usage and cpu-usage every second with a Timer but the cpu-usage is always reported to be 0.
Could this has something to do with that I'm using a dual-core processor or is something else wrong?
This is what I've done...
public void GetProcesses()
{
pThread = new Thread(FillProcessList);
pThread.Start();
}
private void FillProcessList()
{
Process[] myProcesses = Process.GetProcesses();
for (int i = 0; i < myProcesses.Length; i++)
{
int pId = myProcesses[i].Id;
string pName = myProcesses[i].ProcessName;
string pUser = GetProcessOwner(pId);
ListViewItem item = new ListViewItem(new string[] { pId.ToString(), pName, pUser, string.Empty, string.Empty });
item.Tag = myProcesses[i];
lvProcesses.Items.Add(item);
}
}
private void TrackProcesses()
{
if (pThread != null)
if (!pThread.IsAlive)
{
updateTimer.Stop();
foreach (ListViewItem item in lvProcesses.Items)
{
Process p = Process.GetProcessById(((Process)item.Tag).Id);
item.SubItems[3].Text = (p.WorkingSet64 / 1024.0M).ToString();
PerformanceCounter counter = new PerformanceCounter();
counter.CategoryName = "Process";
counter.CounterName = "% Processor Time";
counter.InstanceName = p.ProcessName;
item.SubItems[4].Text = counter.NextValue().ToString();
}
updateTimer.Start();
}
}
public void StopPThread()
{
if (pThread != null)
pThread.Abort();
}
private void updateTimer_Tick(object sender, EventArgs e)
{
TrackProcesses();
}
|
|
|
|
|
The MSDN[^] documentation for NextValue says that invoking the property on a newly created PerformanceCounter instance is like resetting the counter - you'll have to call it twice, with a (recommended) interval of one second.
Alternatively, you could make the counter a member variable of the class and call NextValue once in the constructor. This way, it gets created only once and successive calls will return the correct values.
|
|
|
|
|
Thanks, I'll look into that
|
|
|
|
|
i need help to build myown coding to capture packet by using c#.net.i have little bit confius about it.how i can capture it?it does, when i plug in my laptop to internet by using cable and i can capture it with mycoding?or i need some hardware to capture it..PLZ help me..i really need it..tegkiu
|
|
|
|
|
|
Hi all,
I've created two columns on the list view as follows.
ColumnHeader colHed;
colHed = new ColumnHeader();
colHed.Text = "Name";
colHed.Width = 100;
this.lwDetails.Columns.Add(colHed);
colHed = new ColumnHeader();
colHed.Text = "Address";
colHed.Width = 200;
this.lwDetails.Columns.Add(colHed);
Then on a separate function I try to add data to those columns. Name and address of a one person store in a string array named items. I try to add data as follows.
this.lwDetails.Items.Add(items[0]);
this.lwDetails.Items.Add(items[1]);
lwDetails is the list view name. In this case name and address are added to the same column. How can I correct it. Thanks a lot,
I appreciate your help all the time...
Eranga
|
|
|
|
|
Assuming your list view is in View.Details:
Try somthing like this:
ListViewItem item = new ListViewItem(items[0]);
item.SubItems.Add(items[1]);
Do that for each row you want to add.
- S
50 cups of coffee and you know it's on!
|
|
|
|