When I call GetProperties() on a type, the properties are ordered as they are written in the source code. This is very handy but my question is, if this is a guaranteed behavior or may this change depending on the runtime version and the environment. Does anyone know something about that?
...
This question is about WinForms RichTextbox.
I have a RichTextbox with ScrollBars property set to Vertical.
I change it's RTF contents from the code and sometimes the vertical scrollbar appears disabled - when it should be enabled. This should never happen - the scrollbar should be either enabled, or not shown at all. (I had a similar...
Hi,
I am using commandfield edit button to edit the row of the gridview. But unable to perform the basics.
This gridview is in update panel. When I press Edit button it shows UPDATE and CANCEL button but when I press UPDATE button it updates the DB but UPDATE button doesn't go back to EDIT one.
While Cancel is working as it should. L...
Hi,
I'm doing some work at the moment trying to convert some legacy code into .net 3.5. This involves taking both .aspx page and codebehind and rewriting most of the latter whilst retaining most of the former.
I've run into an annoying bug which seems to be caused by something conflicting with the MS Ajax Toolkit and I can't work out w...
i try to write a query but my query finished with "Control nvarchar(500), ". i want to finish "Control nvarchar(500)" How can remove ",", " "?
void SqlTable(List listMyColumnNames, string TableName)
{
string Text = "Create table ENG_"+TableName+" (ENG_"+TableName+"_ID integer PRIMARY KEY identity(1,1), ";
...
This is quite obscure, I may just be missing something extremely simple.
Scenario 1
Lets say I create a gradient brush, like this in my <Window.Resources> section:
<LinearGradientBrush x:Key="GridRowSelectedBackBrushGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#404040" Offset="0.0" />
<GradientStop Color="#4...
I have a .NET assembly, to be released. Its release build includes:
A public, documented API of methods which people are supposed to use
A public but undocumented API of other methods, which exist only in order to help test the assembly, and which people are not supposed to use
The assembly to be released is a custom control, not an ...
So this question is regarding the .Net IAsyncResult design pattern and the necessity of calling EndInvoke as covered in this question
Background
I have some code where I'm firing off potentially many asynchronous calls to a particular function and then waiting for all these calls to finish before using EndInvoke() to get back all the r...
hello
i'm having a problem, i try to solve it since yesterday but no luck.
i have 32 bit delphi dll which i want to import in .NET Win Application. this application has to be built on ANY CPU mode. of course, there's BadImageFormatException coming, which means that in x64 application can't be loaded x86 dll..
i googled around and find ...
With windows workflow when using the tracking service, the SqlTrackingQuery.GetWorkflows() method returns correctly the workflow type and assembly version on the wire from the DB query - but when one comes to query the returned SqlTrackingWorkflowInstance object it's WorkflowType.AssemblyQualifiedName property is returned as the current...
Hi,
Did you anyone used NHibernate with .NET 4.0 framework?
Thanks
SDS
...
I was added the DataPager Control inside Listview. There is no problem while displaying the data. But When I click the Next page button I m getting error.
Error: The Select operation is not supported by ObjectDataSource 'ObjectDataSource2' unless the SelectMethod is specified.
protected void Page_Load(object sender, EventArgs e)
...
This is more of a documentation than a real question. I noticed the principle it is not described on SO yet (did I miss it?), so here goes:
Imagine a generic class that contains a static member:
class Foo<T> {
public static int member;
}
Is there a new instance of the member for each specific class, or is there only a single inst...
I am trying to create a desktop shortcut from vb.net code on a Windows 7 box (64 bit). The following code works on XP, but when run on Win7 I just get a message stating the App has stopped working:
Imports IWshRuntimeLibrary
Dim WshShell As WshShellClass = New WshShellClass
Dim MyShortcut As IWshRuntimeLibrary.IWshShortcu...
I try to write a class that will draw itself on a control(.NET 2). But this "thing" does not repaint itself properly(does not invalidate the parent as it should).
Here is the usage:
Public Class Form1
Dim myCadre As New Cadre
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Cli...
I'm trying to avoid hardcoding in a .net 2.0 soon to be 3.5 application.
I have a large enumeration which I wish to map 1 to 1 to a set of strings. Each enumerated value will also map to 1 of 2 values indicating an action. The existing code does this with a big switch statement but this seems ugly to me.
Is there a better way of stori...
How can i write text field via ",". i try to write rext script with ListDictionary:
ld parameters: a,b,c,d
i need : Text=a,b,c,d
void InsertDataToSql(ListDictionary ld, string TableName)
{
string Text = "insert into ENG_" + TableName + " VALUES(";
string AddText = String.Join(ld, ', ');
...
Dear all,
I downloaded the Windows Phone 7 SDK yesterday but when I installed it on my Windows XP it complaint that it needs to be installed on Windows 7. My question is, is it possible to install the Windows Phone 7 SDK or develop for Windows Phone 7 on WinXP? Is there any workaround that has been made to overcome this?
Thank you for ...
I have a small Java Swing application that I want to rewrite in WPF .NET.
The application uses a JTable with an AbstractTableModel and a custom TableCellRenderer. I use my custom cell renderer to display the objects in two rows.
What is the corresponding WPF .NET component to JTable?
...
I got handle of Phone window , and hook the window like below:
Private Sub SetHook()
mOldWndProc = SetWindowLong(mhWnd, GWL_WNDPROC,
Marshal.GetFunctionPointerForDelegate(mProc))
End Sub
'Restores the original window procedure for the control.
Private Sub Unhook()
SetWindowLong(mhWnd, GWL_WNDPROC, mOldW...