|
That's how they should look. 
|
|
|
|
|
lkort wrote: I use the .Net 3 framework and VS 2005 But my Windows Forms look like old ones, I mean like MFC applications or windows 95 .
Any ideas how to fix this?
Are you using the Zune desktop theme under Windows XP? That theme specifically is not supported by the WPF default styles, causing all the controls to look square and bland.
This is a good start for forcing your WPF app to use a particular Windows theme set:
http://notstatic.com/archives/56[^]
|
|
|
|
|
|
I have to bind a Rectangle's Fill to a Brush ,both of them being declared in '<'App.Resources'>'
It is a easy task using StaticResource for the Fill property
So I've something like this:
I'm using quotes sign so the code can be viewed
'<'Application.Resources'>'
'<'DrawingBrush x:Key="id" x:Name="name"/'>'
'<'DataTemplate DataType="item"'>'
'<'Rectangle Width="30" Height="30" Fill="{StaticResource id}"/'>'
'<'/DataTemplate'>'
'<'/Application.Resources'>'
The hard part is that I want to bind the name of the Brush to the item's BrushID attribute ( as item is a XML element ) ... the name of the brush I want to use is accesible by XPath=@Brush.
so the code should look like this
'<'Application.Resources'>'
'<'DrawingBrush x:Key="id" x:Name="name"/'>'
'<'DataTemplate DataType="item"'>'
'<'Rectangle Width="30" Height="30" Fill="{StaticResource XPath=@BrushID}"/'>'
'<'/DataTemplate'>'
'<'/Application.Resources'>'
BUT
It seems that StaticResource doesn't support XPath.
How should I do this ?
Can anyone help me?
I'm looking forward to your reply.
Mihai
modified 30-Nov-21 21:01pm.
|
|
|
|
|
want to design USB ocilloscope for PC.
I m learning the AT89C51 SERIES. I KNOW BASIC OF c# AND ANALOG ELECTRONICS.
Q:DID I NEED TO KNOW HIGHER TOPICS OF C#, i.e. MULTI-THREADING AND OTHERS?
Q:WHAT WILL BE THE FIRST STEP FOR THIS PROJECT, SHOULD I START WRITING CODE FIRST OR SHOULD I DECIDE WHICH CONTROLLER TO USE AND THEN DESIGN MY H/W, OR SHOULD I PRACTICE ON WINDOWS APPLICATION USING C#?
/////////BOTTOM LINE IS THAT I DON'T KNOW HOW TO BEGIN
|
|
|
|
|
Hi,
first thing you MUST do is unlock the shift key.
then solve the communication problems:
1. what software will you need on PC side to work over USB
2. what software will you need on target side to work over USB
then pay attention to real-time behavior:
3. for the maximum sample rate, bits per sample, and trace duration, figure out
how much data is generated in what time; then try to figure out if a PC can swallow
this in real-time (most likely NO), then decide how much memory you will need
on target side to remedy that.
If and when you have concepts for these three, you can start implementing.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
And just to add to Luc's small list, you will definitely need to know multi-threading since you'll want to display graphical data on the UI while mainting a running capture of the data.
|
|
|
|
|
I keep getting the error "Unable to find entry point named "FindUser" in DLL.
Even though dumpbin says it exists.. as entry point 1
C++ DLL Declaration (WN_USER_SECURITY.dll):
extern "C" BOOL FindUser(CString csPassword,
CString &csUserName,
CString &csUserPriveledge,
BOOL &bUserActive)
{
return bFound;
}
C++ .def file:
; WN_USER_SECURITY.def : Declares the module parameters for the DLL.
LIBRARY "WN_USER_SECURITY"
DESCRIPTION 'WN_USER_SECURITY Windows Dynamic Link Library'
EXPORTS
FindUser @1
C# Declaration:
namespace Material_OIT
{
public class RijndaelDLL
{
[DllImport("WN_USER_SECURITY.dll")]
static public extern bool FindUser(StringBuilder password,
ref StringBuilder username,
ref StringBuilder userPriveledge,
ref StringBuilder userID,
ref StringBuilder userComments,
ref bool userActive);
}
}
C# Call:
RijndaelDLL.FindUser(password1,
ref username,
ref userPriv,
ref userID,
ref userCom,
ref userActive);
|
|
|
|
|
BOOL is typically an Int32.
Also dont use ref on a StringBuilder, it's already a pointer :p
Also the 1st parameter should be only a 'string'. StringBuilder could work, but its overkill.
|
|
|
|
|
hrm, still getting the same error.
|
|
|
|
|
i want to get two oledb data ,use two radio buttons and one textbox get select quary language.please help and send me codes.this is difficult.try done it.
i explain it.
how to send two oledb data to one textbox
example;
oledb data===diposit withdraw
it is diposit=textbox show diposit amount
it is withdraw=textbox show withdraw amount
|
|
|
|
|
When you post a message, you should give it a meaningful title. 'c#' is too vague.
Have you made any attempt to solve the problem yourself? I suggest you do some research, write your own code and post again if you encounter a specific problem.
Paul
|
|
|
|
|
A look at his post history suggests he will never learn
Keep your eyes open, you might spot alternatives.
|
|
|
|
|
All but one of his posts are marked C#
|
|
|
|
|
Hi All,
I want to have the functionality of undo like in MS Outlook.
I don't know how to create the same list like in MS Outlook.
Please help me .
Any idea would be appriciated.
thanx.
Praveen Sharma
|
|
|
|
|
If you're using Windows Forms, look up ToolStripTextBox class.
|
|
|
|
|
Hi
I want to disable the sorting property of datagrid .I set the allowsorting property to false but still i am able to sort on clicking it
How can i do it
Thanks in advance
Regards
DilipRam
|
|
|
|
|
If you have set allow sorting to false, I don't know how you are able to sort by clicking on column headings. Are you using VS 2003? I whipped up a quick example in 2003, set the AllowSorting property to False, and was unable to sort by clicking on column headings.
I suggest that you make sure that the AllowSorting is in fact set to false, or that it is not set back to true in your code somewhere else.
|
|
|
|
|
Hi thanks for the reply
I have set the property to false and havent set any thing in code but also when i am clicking on the col headers it is sorting...
Regards
DilipRam
|
|
|
|
|
Hi,
I have some Form and on it some UserControl that i wrote.
I need to use a lot of string on the userControl ==> so i will put all the string on the resources file of the Form.
I define new static resources variable on the Form class in this way
static public System.ComponentModel.ComponentResourceManager resources
and my plan is to get those string by using this resources variable.
But ... when i insert new string to the resource file and i close the IDE( after save the solution ) and open it again ==> the string is not there any more ((!)).
How to save the strings in some other way ?
Thanks for any help.
|
|
|
|
|
Hi, i already know how to get the lan ip within my c# app, but how do i get the wan ip?
thx in advance!
|
|
|
|
|
|
|
how to create array of string??
I ve to store path of file in array..
I use
string stotefilename[]= new string[50];
is it correct??
if anyone knows abt the array of string then plz reply
thanks
|
|
|
|
|
string[] stotefilename= new string[50];
However, all the strings in that array will be null until you initialize them.
|
|
|
|