|
I would look at the IndexOf method from the String class.
|
|
|
|
|
|
What are you talking about? There is no map between user names and what machines they're logged into.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
I need write a progam in .Net (c# or vb.net):
The program should display in a monitor(tv) files(e.g. *.avi, *.mpg, ...) and also display TV channnels(analogical signal) depending on a schedule(user defined)
what I must use? ... ¿Managed DirectX?
Helpme please
|
|
|
|
|
Managed Direct X will play your files, but it is crap. You should instead COM interop to plain DirectX yourself, or you should use the Windows Media Player as a control.
No amount of code will change the fact that your PC does not have the hardward to recieve a TV signal. I don't know if there's a standard API between TV card, but you definately need the card before you do anything else.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi I am HaresH, Please help to make application in tapi
because i am developing TAPI application,
so anybody have this type of sample appication please send me
on my mail id
hareshmca@yahoo.co.in
mca.haresh@gmail.com
Thanks in advance
HaresH
|
|
|
|
|
http://www.vbip.com/miscellaneous/tapi-01.asp
Found with google. Try it yourself. It'll save you a lot of time.
|
|
|
|
|
Hi I am HaresH, Please send me TAPI sample code in vb.net
Thanks in advance
HaresH
|
|
|
|
|
Becuase your question covers such a HUGE topic, this is probably the only response your going to get.
Google results[^] for "vb.net tapi"
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need help to write a program that includes two functions named calc_avg() and varience(). The calc_avg() function should calculate and return the average of the values stored in a static array called testvals. The array should be declared in main() and include that values 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, and 73. The varience is obtained by subtracting the average from each value in testvals, squaring the values obtained, adding them, and dividing by the number of elements in testvals. The values returned from calc_avg() and varience() should be displayed in main()???
|
|
|
|
|
Written for console app....
static void Main(string[] args)
{
int[] testvals = { 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, 73 };
int avg = calc_avg(testvals);
Console.WriteLine("The average value is : " + avg);
int var = calc_var(testvals);
Console.WriteLine("The variance is: " + var);
Console.ReadLine();
}
private static int calc_avg(int[] testvals)
{
int tmpSum = 0;
for(int x = 0;x<= testvals.Length - 1;x++)
tmpSum += testvals[x];
return tmpSum / testvals.Length;
}
private static int calc_var(int[] testvals)
{
int[] tmpVal = testvals;
int tmpSqr = 0;
int tmpAdd = 0;
int avg = calc_avg(testvals);
//subtract average from each value
for (int x = 0; x <= testvals.Length - 1; x++)
tmpVal[x] = testvals[x] - avg;
//square each value in tmpVal
for (int x = 0; x <= tmpVal.Length - 1; x++)
{
tmpSqr = tmpVal[x] * tmpVal[x];
tmpVal[x] = tmpSqr;
}
//Add the values up
for (int x = 0; x <= tmpVal.Length - 1; x++)
tmpAdd += tmpVal[x];
//Divide result buy number of elements in testvals
return tmpAdd / testvals.Length;
}
|
|
|
|
|
Congratulations! You just did his homework for him!
Now, he hasn't learned a damn thing and will copy and paste you code into a project, turn it in as his own work, and get a failing grade for it! I hope your proud of yourself!
On top of that, this is the VB.NET Forum, not C++ or C#.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 11:51 Tuesday 25th October, 2005
|
|
|
|
|
Your right Dave I did do his homework and hopefully he will get a failing grade for it to.
The code posted was written as an example. If cut and pasted into his assignment, most likely it will not match the requirements of the assignment. As far as him learning something, it would be a lesson. A lesson that teaches not to copy someone's examples but to study them and learn from the example provided. Books do this all the time, at least the ones I read.
I do appologize for posting in the incorrect forum!
Cheers
|
|
|
|
|
Here's something funny. I dunno how well the code that was posted works, but he's chosen not to use it, he's asked the same question again in the C# forum.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I strongly advise you to either start doing your own homework ( and at least learn to read, this is the VB.NET forum ), or practice saying 'do you want fries with that' in front of the mirror.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I want to create a datagrid having only single row, editable too. because I want to create a filter type application where user can specify text to filter in the grid.
The problem is whenever user write anything in the first row, second row appears automatically, which is not required.
Plz help
|
|
|
|
|
Sounds like you should use a textbox vs. a datagrid.
|
|
|
|
|
Hi
I have to set the name of the file which is to be set for printing. the name is appearing as document(1) in pending documents dialog which is showing in system tray.
When i am watching print preview after that when i press print button from print preview it should dislay print dialog. what is the procedure plz help me.
Thanks in advance.
|
|
|
|
|
set printdocument.documentname property to NAME
|
|
|
|
|
Hi
I want to set the name to a file which is selected for printing. That name should appear in pending documents which is shown in system tray and another thing is i am able to see the print preview. When i am in Print Preview if i press print it should display printer dialog then i can select the printer options.
Plz help me.
|
|
|
|
|
Hi,
I just want to ask.
Do you have any idea how to communivate the ASP with SAM server?
Actually I am doing the smart card programming using VB 6.0. Later on, I =
will create an Active X for the VB programming. But I need to used the =
ASP to run my application. How am I going to connect the ASP with SAM =
server with considering of the session expired?
Thank You.
Regards,
Izyani
yani
|
|
|
|
|
I need to get a list of funtions(names) from a project based on the class modules and forms in the project. How to get this ?
|
|
|
|
|
google vb.net reflection, and you should find what you need.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I have this code below and I want to get the sum of the amount of the "441210" and "441110". Please show me the code. thanks.
Case "441210"
amt = Mid(strLine, 93, [20])
Range("I10").Select
Range("I10").Value = amt
Case "441110"
amt = Mid(strLine, 93, [20])
Range("J10").Select
Range("J10").Value
Range("J10").Value = amt
Thanks
|
|
|
|
|
You're kidding, right ?
Use Convert.ToInt32 to get ints, then use the + operator to add them.
Your code is pretty messy, if you know the values, why are you calling Mid, or is that not what this is doing ?
Christian Graus - Microsoft MVP - C++
|
|
|
|