Hi, I can't get the original HTML source in
as the HTML code in viewsource. The code comes without quotes and all of the tag names comes as upper case. Is there any way to get original source in axWebBrowser as in System.Windows.Froms.WebBrowser.DocumentText ?
I have 2 user controls but I want to randomly add them to a form in a scrollable tile manner.
Each control is referenced by a name, so I can erase a specific control. How do I achieve this can someone give me heads up on how to achieve this..
I cant find anything to get me going.
I have 2 user control which consists of a panel and a textbox and a button is on the panel.
In the form I call the panel(usercontrol) with a button. But I can only make it appear once. I want it to tile across the page. I want to randomly place each user control by a name reference so as I can erase a specific panel.
private void button2_Click(object sender, EventArgs e)
UserControl1 bb = new UserControl1();
I have used a flowcontrol container in the past to deal with the positioning of the UCs. Placing them manually was a PITA, after designing the UC to match the size of the flowcontrol 1 column width it worked well. I basically wanted a scrollable list of the UCs, one for each application the user has access to.
Never underestimate the power of human stupidity
Is it a web or windows application?
You can´t manage new logins without a database.
Make SQL store procedures for to add,delete logins, to login and to logout.
For security, let only your users execute your written store procedures, (don´t let then type sql for exemple).
I currently dabble in programming with regular expressions. My problem is that I don't know, how I can extract a match if the programm finds one in a string. I already googled, but I couldn't found a site that could explain me how to manage it. I already tried Match and MatchCollection but it did not work. My previous source is following:
string test = "gjhsdjfjhfsdfjhsdf\ntztrzrtz\n\"http://screenshots.filesnetwork.com/68/potd/t_1215615627_85.jpg\"\nggdgfdg56ggdg";
string pattern = @"|.+\""http\://screenshots\.filesnetwork\.com/68/potd/t_[0-9]+_[0-9]+\.jpg\"".+|""";
Regex re = new Regex(pattern,RegexOptions.Multiline);
I am helpless with the rest, even though I know that it won't be that difficult.
I'm looking forward to your answers.
The Value property of the Match object contains the entire string that was matched. The Groups collection contains the values from the groups that you specified in the pattern, in this case the group matching the url.
Despite everything, the person most likely to be fooling you next is yourself.
I am using Visual Studio 2005 and C# to develope a Windows application.
I have a DataGridView and when the clicks on a cell a UserControl is create and displayed on the DataGridView at the position of the cell and with the size of the cell. When I scroll the DataGridView the position of the UserControls are also recalculated to still be displayed on the original cell where the user clicked. In other words the UserControls are scrolled with the cells that they are on. When the cell is scrolled off the screen (cell.Displayed = false) then the UserControl is also not displayed.
I am using the DataGridView.Scroll event for this. The problem is when the cell is scrolled back onto the screen it does not disply the UserControl, because the Scroll event fires at the beginning of the scroll before the specific cell has been scrolled back into view.
Is there a way of detecting when the scrolling has completed so that I can then call the method to reposition the UserControls?