I've heard about the possibility to use attached properties to avoid writing a custom control in WPF.
Could you explain me how or address me to a tutorial?
Thank you
Hi,
I have created a Report using Crystal Report(Visual Studio 2005 and .NET Framework 2.0). In the Report Header section I have added a TextBox control to display header for the report. But when I execute the application the Text in the Report Header section is not displayed.
What should I do to view the text entered in the report header section?
Thanks in advance!
Say I have a data structure like a Dictionary<string, Dictionary<string, int>> or similar, and I want to render this as an HTML table with row-headers as the first string key, and column headers as the second string key. Is there a built-in or other Control for this?
i want to do a screen capture of a running silverlight 3 application, from within the app, and then i want to present this to the user as a thumbnail, say in an Image control.
am i dreaming?
I had a web reference set in my VS2008 ASP.NET project, but due to some source control weirdness it is no longer listed in the project.
I have the set of files in the Web References folder under my project. There's a .wsdl, .disco and several .datasource files.
Is there any way to re-add this web reference through the existing files rather than using the "Add Web Reference" dialog?
Suppose I am executing several queries on the server using mysql_query. The results of every query affect the subsequent query. Will every call of mysql_query be completely executed before control moves on to the next one?
I have a function with this code:
foreach (PropertyInfo propertyInfo in typeof(T).GetProperties()){
//SOME CODE
if (propertyInfo.CanWrite)
propertyInfo.SetValue(myCopy, propertyInfo.GetValue(obj, null), null);
}
I would avoid to check "collection" properties; to do this now I have insert this control:
if (propertyInfo.PropertyType.Name.Contains("List")
|| propertyInfo.PropertyType.Name.Contains("Enumerable")
|| propertyInfo.PropertyType.Name.Contains("Collection"))
continue;
but, It don't like me!
Which is a better way to do it?
I have a windows form with a listview control. I set the MultiSelect property to true and I added a selected_index changed event.
I get the event fired when I click the same index as the current selected index.
My expectation is that I will not get the event fired. The strange thing is that the event fired 1 second after I click the index.
I appreciate for any reply to explain why this is happening.
I have a UserControl which has a style, that i would like to be influenced by a settings checkbox on the main window hosting my user control
so myControl.xaml has a Style which i would like to have a trigger, that should observe a CheckBox inside MainWindow.xaml
i know one way to do this, would be to create a local property in myControl.cs which would look at the property in MainWindow.cs which would in turn return state of that cheeckbox.. but maybe there is a way to do this w/out writing any c# code ?
I have data in the form of four columns. The first three columns represent time, value1, value 2. The fourth column is binary, all 0's or 1's. Is there a way to tell excel to delete time, value1 and value 2, when the corresponding binary value in column four is 0? I know this is a lot easier in C++ or matlab, but for reasons beyond my control, I must do it in excel.
Actually when I run a particular JSP page it run perfectly(with external style sheet) but when servlet return back the control through RequestDispatcher, the page is not displaying properly means it don't took the css file path.
In my program the stylesheet is present inside css directory and the page is present inside another directory named JSP.
The code which include the css in the program is-
<link rel="stylesheet" href="../css/stylesheet.css" type="text/css"/>
I was recently using a commercial centrally controlled version control system in a large company with about 100 different subsystems written in different operating systems and languages, and I have noticed that several developers use either git or mercurial on their pet projects, but not for their work systems. I personally am more familiar with git but was wondering what reasons are their to "Not" use Git in the enterprise, apart from the fact that the choice has already been made (we have many problems with our centrally controlled version system, so I can't say it is brilliant).
I'm trying to create a simple button that deletes a row from the database. I would like to set the ID of the control to something like delete_MATERIALID_button however, when I do this:
<asp:Button ID='delete_<%# Eval("MatID") %>_button' runat="server" Text="Delete" />
I get an error that the name can't be generated like that.
I know that there must be a simple solution, I just can't figure it out.
I have a dialog with few controls. There is a TextBox named txtControl and two Buttons Accept and Cancel. I want that once the focus is in txtControl, the focus should not go away, until I click on Accept or Cancel button.
If I try to click on any other control without clicking on Accept or Cancel button, then focus should remains in txtControl. Also I don't want to disable or gay out other controls.
hi all
i want to make a 2 comboBoxes ,the first one shows Hours and the Second Shows minutes but i cant do so in windows application as i have working as a web dev for a while and i forgot so i want to declare listItems then bind it to combo box
i want to make it as a custom control
so i want some help to tell me how to do that
i am using VS 2008
thnxx
Hi,
I'm in a team that all members have VS2008 installed on their machine, we have tortois svn as source control system.
Is there a solution that I can work with them with VS2010 installed on my machine? Or I have to install VS2008 to work with the other members?
thanks.
how to get network connection list in my computer with c#
vpn list or other
in windows 7 this path Control Panel\Network and Internet\Network Connections
i need for write a function to connect to internet in c#
I noticed that when I build a given C# source to produce a DLL, the binary output is different each time. It would be helpful for our build / deployment process if this was not the case. Can I control this?
I open forms inside tabs of a page control. These forms may contain actions with shortcuts. And I want these shortcuts to be fired only when the tab that contain this form is active.
I tried to override form's IsShortCut but it's not called. Form's OnShortCut is not called either.
I would like to avoid putting code on each action to check this.
I'm using Delphi 2010.
Hii,
I m working in Asp.net 2.0 with C#.... I have a custom control and i have to use 'Datasource' property which is exactly like a repeater having. Any idea regarding this pls help me.
Quoted from here:
mvn archetype:generate -DgroupId=org.sonatype.mavenbook.simple \
-DartifactId=simple \
-DpackageName=org.sonatype.mavenbook \
-Dversion=1.0-SNAPSHOT
And I also have to specify an archetype number...
It seems that maven isn't satisfied to be just a Java build tool,but want to control all aspect of developing...
Can someone recommend a really dedicated build tool for Java?
To remove a normal marker from a map, I understand you simply call marker.setMap(null), but when implementing the Google Maps directions services, it automatically adds markers A and B onto the map ( calculating directions from point A to point B ). I do not have control over these markers, so I cannot remove them in the normal way. So how can I remove these markers (I have custom markers on the map instead)?