|
I am working on a messenger application in c#.there is a browse part where admin can open any page through browser and i want that when admin can use the scrollbar at their end then that should be reflect to att the other client.Since this application is basically for classroom feature or for presentation.But i dont know how to use this facility
Aman Nigam
|
|
|
|
|
That is not practically possible. That would require that all the computers use the same resolution, has the same windows theme, use the same browser, open the browswer window with the exact same size, have the exact same settings for browser toolbars, have the same setting for browser text size, et.c.
I would rather go for displaying an image of the teachers browser instead.
---
b { font-weight: normal; }
|
|
|
|
|
The best way to do this would be to embedd IE in your app and then control it from there. As someone else said, you cannot guarentee that everyone sees exactly the same thing, but you can host a web browser and interact with it.
And it would use a lot less bandwidth than sending images of the central PCs browser.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
how to generate random number
|
|
|
|
|
Use the Random class. Example:
Random rnd = new Random();<br />
<br />
int digit = rnd.Next(10);
---
b { font-weight: normal; }
|
|
|
|
|
Hi
How can i access Ms-Access, and Oracle Database remotely? i mean what will be the querystring for both of these.
regards
sAqIb
|
|
|
|
|
|
I'm trying my popup system by using the win32 call:
[DllImport("user32", SetLastError = true, CharSet = CharSet.Auto)]
public static extern int AnimateWindow(int hWnd, int dwTime, int dwFlags);
instead of myPopup.Show().
However when I use AnimateWindow al the child control disappear!
Some reappear when I click on the winodws.
Even more puzzling, I been checking the child control with the debugger:
they are there, visible, with the correct bounds (and parent!!)
Hey, what's happening!
Any ideas?
|
|
|
|
|
Solved with a call to myPopup.CreateControl()
|
|
|
|
|
Hi I am working in Image Processing Project ,I want to crop an image from specific points as (left right top bottom)point are availble,is there any funtion availble in C# that can segment or crop an image from given points.
Plz Help me and Reply me soon
May Almighty ALLAH bless us (Always)
|
|
|
|
|
Graphics gs =this.CreateGraphics();
now use gs.SetClip() function ..hopeit'll solve your problem
sameer
|
|
|
|
|
Problem is this that i have put this croped image in pictureBox and have to obtain croped image pixels infombut graphics image cannot be converted in to Botmap ,Actually i want to make cropped image as Bitmap
plz Help me
|
|
|
|
|
can you write a littler Piece of code that you are doing.
sameer
|
|
|
|
|
Image_Processing wrote: but graphics image cannot be converted in to Botmap
Actually they are easily converted to Bitmaps several ways. A simple one
Bitmap MyBitmap = (Bitmap)MyPictureBox.Image;
Regards
|
|
|
|
|
You can achieve this effect by calling a special version of Graphics.DrawImage() .
Create a Bitmap in the size of your cropping area.
Then get yourself a Graphics object to draw into this bitmap using Graphics.FromImage() .
Using this Graphics object you draw the original image into the new bitmap in a way that the top left corner of the crop area is painted to the top left corner of your new bitmap.
Don't forget to dispose of the Graphics object afterwards or you'll create a resource leak.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi All,
I am using DataGridView in my application.I want to highlight the selected row(without setting the backcolor or forecolor) when the user selects the row.Is there a way to do this.
Regards
Vinutha
Vinutha
|
|
|
|
|
row is already get selected by default behaviour of datagrid.
for any special color you can use
myDataGrid1.SelectionBackColor Property
and to access current row you can use
myDataGrid1.CurrentRowIndex
sameer
|
|
|
|
|
|
I have a method in a separate class file that I'd like to call.
The separate file is called dataaccessclass.cs is structured like:
using System;
namespace aspnetcsharpdemo
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Class1
{
public static string Class11()
{
// this is the method that would do the select
string result = "test";
return result;
}
}
}
When I try the following code it fails with - C:\Inetpub\wwwroot\aspnetcsharpdemo\test5.aspx.cs(52): The type or namespace name 'DataAccessSelectClass' could not be found (are you missing a using directive or an assembly reference?)
Label1.Text = DataAccessSelectClass.Class11();
Whats the proper way to call the method ?
|
|
|
|
|
I can't see where your DataAccessSelectClass is coming from? And as it seems, neither can the compiler
For the example code you've posted, you should be using
Text1.Text = Class1.Class11();
That should give you what you need.
Another thing to consider is, if you're going to just return a string that's not going to change, why not set it up as a public const string or as read only property?
Steve.
|
|
|
|
|
well the code I posted is in a file called DataAccessSelectClass.cs (and its called from a webform1.aspx.cs page)
the code inside the method is just temporary - once I figure out how to call it, the code will be changed to return a dataset.
|
|
|
|
|
digsy_ wrote: namespace aspnetcsharpdemo
{
///
/// Summary description for Class1.
///
public class Class1
What the file is called does not matter. This class is called Class1, or aspnetcsharpdemo.Class1. You're looking for a different class, with a method called Class11 ?? Or is Class11 a class in a namespace called DataAccessSelectClass and your code is totally confused ?
Use real class names, not class1 or class11.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
As Christina said, the file name is irrelevant.
To access the method in the class you use:
Label1.Text = aspnetcsharpdemo.Class1.Class11();
If you would have named your class DataAccessSelectClass instead of Class1, you would use:
Label1.Text = aspnetcsharpdemo.DataAccessSelectClass.Class11();
And if you had using aspnetcsharpdemo; at the top of your page, or if your page class was inside namespace aspnetcsharpdemo , you could use:
Label1.Text = DataAccessSelectClass.Class11();
---
b { font-weight: normal; }
|
|
|
|
|
use this
Label1.Text = aspnetcsharpdemo.Class11();
sAqIb
|
|
|
|
|
sorry for the mistake
use this
Label1.Text = aspnetcsharpdemo.Class1.Class11();
means, namespacename.classname.function_name_of_class();
it will work
sAqIb
|
|
|
|