|
That means you cant' help me...?
I search a lot but unable to get proper solution...
Please help....
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Pankaj - Joshi wrote: That means you cant' help me...?
You asked for guidance
Pankaj - Joshi wrote: Please guide me
I guided you
Pankaj - Joshi wrote: Please help
If you want more specific help you need to ask more specific questions. I have given you all the general guidance I can on the subject of updating applications. I can't alter the reality that it is a large subject and in many cases it is also somewhat complex. If you desire to be a competent software developer, at some point you have to stop looking for the magic bullet solution to problems and realize you just have to start researching a subject and stick with it until you have gained an understanding of the domain sufficient to provide yourself with a solution to your problem.
led mike
|
|
|
|
|
Hi,
I want to assign Styles to certain WPF UserControls at runtime. The first assignment always works, but assigning other Styles to the control never results in calling the PropertyChangeCallbacks. On the other hand OnStyleChange is called...?
The DP-definition of the UserControl looks like following:
public static readonly DependencyProperty FooterGradientBottomProperty =
DependencyProperty.Register ("FooterGradientBottom", typeof (Color),
typeof (subItem), new FrameworkPropertyMetadata (Color.FromArgb (255, 255, 255, 255),
FrameworkPropertyMetadataOptions.AffectsRender,
new PropertyChangedCallback (FooterGradientBottom_Changed)));
public Color FooterGradientBottom
{
get
{
return (Color) GetValue (FooterGradientBottomProperty);
}
set
{
SetValue (FooterGradientBottomProperty, value);
this.footerGradientBottom.Color = value;
}
}
private static void FooterGradientBottom_Changed (object sender,
DependencyPropertyChangedEventArgs args)
{
((subItem) sender).FooterGradientBottom = (Color) args.NewValue;
}
The Style-item, which shall be changed by the DPs was defined in XAML like this:
<code>
...
<GradientStop x:Name="footerGradientBottom" Offset="1"/>
...
</code>
Finally I assign Styles (from the static resource) to the UserControl in following way:
<code>
this.Style = (Style) this.FindResource ("HighlightedStyle");
</code>
As mentioned, the first Style is applied properly, all following assignments are without effect.
Has somebody an idea why?
Many thanks in advance,
Alex
modified on Tuesday, January 15, 2008 3:35:20 AM
|
|
|
|
|
I have created a windows application using C# and I am trying to send an email from this code. I have configured the SMTP server on the same machine on which the application resides through IIS, though the mail server is different (some different IP). The mail application runs but, no mail is sent and an error message is received.
Kindly Help
-----Have A Nice Day-----
|
|
|
|
|
assiduous wrote: no mail is sent and an error message is received.
What error message are you getting???
|
|
|
|
|
Sorry for the delay.
The error message I am getting is "Failure Sending Email..."
-----Have A Nice Day-----
|
|
|
|
|
|
Hi all,
I'm trying to set the color property of a listbox control to a custom color, more specificly:
Blue: 178
Green: 169
Red: 162
#A2A9B2
How can I do this?
Many thanks in advacne
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
<br />
using System.Drawing<br />
<br />
ListBox.BackColor=Color.FromArgb(178, 169, 162);<br />
|
|
|
|
|
|
Hi,
Any idea how to compile to an older version of .net??
I'm running VS 2005 and I'm using CSharpCodeProvider to compile some code however; I want it to be compiled to an older .net version (ie 1.1).. Any idea how to do it even in a tricky way?? maybe by importing that library from .net 1.1, please help guys
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Looks helpful, thanks Dave!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
At the command line? That's easy.
|
|
|
|
|
Excuse me
How??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
By calling the appropriate csc.exe .
There's a different version for each .NET version.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
You'll have to call %WINDIR%\Microsoft.NET\Framework\v1.1.4322\csc.exe to get the C# compiler for .NET 1.1.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
Hi All,
I want to write some application in Doc/view architecture -
What i mean is that i want it to be like Doc/view in the MFC ( like explorer style )
Can i do it in C# ?
If i can - so how to do it ?
Thanks for the help.
|
|
|
|
|
You create a document, then map a view onto that document. Although, you may be better off considering the Model View Controller pattern, as this allows you to connect multiple views to one model (document). Here's a pseudo .NET 3.5 version.
public abstract class ModelBase
{
public ModelBase()
{
Title = string.Empty;
FileLocation = string.Empty;
}
public string Title{ get ; set; }
public string FileLocation { get ; set; }
public abstract void FileSave();
}
public class MyDocument : ModelBase
{
public MyDocument() : base() {}
public override void FileSave()
{
}
}
public abstract class ViewBase<T> where T : ModelBase, new()
{
public ViewBase(T model)
{
Model = model;
}
protected T Model { get ; set ; }
public abstract void Refresh() {}
}
public class MyView : ViewBase<MyDocument>
{
public MyView (MyDocument doc) : base (doc)
{
}
public override void Refresh()
{
}
}
public class ControllerBase<T, U>
where T : ModelBase
where U : ViewBase
{
private T _model;
private List<U> _views = new List<U>();
public ControllerBase(T model)
{
_model = model;
}
public void AttachView(U view)
{
_views.Add(view);
}
public void RefreshAll()
{
foreach (ViewBase view in _views)
{
view.Refresh();
}
}
} I've just typed this into IE, so I apologise if the syntax isn't 100% correct but this should get you started.
|
|
|
|
|
Hi,
I develop an application by visual studio 2005, programming language C#, and doesn't used any other style tools.
After used my application, my friend give me his opinion that I shouldn't use office 2003 menu because it doesn't suite with GUI. he said I should use native vista menu. I think it's good idea so I want to change style menu, but In visual studio 2005, (menu option) Render Mode have 3 options: System, Programming, ManagerRenderMode.
I found out that Microsoft support a class VisualStyleElement but I don't know how to used it!
I wish some one can show me how to use VisualStyleElement class. I took a look at some sample in MSDN website but I didn't clearly understand.
Thanks
|
|
|
|
|
KienNT78 wrote: VisualStyleElement but I don't know how to used it
Google it.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Google didn't help...All results are unuseful...
|
|
|
|
|
I have very large application its multi threaded as well now is it possible to know which methods was invoked like stack trace without having a breakpoint. The application has no error but i need to know which method of which class got executed.
|
|
|
|