hi all,
I am wondering what the best approach is for creating a horizontal list with custom buttons. I read there is no native control for that:
I am considering a UIView with a scroll view inside. On this scrollview I visualize my array of button objects.
Any thoughts?
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!
I use windows media player control in C# ,I wanna semi-transparent video at Video play time ,I set Opacity to 0.5 in form , can semi-transparent at windows 7 but no translucent at windows Xp,Pls tell me The illustrates how it is done at WIN XP? I use development environment is visual studio 2008, .Net framework 2.0
I want to retrieve the left 3 numbers from an integer to be stored in a table. For example, if the int is 1234567, I want to retrieve 123. I want the second number (123) to also be an int; I don't want to convert anything to a string.
(And yes, really I should be working with strings. But I don't have control over that aspect of the issue.)
Thank you!
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#
Greetings, here is the scenario.
I have and .aspx page with and updatepanel like this
<asp:UpdatePanel id="uPanelMain" runat="server">
<ContentTemplate>
<uc:Calendar id="ucCalendar" runat="server" Visible="true" />
<uc:Scoring id="ucScoring" runat="server" Visible="false" />
</ContentTemplate>
The control ucCalendar is loaded first and it contains a grid like this
<asp:DataGrid CssClass="grid" ID="gridGames" runat="server" AutoGenerateColumns="False" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridScoringRow"
GridLines="None" ItemStyle-BackColor="#EEEEEE" AlternatingItemStyle-BackColor="#F5F5F5"
OnEditCommand="doScoreGame" OnDeleteCommand="doEditGame" OnCancelCommand="printLineup" OnItemDataBound="gridDataBound">
<Columns>
<asp:TemplateColumn >
<ItemTemplate>
<asp:CheckBox ID="chkDelete" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="idGame" Visible="false" />
<asp:BoundColumn DataField="isClose" Visible="false" />
<asp:TemplateColumn HeaderText="Status">
<ItemTemplate>
<asp:Image ID="imgStatus" runat="server" ImageUrl="~/img/icoX.png" alt="icoStatus" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:LinkButton ID="linkScore" runat="server" CommandName="Edit" Text="Score" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
So when i click the "linkButton", the codebehind of the userControl calls a public method in the .aspx as this:
From the userControl
protected void doScoreGame(object sender, DataGridCommandEventArgs e)
{
((GM)this.Page).showScoring(null, null);
}
From the .aspx page
public void showScoring(object sender, EventArgs e)
{
removeLastLoadedControl();
ucScoring.Visible = true;
}
So, here comes the problem:
There are two postbacks taking place when I change the visible attribute of the ucScoring control.
The first postback is fine, it's handled by the updatePanel.
The second postback is a full postback, and i really don't understand why it is happening.
I'm really lost here, please help!
Thanks
Mat
I have a webform with a ListBox control bind to a DataTable with a string column mapped(bound) to dataText field. This column retruns a string in all lowercase.
I want to display the string in title case(sometimes uppercase) what value should I assign to DataTextFormatString field to get this functionality? Is there any better way of doing this?
Thanks.
Maheep
In my Java application I have to custom-paint a control and for that I need to use the same font colors as JButton. (Enabled an disabled) I don't want to to hard-code them, because the user can change the Substance skin at runtime.
I'm aware of the ColorSchemes but I'm not sure how to proceed once I have the color scheme of the current skin. Also the Substance documentation says something about creating your own color scheme, but I just can't figure out the way to retrieve a certain color.
I am trying to load nib at run time. I am using Button control & binding it to one method & outlet.
But problem is that when i load it run time it not display button.
Also When i click on position where i placed button in interface builder, it executes binded method. I don't understand what is happening ?
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 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 org.eclipse.swt.widgets.Composite that I want to be able to enable/disable programatically. The org.eclipse.swt.widgets.Control.setEnabled(boolean enabled) method works fine, but it does not give any visual information that the widget(s) are disabled.
What I would like to do is to have the disabled state mean the widgets are greyed out. Right now they just enter a weird state where the user is unable to click or perform any action on them.
I'm new to C#, and I want to use a track-bar to change a form's opacity.
This is my code:
decimal trans = trackBar1.Value / 5000
this.Opacity = trans
When I try to build it, I get this error:
Cannot implicitly convert type 'decimal' to 'double'
I tried making trans a double, but then the control doesn't work. This code worked fine for me in VB.NET.
What do I need to do differently?
Iam getting all the messages from CDYNE SMS Notify! Web Service and storing into the local database table and then
showing into the itemcontrol from wpf control. selects one of the message and then click delete. i am able to delete from the
local database but its not getting deleted from the service level.
how to delete the messages from the service level as well on click of delete button.
please help me or suggest me..
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.
i have a group of radio buttons that are generated on the fly from the db into a partial control then rendered on the page as html and they all have the same name
now in firefox and chrome the following code works fine
$(".FlightSelectedRadio").live('click', function() {
alert("after flight select");
$("#ToisGarantueedBid").attr("disabled", false);
});
however in ie it doesnt work on the first select of a radio but only fires if u select something else ? any ideas wat the problem is ?
Can I set an image for the view's own background image? I don't want to use UIImageView control. It seems not to be possible using IB. Do I have to do it programatically?
Thank you.
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?
How to display pages from the last to the first number in DataPager? Is there any tricks or I can do this with standart properties?
I use Repeater with LinqDataSource control.
I'm trying to use the ImageButton control for client-side script execution only. I can specify the client-side script to execute using the OnClientClick property, but how do I stop it from trying to post every time the user clicks it? There is no reason to post when this button is clicked. I've set CausesValidation to False, but this doesn't stop it from posting.
Basically I have a Search Text Box with a LinkButton Control on which the click event is fired. now what i want is when the user type keywords and press enter the Click event got fired.
So No Javascript Only ASP.NET With VB.NET v2.0
Sincerely
Rajeev
[email protected]
I'm looking for a way to host a web UI in a windows service so that I can configure and control it within a browser. I'd like a simple and lightweight solution, and I don't want to use IIS.
I could probably hand-roll most of it but I was wondering if there was something already made to ease the process.
Hi all
I use a Wizard control in the page with some steps. Is there possible to change the text for Next button of each step. The text for each step is different.
Best Regards,