|
As said below,unless your web control offers an event as it loads data you are pretty much shot.
...however... you might want to consider something else. Unless you know the completed size of the page you are downloading, including graphics and all, a progress bar is not going to be easy since you will have no real idea as what number represents the 100% mark. Consider just using a progress bar that moves to do nothing more than indicate 'progress' and activity.
Something like...
http://www.codeproject.com/cs/miscctrl/BusyBar.asp[^]
|
|
|
|
|
Thanks everyone I appreciate the help.
|
|
|
|
|
on time selection option available in VB 6 ? 4 example when type A combo show display only those item that start with latter "A" and when type Ap then show only "AP" items
Fakhuddin
|
|
|
|
|
Hello,
Does anyone know how many copies a .net application can run? Example: If I have 75 users that are opening the same application, would it open 75 copies or just one (same .net) application.
I am running the .net application on 2003 sql server.
thanks in advance
programmer
|
|
|
|
|
how to generate a new label for every click event of a send button in panel in a new row in please see the code below.its working but not creating new label in a new line withfirst label vissible
i am trying to write code for chating application.Please help me as soon as possible..
private void btnSend_Click(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.Label lbl=new Label();
lbl.Text=entr;
Panel1.Controls.Add(lbl);
}
|
|
|
|
|
When you create a label dynamically, it's default top/left properties will be zero/zero. if you use the control collection of the panel, find the last instance of the labels that you are adding and get it's top and height(adding a little for spacing) then set the new labels top to that number. otherwise each label will just sit on top of the one before it...
hope this helps...
|
|
|
|
|
thanks a lot ...i will try this
|
|
|
|
|
hellow to all ..
i am trying to build a nested datagrid in vb.net i was looking for codes and samples or for the method , i found some but didn't help me much ...
any one have any idea where i can found help on this issue ?
thxx
|
|
|
|
|
|
thank u but i need samples for vb.net not asp.net
|
|
|
|
|
Hello,
That problem solved, i entered the wrong name in the wrong place.
However, another question.
In my subreport I am grouping by an ID number (incidentTask.incidentID) and I don't what that to show in the report.
This is what I want:
TaskID Details Subject
At the moment the ID is being displayed and making a mess.
it is always repeating the data in the subreport.
Any ideas or tutorials.
Thanks,
Steve
-- modified at 9:35 Wednesday 1st November, 2006
|
|
|
|
|
Hello,
I have solved the above problems.
However, I have another problem.
I want to display something like this below:
[U]Parts Used[/U]
A
B
C
D
[U]Extra Parts[/U]
E
F
T
So what I need is a
Page Header section A
Details section A
Page Header section B
Details section B
The designer won't let me insert another report header after the detailed section A
Just another quick question. If one of the fields has no data in it, then it will display a blank line. Anyway to avoid this. In my address fields, some of the details the user does not enter.
Current
A
B
D
I would like to have
A
B
D
Many thanks in advance,
Steve
|
|
|
|
|
Hello,
I have solved the above problems.
However, I have another problem.
I want to display something like this below:
[U]Parts Used[/U]
A
B
C
D
[U]Extra Parts[/U]
E
F
T
So what I need is a
Page Header section A
Details section A
Page Header section B
Details section B
The designer won't let me insert another report header after the detailed section A
Just another quick question. If one of the fields has no data in it, then it will display a blank line. Anyway to avoid this. In my address fields, some of the details the user does not enter.
Current
A
B
D
I would like to have
A
B
D
Many thanks in advance,
Steve
|
|
|
|
|
using vb.net (any version) I am creating an instance of "excel". Now after completing the process the excel does not close the Process . What I want is to get the ProcessID of "Excel" object created inside my application. so that I can close it. I cannot blindly close all the excel running in the process list as Other users are connected to my machine and they might be running excel as well.
Any Suggestions ??
|
|
|
|
|
I'm not sure if this is possible without any neat tricks, but on top of my head I'm thinking why not save a list of all excel instances before creating the object, and compare it with a new list after creating the object, the difference should be your excel instance.
code might look like this
Dim proc As New List(Of Integer)
For Each p As Process In Process.GetProcessesByName("Excel")
proc.Add(p.Id)
Next
'Create your Excel object here
For Each p As Process In Process.GetProcessesByName("Excel")
If Not proc.Contains(p.Id) Then MsgBox(p.ProcessName) ' This is your instance
Next
of course if your using vb prior to .net 2.0 you can do the same thing with arrays, although more coding will be involved.
|
|
|
|
|
thanks but this will close the excel run by other users.
The problem is my application is running on server and excel object is created on server. so at a time there could be more then 1 excel objects in the list. now which one is the process initiated by my thread is the question. In system all the threads are started by userName="SYSTEM" so I cannot even differentiate with this. if there is any way to get the processID through object variable then it can resolve the problem .. any comments ?
|
|
|
|
|
Unless what I've written below is correct, i don't think i really understand what you want to accomplish.
If your created object starts a new excel process then you will have a new PID which you can save until you finish using the object and then kill the process with the PID.
If your new object gets created inside another existing Excel process, the process may hold other users objects as well and therefore you shouldn't kill it, unless your application manages the object list, and you know for sure that all objects are closed.
|
|
|
|
|
Your code will give an approximate result not the exact result. Just imagine since this is a network application and more then 30 people will be accessing this at the same time. so if any of two people will start the process at the same time then it will be the issue as in new comaprison I shall get the ID which could be inititad by other user. What I was looking for to get some thing exact like I created an object
Dim objExcel as excel.xxxx
then with the help of objExcel I should be able to get the process ID. I tried Hwnd and Hprocess in the objExcel list but these are not process ID.
|
|
|
|
|
Interesting though, i just tried the code below and it worked great.
I know its VBScript but the concept is the same.
Dim xls
Set xls = CreateObject("Excel.Application")
with xls
.Application.Visible = False
.Workbooks.Add
.Sheets("Sheet1").Select
.ActiveSheet.Cells(1,1).Value = "Hello"
.Sheets("Sheet1").SaveAs("hello.xls")
.Application.Quit
End With
Set xls = Nothing
|
|
|
|
|
Hi.
I'm repeating this question so please excuse me. I really need an answer.
I need to set properties of the Ricoh multi-function printer to have default color set to 'black & white' when user logs into the machine (printer is on a network) using some script (VB or anything else). If it is, and the program/script can be created I will call it from a batch file, which runs every time user logs in.
Is there anyway I can use VB.NET or any other languages to set Color to 'black & white' by default for that printer. Anyone's help, who had any experience with this, will be appreciated.
Thank you in advance.
|
|
|
|
|
I have a few ideas but by-no-means a definate answer.
1. Look to the Ricoh company for a solution. Either there website or contacting them.
2. Look into the DLLs that are installed with the printer and try to compose a hack of some-sort that will allow you to change the property.
Not what your looking for but might help you get started.
|
|
|
|
|
Thank you. I was thinking the same way. I was asked to do that this way by our networking guys but it made no sense to me. We are using Citrix that means everyone shares the driver. Even if I create code it will only work for the first person signed in. Everybody else will use his last settings and if he changes it to color everyone will be printing color. Finding out the config file and setting black and white as a defatult and when making config read only makes more sense.
Thank you very much for reply.
|
|
|
|
|
I have successfully create a windows service application and installer in Visual Studio 2005. I would like the service to be installed as a windows user. My current installer does this by setting the Service Process Installer Account to user. However during the installation a popup box appears that looks very out of place with my installation package. Does anyone know how I can create a custom interface within the installer that will allow me to enter the account information and the pass this informatio to the installer class so this pop up does not appear.
Thanks in advance.
Steve Borman (Losing my hair with frustration)
|
|
|
|
|
In my current project there is a requirement of console applications to0 be used with window services in order to process xml files.
I don’t know much about console application. I want to know what is the use of console application ? How we can use it with window services? Or can we build window services through console applications?
|
|
|
|
|
1) what is it: it's basically a DOS enabled windows application with no gui front end to it. it opens a dos window and through code you can, for example, interact with the user via dos...asking questions in the dos window.
Rough explanation I know...
2) how can it be used: I assume the requirement is that the console application is supposed to process the xml file and then the window service is supposed to use the results? if the assumption is correct, you don't have to use a console app to do it. you can put a file watcher inside the windows service and have it look at a specific directory and when a file appears process it under the thread of the event of the watcher.
|
|
|
|