|
jds1207 wrote: Unable to cast object of type 'System.String' to type 'System.IFormatProvider'.
That is because partnumber is a string.
The specific exception that you get is because there is no overload of the ToString method for the string class that takes only a string as parameter.
---
b { font-weight: normal; }
|
|
|
|
|
I just started learning Visual Basic. I'm learning by trying to develop my own personal web browser. I've been able to get it load the web page and have added functional buttons like a back and forward button. I've been trying to add a progress bar to the bottom. I have it added but I cannot seem to get it to work. I was wondering if anybody had any advice.
Thanks in advance.
|
|
|
|
|
You should tell us what you want to do with it?
I suppose you know how it works... easy... set the maxValue (or something similar) and increment the value in a loop, timer or what you need.
|
|
|
|
|
I basically want it to show the progress of the web page being loaded. Just not really sure how to do it.
|
|
|
|
|
That capability depends on the control your using. I've seen most only have an event of when it's fully loaded. If you can find an event called 'progress' or something like it then that's your best bet. If you can't I think your left with when it's done...
|
|
|
|
|
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.
|
|
|
|