|
I am deverloping a window application with VB.Net
And I get a problem. I need your helps.
My problem is:
When my application show a report by report viewer. The Crystal report get a bug. The bug is "The parameter "E:\DANCO\Source\DPPS\Report\rptJobEntry_danco_dev.rpt" could not be found". But The "E:\DANCO\Source\DPPS\Report\rptJobEntry_danco_dev.rpt" report file is adready . Please, give to me a advice. Thanks very much.
|
|
|
|
|
I have this datagrid on a search page. once the search is complete it populates the datagrid. What i want to do is retrieve the datagrids uniqueidentifier and then move to another page once the user has clicked update which will populate with the info from the selected datagrid row. Any help much appreciated.
gfhg
|
|
|
|
|
U can use the Datakeys property of the Datagrid to get the value of the unique field for the selected Row in the datagrid .
Sub Update_Command(sender As Object, e As DataGridCommandEventArgs)
....
uniq = Grid.DataKeys(e.Item.ItemIndex)
....
End Sub
|
|
|
|
|
as inputbox is for inputting strings so can i use it to input integer data as well and how can i do it.if anyone has solution plz reply.
|
|
|
|
|
You can force a textbox to take ints only by handling the char event, and using char.IsDigit to set HAndled to true for non numbers.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
if you mean how to get an interger out of it than it's really basic:
a = int(inputbox("Enter number"))
if you rather want to know how to validate and check against an integer than it's a different story. AFAIK you can't do it with an inputbox but you can accomplish it through a textbox in a form as stated in the reaply before (and maybe have a look at the "validate" function).
|
|
|
|
|
You cannot do that to an InputBox since it runs modally.
You have two options:
1)Design your own frmInputBox and run it modally to get the input.
2)Just get the input value as strting, then use the Val() function to convert the input value to number and check if it really was a number.
|
|
|
|
|
how can i get an array of any control in visual basic to use them one by one by clicking one command button.
waiting for solution.thanx
|
|
|
|
|
What do you want to do ? VB6 or VB.NET ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am not sure I understand your question, and you need to specify what version of VB you are using.
In VB6 you can create arrays of controls and enumerate them like any array.
In VB.NET you cannot create arrays of controls, but you can add controls to the Controls collection of a form, a panel or a groupbox dynamically. You also can enumerate the control collections of any container (i.e. a form, panel, groupbox).
|
|
|
|
|
Is there an easy way to format a telephone number in a textbox on a form?
"(123) 456-7890" or point me in the right direction for something other than string manipulation.
currently reviewing MSDN string manipulation docs... being from big blue and old iron i would expect some simple ways to format input/return fields.
thanks in advance
|
|
|
|
|
You can use a reg ex validator to validate that this is the input you recieved. RegEx replace will let you enforce the () and - even if they were not there to start with.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
how do i take A strings data
and take all the chars or substrings and store them Array INDividualy...
so say if the data in the string is HELLO THERE
take H and store it to index 0 E store it to index 1 and so on and so forth even the space between HELLO and THERE.
|
|
|
|
|
|
String has a ToCharArray method.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Strings have a "Chars" property array, which is the string split into an array of characters, just like what you are wanting. For Example.
<br />
Dim S As String = "Test"<br />
<br />
S.Chars(0)
S.Chars(1)
S.Chars(2)
S.Chars(3)
You can also use the "ToCharArray" function of a String to get a specific substring of the string and split it into a character array. For Example.
<br />
Dim S As String = "Test"<br />
<br />
S.ToCharArray(2, 2)
Hope this helps,
Scott
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
( President Ronald Reagan)
|
|
|
|
|
yes this helps a bunch.
so say if i wanted to do a loop that will stop as soon as i completed storing the chars in the array.
Dim S As String
S = "hello there"
Dim I As Integer
Dim Chars() as String
I = 0;
For i To S.Legnth Step +1 // don't know yet how i set that up
S.Chars(0);
Next do whateever...
i don't know how am i attemping this, loops are still fuzzy to me but I have some grasp.
-thanks
George
|
|
|
|
|
Hi
I need to have a program that creates a new desktop (on a local machine, and runs some applications in that desktop).
This desktop is not interactive to the users, but the administrator, should remotely be able to have this desktop (in interactive mode).
I want to know how this is possible.
Also if there are any ways that the administrator could have access to the current user desktop, I'd be glad to know that.
(The program is in VB6, but it's no matter if the answer be is VB.NET, C#, or C++)
Thank you.
|
|
|
|
|
This is not really a programnming issue but rather an OS issue. There are several programns already available that provide the functionality you describe.
You can use Microsoft Remote Desktop to access any computer which also has Remote Desktop properly configured, for any account which is configured and that you have a valid login for.
Remote Desktop does not allow you to access an account with the user concurrently logged in. For this you can use a program called RealVNC.
|
|
|
|
|
Hi,
I am developing an app in vb.net that relies on the presence of another application running at the time. Can anyone tell me how to detect if the other application is currently loaded,
Regards
Dundoan
|
|
|
|
|
Do a search on GetObject() from the Visual Studio help system. It will provide the information you need. In summary, an extract from the help is shown below. (Note this example is in VB 6.0 - you'll need to modify slightly for VB.NET.)
' Test to see if there is a copy of Microsoft Excel already running.
On Error Resume Next ' Defer error trapping.
' Getobject function called without the first argument returns a
' reference to an instance of the application.
' If the application is not running, an error occurs.
MyXL = GetObject(, "Excel.Application")
If Err().Number <> 0 Then ExcelWasNotRunning = True
Err().Clear() ' Clear Err object in case error occurred.
...Steve
|
|
|
|
|
how to connect visual basic 6.0 to sql sever 2000.i have both the sql sever and vb 6.0 both installed in my pc.i am doing a project which requires me to connect vb to sql sever and to the programming in vb using sql sever as a database.
so can anyone please help me to connect vb to sql sever please.
email: goundar_j@yahoo.com
|
|
|
|
|
Hi,
anyone know anyway of converting geographical coordinates to screen coordinates?
I have a world map, and I want to plot icons on it, but I first need to transform my longitude and latitude values to x,y values)
|
|
|
|
|
There is any way to show a tooltip within the need of stop the mouse over a control?
For example show the tooltip when a timer counts to 5 seconds...
Thanks
|
|
|
|
|
Yes. Use the Tooltip control.
Add it to the form.
Then to add the tooltip:
myTooltip.SetToolTip(MyControl,"This is the text")
where myTooltip is the tooltip you created above and myControl the one you want the message associated with. If you look in the doc you can also specify the timing.
|
|
|
|