|
Hello everybody,
I have a problem which needs to get all the links on a web page. I am able to get the html source code from a web page in astring. I want a regular expression Which gives all the links (href attributes' values from that code). If Any body could help me in that aspect,Please provide it soon,
Thanking You.
|
|
|
|
|
|
hi i have a small problem.
how can i have 2 forms that i can controll at the same time ?
so if i make Form.Show() <-- the other form is not available.
greeting gigo
|
|
|
|
|
Please explain the problem a bit better.
Creating an instance of Form2 in Form1 and calling form2.Show() should work just fine.
|
|
|
|
|
Could you explain a little more clearly what you mean. You want two forms to display at the same time?
Form1.Show();
From2.Show();
These are not modal calls and will cause both forms to display, though one may be covered by the other.
only two letters away from being an asset
|
|
|
|
|
ok thanks ..
but this doesnt fix my problem
the problem is the same (the form2 is working and block the hole application and also form1)
greeting gigo
|
|
|
|
|
How did you show the second form? Using .Show() or .ShowDialog() . THe problem your describing says your used ShowDialog() to display the second form.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How to Maintains performance while rows are added to the DataGridView one at a time by preventing the control from drawing until the EndUpdate method is called?
|
|
|
|
|
|
If SuspendLayout() and ResumeLayout() don't give you the performance you want, for some strange reason, setting the Visible property to false while adding rows and then changing Visible to true after you're done seems to give an even bigger performance boost.
Don't ask me why, but I did a lot of testing to verify it just a few weeks ago.
|
|
|
|
|
This is not for anything specific, just been bugging me.
If i have a datareader and execute it to bring back some records (from a SQL 2000 Database), but then before i read them do an update on the table that they have been read from, the rows that i then read do not reflect the changes of the update, therefore the datareader must hold the read in data in memory on a executeReader()
Firstly is it correct that it holds it?
Secondly if it does read some of the data in then does it batch it (because of memory limitations), in my test i was changing the 4th row down in the table, if i was to change say the 20,000th row, would it then reflect the change as it has to go back and read in more data.
Hope this makes sense!! the code is below so you can see what i have done
static void Main(string[] args)
{
try
{
string strConnectionString = ".....";
SqlConnection con1 = new SqlConnection(strConnectionString);
con1.Open();
SqlConnection con2 = new SqlConnection(strConnectionString);
con2.Open();
SqlTransaction trans1 = con1.BeginTransaction();
SqlDataReader dr2;
//READ THE TABLE INTO A READER
SqlCommand mycmd2 = new SqlCommand("SELECT * FROM TABLE1", con2);
dr2 = mycmd2.ExecuteReader(CommandBehavior.CloseConnection);
//CHANGE A ROW IN THE TABLE
SqlCommand mycmd1 = new SqlCommand("UPDATE TABLE1 SET Bla = Bla where ID = Bla", con1);
Console.WriteLine(mycmd1.ExecuteNonQuery().ToString());
//LOOP THROUGH THE DATAREADER OUTPUTTING THE CONTENTS (DOES NOT REFLECT THE ABOVE UPDATE)
while (dr2.Read())
{
//write out the 'data' field
Console.WriteLine(dr2.GetInt32(1).ToString());
}
dr2.Close();
con1.Close();
con2.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
|
|
|
|
|
That would depend, at least in part, on the transaction's IsolationLevel.
|
|
|
|
|
Thanks, now i have looked into that i understand what is going on
|
|
|
|
|
I have a solution in C# which has 6 projects Say
A, B, C, X, Y, Z
Where A, B, C generates exe's and X, Y, Z is of type Class library (DLL)
1) Executables A and B both hold a reference to Projects X, Y, Z (dll).
2) Where Executable C holds a reference to Dll X only.
X,Y,Z are private assemblies and not candidates for GAC.
Now since they are private assemblies when I add a reference it'll be copied to the project output directory locally. And if I'll set the property "Copy Local = false" then it'll not get copied and the exe's fails when.
What I wanna impose is a directory structure for my solution to avoid multiple copies of dll's when deploying.
LetSay it'll copy all the files in...
\AppRoot
......... A.exe
......... B.exe
......... C.exe
\AppRoot\Lib
.............. X.dll
.............. Y.dll
.............. Z.dll
And have them work correctly. I'm new to Dotnet and perhaps to programming.. Please help how to impose this kind of directory structure for my app.
Thanks.
SMK
|
|
|
|
|
Create a common folder for the output from the class library projects and change the project settings for these. Then have your exe project reference the assemblies from this location.
AppRoot
Common
Lib
x
y
z
only two letters away from being an asset
|
|
|
|
|
The deployed structure need not echo the development structure.
Add a deployment project.
|
|
|
|
|
True, however creating a common folder for this senerio will ease creating a deployment package
only two letters away from being an asset
|
|
|
|
|
Create a common folder....
Where... do you mean solution folder or a folder in each project?
Change the project settings for these...
How... you mean using Project Properties>> Built>>> Output Path??
Do I have to use an absolute or relative path to Common??
Please need a little more clarification on this.
SMK
|
|
|
|
|
Common to the solution. The reference can be either relative or absolute, although I believe VS converts it to relative if it can.
only two letters away from being an asset
|
|
|
|
|
Hi,
I have a rich text box names "Rtb" with the text "font". when i try to replace the text "font" with some other text, say "Text" using the below code,
Rtb.Rtf = Rtb.Rtf.Replace("font", "Text");
the replaced text comes like "Microsoft Sans Serif;Text" rather than "Text".
Any idea why it is behaving like this and a solution to fix this is welcome.
|
|
|
|
|
Because you are treating the formatted text as if it was just text. Your replacement conflicts with the formatting in the string. What you see is broken formatting spilling into the text.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi,
Thanks for the reply.
I am doing that to maintain the format of the replaced text. Is there any other way to do the same?
|
|
|
|
|
how can i reboot my pc with c code ?
|
|
|
|
|
|
Right message board, please
SkyWalker
|
|
|
|