|
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!
|
|
|
|
|
Ok, I got the point here. Thanks a lot.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Hello guys,
In setup and deployment solutions, did you try to create a shortcut of a file from the application folder to the send to menu folder?? Any Idea how to make it valid, cuz after the installation, when you right-click an icon and choose "send to" you cant find it there in spite the fact it was actually created but cant be shown. I managed to come up with a dirty trick to fix it but I couldnt use the post-build command line and got stuck in another problem.. Any Ideas??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: In setup and deployment solutions,
What deployment package are you using?
Muammar© wrote: did you try to create a shortcut of a file from the application folder to the send to menu folder??
Normally I believe that most installer packages create the start menu shortcuts itself.
Muammar© wrote: Any Idea how to make it valid, cuz after the installation, when you right-click an icon and choose "send to" you cant find it there in spite the fact it was actually created but cant be shown
I don't understand what you mean here. I'm confused by your question, give a little more detail on what you mean and I'd be happy to help
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: What deployment package are you using?
Setup Project
Justin Perez wrote: Normally I believe that most installer packages create the start menu shortcuts itself.
It does, but I added another special folder that is "Send To"
Justin Perez wrote: I don't understand what you mean here. I'm confused by your question, give a little more detail on what you mean and I'd be happy to help
Sorry .. Ok, the shortcut gets created, but when you right click an icon "say on the desktop" you'll not be seeing that shortcut among the list although it's there in the user's send to folder but the problem is the "start in" property of the shortcut.. anywayz, I thought of a trick to change that shortcut file from .lnk to .lnkx "so I can include it in the setup application folder " and then I set the PostBuild command-line as:
@ren "%userprofile%"\SendTo\"QSoft - Language Reader.lnkx" "%userprofile%"\SendTo\"QSoft - Language Reader.lnk"
However, I dont seem to get it working
Thanks Justin
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I had some problems on a project a couple months back with creating shortcuts and a couple other things. I decided that instead of trying to let the setup project do it, I would over-ride the installer class. There is simply stuff that I wanted to do, but either the installer class wasn't capable of, or it was a huge pain do implement. You could over-ride the installer class to do what you want, and you can also have lots of other custom actions. There is a great article that will get you headed in the right direction, if you choose to do this. Conditional Install of Desktop and Quick Launch Shortcuts.[^] It is very simple, and easy to implement. Doing the basic install of the software is still handled by the regular installer project. If you have any questions, let me know Hope this helps
Oh, here is another article that shows how you can pass arguments. It's the same for passing it to your over-ridden installer class, or to the installer for custom actions.
A Setup and Deployment project that passes parameters to the configuration file[^]
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
|
Muammar© wrote: Why thank you Justin
You bet man, I'm happy to help.
Muammar© wrote: I think my problems are solved..
That's great! Now, you can go other custom things during your installer that you couldn't do with a normal installer. That over-ridden installer class is great!
Muammar© wrote: Thanks again buddy
You bet man, I'm really happy to help. If you have any other questions about this, respond to this thread, or send me a message or something, I'd be happy to help
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
|
Hi, I was wondering if there is a way to configure the oracle db to work by batches, (send processed data while still computing the query at db).
I want my large query to be segmented in order to send chunks of data to an OracleDataReader, I’m guessing the "normal" behavior is to execute an OracleCommand and waits for it to complete.
Thanks
Yaron
|
|
|
|
|
Hi
I am working on a desktop application using C#.NET. I am using Crystal Reports for reporting. At a certain point in application I change the culture of CurrentThread.i.e
//System.Globalization.CultureInfo abc = new System.Globalization.CultureInfo("en-US");
//System.Threading.Thread.CurrentThread.CurrentCulture = abc;
This change is reflected in the application and of course in crystal Reports. When I set the Date Format of CurrentThread.
//System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = this.DataSet.DataTable[0]["dt_format"].ToString();
The change is reflected in tha application but my crystal reports donot reflect any changes. How can I set date format of PrintDate field after changing the DateTimeFormat of current thread. Or is there a way this change can be reflected to crystal reports as well
Can anybody help me what I should do?
I will be really grateful.
Azif
|
|
|
|
|
Hi
I have a problem while installing Windows Service.
I have a Win Service Application in C# and to install that I added the Installer class too with the name ProjectInstaller.cs . I am using installutil to install the service.
The problem is I wish to pass two parameters while installing this service, one a Service Name and another a key to Configuration file.
I am giving it like installutil /name=<servicename> /key=<config name=""> <service exe="">
The service is installing properly, but based on my requirement, I want this parameter to be used in Service1.cs class by taking it from ProjectInstaller.cs file. This is not working properly. I think These two are working as two processes.
Is there any way to get the parameters we are giving with installutil in Service.cs file?
Or in other words, Somebody recommended me to use Inter Process Communication. Is it the best way to solve this issue? Will this Inter process Communication possible between two class files in same .Net Windows Service Application?
With Regards,
Abraham Chethuvelil
modified on Monday, January 14, 2008 12:17:05 AM
|
|
|
|
|
Hope this[^] will help you
|
|
|
|