|
hi, how can i use WMI to trace process activities; what are the files,registry files it opens or updates in chronological order
|
|
|
|
|
Hello.
I'm fairly new to WPF, coming from AS3. I have a series of canvas objects which I want to 'scatter'. I thought maybe I could do this by having the items in an array, then using a for loop to run the random number and double animation code on each one.
However I'm struggling to place the canvases into an array, can you in fact do this or would I need to think differently?
Regards.
E.
|
|
|
|
|
Hi,
In ajax calender control, when the calender pop up it is overlapped with other controls. It display under other controls. Same happen for ajax validation also. The prompt message show behind the controls, mainly it happen with dropdownlist,listboa and multiline text box.
Is it CSS problem. How to solve it?
Regards,
YPKI
|
|
|
|
|
I have a problem, a PictureBox es MouseUp event gets fired the moment you hold the mouse down, not release it, as it it should be.
I want to let the user select multiple PicturBox es while he holds a mouse button down and stop selecting when the mouse button is released, however, if the MouseUp event gets fired the moment you press amouse button, but not relase it, that is not possible.
Does anyone know some kind of fix or work around?
How do I make the event fire at the right time or how do I let the user select multiple PicturBox es with the MouseUp event?
Thanks in advance.
|
|
|
|
|
Megidolaon wrote: I have a problem, a PictureBoxes MouseUp event gets fired the moment you hold the mouse down, not release it, as it it should be.
I dont think it does...You should change your mouse xD
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I had this probem on several PCs.
The MouseDown fires first, but the MouseUp firest fires immediately after.
|
|
|
|
|
I never had this problem...it might possible that you using oldest version of .Net Framework
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
No, I checked and it's 3.5.
|
|
|
|
|
it may not happen..i thk your event firing may mixed up...did the mouse down event fired?
|
|
|
|
|
The MouseDown fires first, but the MouseUp firest fires immediately after.
|
|
|
|
|
Hi,
First of all - please excuse my poor english.
I am trying to download html content from an url. Just the source-text of the site. When I open a website (for example www.google.com) in IE an look at the source-text (right mouse - view source text) the displayed text is different as if I do the same with Firefox.
I tryed using httpwebrequest, setting useragent, header-information etc. but never get the html content as displayed in IE-sourcetext. What am I doing wrong? Any hint would help.
I have been searching the forums the last 2 days for a solution of this problem but didn't find an answer. Perhaps my understanding of the process is wrong so please give me a hint for what i have to look for.
Best regards,
LC
|
|
|
|
|
Well IE is broken
But what are the differences?
|
|
|
|
|
The html may be dynamically created based on the browser being used.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Yes ... maybe it is, but is there a way to "simulate" being IE? ... Whatever I try it doesn't work right.
For your understanding: it's about filtering any links out of a website like a spider, source-text in IE shows the links as <href....etc.>, firefox and everything I've tryed in C# shows just javascript-code as result.
Is there a way to extract the links from the returned javascript/html-code?
Thank you for your quick answers
|
|
|
|
|
Yep, there sure is. Set the UserAgent property of your HttpWebRequest object to simulate IE's User Agent. Here's a list[^].
Then, to parse that stuff out, use a regular expression on a tags. If you want to get it out of the JavaScript, the only sure fire way to do that is to evaluate the JS. I have no real help for you on that. Sorry.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Parsing out the links from html isn't the problem. I have tried setting UserAgent property of httpwebrequest to 20 different useragent-strings i have found on the net - everytime the same, wrong result.
The mystical on the thing is this:
When I open a site with IE (for example http://derstandard.at) and click right mouse, source-text I see what I want to see, many links, less javascript. So I tried using fiddler2 to see what header information the http-request has. The mystical is: in fiddler2 i see the same wrong thing as in firefox as html-context for the requested page. Only right click - source-text in IE results the right html i need popped up in notepad.
I don't understand it...
Any suggestions ... anyone?
|
|
|
|
|
I don't know if this is true, but does IE show the "source" of the page that includes DOM manipulations by the JavaScript? If so, maybe you should create a WebBrowser control, point it to the correct URL, and then read the DocumentText[^] property to see if it has what you want.
This definitely won't work on Mono.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
In my windows application, one column of the datagridview is checkbox column.
Please let me know how can I enable/disable the checkbox controls.
Thanks in advance..
|
|
|
|
|
dataGridView[colIndex, rowIndex].Value = 1;
dataGridView[colIndex, rowIndex].Value = 0;
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello everyone,
If I have a client application which needs to call a web service. I want to know the pros/cons and impact if I set default proxy property to true or false in app.config file?
Thanks!
Here is the property I am talking about.
http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx
regards,
George
|
|
|
|
|
Hi
I have changed the code.When i debug this code im getting "Object reference not set to an instance of an object"..But then the output form window opens with the controls.The required output is not obtained..Im trying to list all the files in a folder in the ListView control..Please help me with this
using System;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using System.Text;
using System.Xml;
namespace Windows21
{
public class ListView1 : Form
{
XmlTextReader reader;
XmlDocument doc = new XmlDocument();
ListView listView = new ListView();
Button button1 = new Button();
ListBox listBox1 = new ListBox();
public ListView1()
{
listView.Location = new Point(250, 250);
listView.Width = 250;
listView.Height = 100;
button1.Visible = true;
listBox1.Visible = true;
button1.Text = "button1";
button1.Location = new Point(100, 100);
listBox1.Location = new Point(100, 150);
PopulateListView();
this.Controls.Add(listView);
this.Controls.Add(button1);
this.Controls.Add(listBox1);
this.ClientSize = new Size(400, 200);
button1.Click += new EventHandler(button1_Click);
}
private void PopulateListView()
{
try
{
listView.View = View.Details;
listView.Columns.Add("FileName", -2, HorizontalAlignment.Center);
listView.Columns.Add("Status", -2, HorizontalAlignment.Left);
reader = new XmlTextReader("path.xml");
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Text:
String s1 = reader.Value;
String ss = listBox1.SelectedItem.ToString();
String sss = ss + s1;
object o3 = (object)sss;
DirectoryInfo dire = new DirectoryInfo(sss);
if (dire.Exists)
{
String[] folder = Directory.GetDirectories(sss);
foreach (string foldername in folder)
{
DirectoryInfo di = new DirectoryInfo(foldername);
if (di.Exists)
{
String[] files = Directory.GetFiles(foldername);
foreach (String filename in files)
{
FileInfo fil2 = new FileInfo(filename);
ListViewItem item1 = new ListViewItem();
item1.Text = fil2.Name;
item1.ImageIndex = 1;
item1.Tag = fil2.FullName;
item1.SubItems.Add("Programming .NET");
listView.Items.Add(item1);
}}}}
break;
}}}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
private void InitializeComponent()
{
this.SuspendLayout();
this.ClientSize = new System.Drawing.Size(756, 485);
this.Name = "ListView1";
this.ResumeLayout(false);
}
private void button1_Click(object sender, EventArgs e)
{
string[] drives = Environment.GetLogicalDrives();
foreach (string strDrive in drives)
{
listBox1.Items.Add(strDrive.ToString());
}}}}
|
|
|
|
|
Thanks for the complete code dump - I really need to know what your internal logic is. Anyway - this problem occurs because you have an object somewhere that you haven't instantiated or which has returned a null on an evaluation. The way to fix this is to first of all read the exception text which will tell you which line this error occurs at. Then, put a breakpoint just before this line and debug your code - finally, hover over variables to see what value they have - check for null in the tooltip.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
Won't it be much better to use Recursion? As well as A LOT simpler?
Recursion using C#[^]
Or maybe I'm missing something?
|
|
|
|
|
As you said it gives you error message and then it shows you an output (which is different). means error is in try-catch block, faster way to find out exact location is just remove try-catch block for a while, and run your code it will jumps to debug mode when exception occurs, and you can see the line of code, which is causing problem. I think something is going wrong with the string assignment.
|
|
|
|
|
Hi,
I tried debugging with Step Into option it shows error in the Program.cs file
static void Main()
{
Application.Run(new ListView1());
}
//code for Program.cs
//Here ListView is the namespace of ListView1() so i have used using ListView.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
using ListView;
namespace WindowsApplication19
{
static class Program
{
[STAThread]
static void Main()
{
Application.Run(new ListView1());
}
}
}
|
|
|
|