|
I think you should use javascript at client side to do that.
IE has build-in zoom support. e.g. body.style.zoom = 120%
|
|
|
|
|
I am creating images for the buttong in c#. i have managed to use the transparent background in the button to make this images look seamles. however the only challenge I have is when I hover over the I can see the background of the form in the edges of the button. Its not square its bevel.
Is there a way to disable that default.
Here is an image of what i am talking aboout.
http://i106.photobucket.com/albums/m250/oskardiaz_2006/ButtonOver.jpg[^]
thanks
|
|
|
|
|
How to work with sessions in c# programming in a project.
Govind
|
|
|
|
|
Well, assuming it's a web app, you shove stuff into the session and pull it back out again.
Do you have access to google ? Also, Visual Studio comes with something called MSDN, it's an online document store - full of info.
What I'm saying is, you're asking a very broad question, the sort that requires an article to answer it, not a forum post.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i new to c#.net
i want to access one node in xmlfile using c#.net .
that node have child node (i want that child node values)
i write my xml file like this
<
<<name>
<<n>Ap
<<n>MP
<<n>UP
<
<<add <<addr1="">gjsefgjkl<<addr2>dfhtyxcvd<<addr3>ioiopweri
<
in this i want to access the "add" child node value.
i wrote c#.net code like this,
"When i press Button the childnode("add") values r stored in listbox "
plz change any modification in my code or plz give code how to access thatnode
private void button1_Click(object sender, System.EventArgs e)
{
string filename = "C:\\C#program\\cs_programs\\singlenode\\bin\\Debug\\nodexml.xml";
XmlTextReader tr = new XmlTextReader(filename);
XmlDocument doc = new XmlDocument();
while(tr.Read())
{
foreach(XmlNode node in doc.SelectNodes("//details/add/addr"))
listBox1.Items.Add(tr.Value);
}
}
Thanks
|
|
|
|
|
I've answered this, please stop asking these questions and instead go and read any basic XPath tutorial.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi thanks for answered,
i try u r solution.
but my cod eis not working plz check my code ,
let me know any thing wrong in my code.
Plz help
Thanks
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
foreach(XmlNode node in doc.SelectNodes("//details/add/addr"))
Well, to be honest, I see no sign that you've done anything I've told you to do, to date. Your nodes are still named addr1, addr2 and addr3, which means the above XPath will never return anything. If you want the add node, then you want to use SelectSingleNode, and if you can't work out that to select the add node you need //details/add, then there's a serious problem here.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'D:\Project1\Project1\bin\Debug\Project1.vshost.exe'.<br />
Additional Information: The CLR has been unable to transition from COM context 0x1b1c30 to COM context 0x1b1da0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
I got this error...?
Im scared
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
This[^] is how I deal with unusual errors.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am using Visual Studio 2005 Professional Edition.
I have added a CrystalReport(.rpt) file to the project. I want to increase the width of this report at design. How can i do that?
Thanks.
|
|
|
|
|
yalaka pakher...pa designer ke right click ka. ow ogora settings mettings kana yar....da kho ado sa tapos na wo...
ihtesham
|
|
|
|
|
There is nothing about changing the width of report.
But i dont remember. Who are you?
|
|
|
|
|
Hi All,
I want to load a page using WebBrowser Control (see code below). I try to get the page content through DocumentText property in "DocumentCompleted" event handler, but it seems that the event won't be triggered. The "Navigated" event won't be triggered either. However, the "Navigating" event does.
I used to use HttpWebRequest/HttpWebResponse to grab webpage content, however, the drawback is that I can't get the full loaded page through it. What I mean by this is that maybe some javascript will execute to modify elements on the page after it's loaded, I call this page as full loaded page. I think using WebBrowser Control can overcome this drawback. It's just like a browser, and it'll execute those javascript after loading the page. But I can't make this control work correctly. Could anyone help me? I'm very appreciate.
Thanks
Jie
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace ConsoleApplication1
{
class Program
{
static WebBrowser wb;
[STAThread]
static void Main(string[] args)
{
Go();
}
private static void Go()
{
wb = new WebBrowser();
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_DocumentCompleted);
wb.Navigating +=new WebBrowserNavigatingEventHandler(wb_Navigating);
wb.Navigated += new WebBrowserNavigatedEventHandler(wb_Navigated);
wb.Navigate("http://www.google.com");
Console.ReadLine();
}
static void wb_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
Console.WriteLine("Navigating");
}
static void wb_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
Console.WriteLine("Navigated");
}
static void wb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
Console.WriteLine("DocumentCompleted");
Console.WriteLine(wb.DocumentText);
}
}
}
-- modified at 10:06 Thursday 14th September, 2006
|
|
|
|
|
I need to start and stop certain windows services via a form application? How do I do that? I have to code to load all services in a list box but I need to load only certain ones and control them?
|
|
|
|
|
Hi,
To manage windows services you need to add a reference to
System.ServiceProcess in your application.
Then you can use the
ServiceController.GetServices() method to access all the windows services on your system.
To get the driver services that are installed on your system use
ServiceController.GetDevices() method.
Do your best to be the best
|
|
|
|
|
how draw icon on each item in list box ??
Palestine
|
|
|
|
|
Hello
This would take some effort. Better is to make a ListView instead, and associate it with an ImageList.
Regards
|
|
|
|
|
ok do u have example ..
Palestine
|
|
|
|
|
Hello
1- Make an ImageList control from your ToolBox, and fill it with images
2- Make a ListView from your Toolbox and set the view mode to details or whatever suits you
3- Fill it with your items
4- Use the following code sample to associate an item with a certain image:
MyList.Items[X].ImageList = MyImageList;
MyList.Items[X].ImageIndex = Y;
Replace X, and Y with appropriate numbers.
Regards
|
|
|
|
|
i have this error
'System.Windows.Forms.ListViewItem.ImageList' cannot be assigned to -- it is read only
when i make
listView1.Items[0].ImageList = imageList1;
listView1.Items[0].ImageIndex = 0;
Palestine
|
|
|
|
|
|
You don't assign an ImageList to every ListViewItem , but to the ListView itself.
Each ListViewItem only gets the index of the icon from its parent's ImageList .
By the way, since I've seen so many of your questions here dealing with very basic information, may I suggest that you read through the appropriate tutorials in MSDN? There really are a lot of examples out there showing you the concept behind things so that you don't have to ask every detail here...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hello Nader Elshehabi
when i make this i have message that say this proprity is read only ...
why plz replay me ......
Palestine
|
|
|
|