|
as far as I know the express edition doesn't not listen to network connections by default. you might want to try this: sql manager / server network configuration / protocols / enable tcp..
|
|
|
|
|
Hello,
I wrote some UI control with C# (VS 2005).
I need to set this control on some dialog that i have - but i don't know how to do it.
Someone can help me ?
Thanks for any help.
|
|
|
|
|
Build it. The ToolBox of VS will has new user control. Drag it to your dialog.
imagic
|
|
|
|
|
I try but its not appear in the Toolbox of the VS -
Maybe i need to turn on some properties ? or something like that ?
|
|
|
|
|
Maybe this affect this -
But how can i solve this problem ?
Thanks.
|
|
|
|
|
If your custom control is written in C#, without seeing the class definition code, we're guessing at what the problem is.
Did you inherit from another control? Maybe UserControl or Control? Did you write this control from scratch? Is the class attributed properly?
|
|
|
|
|
I wrote the control from scratch,
In my control i inherit from class System.Windows.Forms.UserControl.
I think that the class attributed properly - but i not sure.
What the relevant attributed properly that i need to check ?
What is the right attributed properly ?
Thanks.
|
|
|
|
|
UserControl is normally used to build a composite control using existing controls.
Inheriting from Control is usually used to build a control from scratch.
You can also inherit from an existing control, modifying its behavior.
There is no single attribute for controls. There's a bunch of them, each used for very specific things.
For example, this is one of the properties in a control I made:
''' <summary>
''' Gets or sets whether the control will stay within its parent container's visible bounds.
''' </summary>
''' <returns>A <see cref="System.Boolean"></see> value.</returns>
<Bindable(True), DefaultValue(True), Category("Behavior"), _
Description("Gets or sets whether the control will stay within its parent container's visible bounds."), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
Public Property StayWithinParentBounds() As Boolean
Get
Return m_StayWithinParent
End Get
Set(ByVal value As Boolean)
If value <> m_StayWithinParent Then
m_StayWithinParent = value
MoveControlWithinBounds()
Me.OnStayWithinParentBoundsChanged(EventArgs.Empty)
End If
End Set
End Property
|
|
|
|
|
Hi,
There is something fundamental which i donn't get it.
I created a new Win Forms project in dotNet 2.0.
I added Keys and Values to the settings.
When I use ConfigurationManager.AppSettings, it returns empty collection?!
I can get the values through the use of Properties.Settings - Strongly
types.
But how do i get the collection itself?
Why the is empty ConfigurationManager.AppSettings?
Thanks
Goldwind
|
|
|
|
|
What error it says?
Whether the root of the path is wrong or what error it says when you use ConfigurationManager.AppSettings.
Let me know it in Detail.
Regards,
Satips.
|
|
|
|
|
No error. Just an empty collection.
The app.config had paired values but it didnt refer to it.
I just addressed : ConfigurationManager.AppSettings
didnt use open.. method.
Goldwind
|
|
|
|
|
It's two completely different things. Properties.Settings uses the ".settings" file, but the ConfigurationManager uses .config files
-- modified at 16:42 Monday 25th June, 2007
Note that the above statement is wrong. I didn't check it before I posted. Serves me right for depending on my own brain
|
|
|
|
|
Actually Properties.Settings reads from .config at runtime, the .settings files are designer files.
|
|
|
|
|
Oh you're right... sorry I didn't actually check.
|
|
|
|
|
Never mind, it happens to the best of us...
|
|
|
|
|
Hi,
I getting some command when I compile – I don’t gets any error or warning but I want to know what this mean.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /debug+ /debug:full /optimize- /out:"obj\Any CPU\Debug\MyClass.dll" /target:library
10x.
|
|
|
|
|
|
That's the command line that launched the C# compiler to compile your project.
|
|
|
|
|
i Writh Project And use Crystalreport in project
and create setup
but when installing program to PC
and run
crystalreporn not loaded
and show error for DLL Crystalreport
how to add Dll crystalreport in project C#2005 ????
"I'm sorry I'm not good english Write"
thanks
reza mohseni
|
|
|
|
|
(1) Open your project in Visual Studio .NET. Open the Solution Explorer, expand the Project node in the tree and select the References node. Right mouse click and select Add Reference.
(2) On the Add Reference dialog box, select the CrystalDecisions.CrystalReports.Engine component and press the Select button. This will add the library to the Selected Components area at the bottom of the dialog. Repeat this for the CrystalDecisions.Shared component. Press OK on the dialog to add this to the Visual Studio .NET project.
(3) Save the project. You can either build from Visual Studio .NET or you can build from Iron Speed Designer.
Regards,
Satips.
|
|
|
|
|
Thanks for your help to me but i couldn't find the answer yet.
What i want to do is
There are lines of text in the box
1. while (k<20)
2. {
3. for(int i=0;i<10;i++)
4. {
5. Console.writeLine("wwwwwww");
6. Console.writeLine("wwwwwww");
7. }
8. k++;
9. }
I want to write a function if the user send the line numbers
say (3,7) the coding related to for loop should be colourd.
Can u pls help me.........pls.
|
|
|
|
|
Have you considered the following functions and properties?
Lines
Select
SelectionStart
GetFirstCharIndexOfCurrentLine
SelectionColor
SelectionBackColor
|
|
|
|
|
Yes I tried to use Line property which contains the text in each line seperately in an array element.But when i use Line[i] to locate my line there was an erroe saying that there ia no array like that. If u can pls send me an ex coding how to get the text in a line using the Line property. It is urgent.
Thanks a lot.
|
|
|
|
|
You're right. Lines only works if you hit enter to move to the next line. GetFirstCharIndexFromLine should work for you:
private void btnGetLines_Click(object sender, EventArgs e)
{
try
{
string[] lines = richTextBox3.Lines;
int length = richTextBox3.Text.Length;
int index0 = richTextBox3.GetFirstCharIndexFromLine(0);
int index1 = richTextBox3.GetFirstCharIndexFromLine(1);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Good Luck.
|
|
|
|
|
i want to set First, Last in the datagrid page index at the web application ,how could i do that ? im working with .net1.1.
any help could be useful
|
|
|
|