|
I don't have any experience with Crystal Reports, but do you really have to convert a number to a string? I can see the challange in doing the opposite though...
|
|
|
|
|
|
Hi, I have a xml file with more than 1 GB size. I have to read the xml node value from the xml file. I can load the xml file and then read the value of node, but If I load the file its decrease the performance of the application. Is there any other method by which I can read the node value without loading the xml file ?
Pankaj
|
|
|
|
|
Using XMLReader might be one way.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
hii I am desining a form that has glass effect. Well this code works on vista but i need it on Xp. The i am using gets an error saying that "DllNotFound Exception was unhandled". Well I have copyied all the dll that reqired for glass effect from vista.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback;
using System.Diagnostics;
using System.Drawing.Drawing2D;
namespace welcome_page
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
this.FitGlass();
}
Video video;
private welcome_page.VistaGlassEffect.VistaApi.Margins marg;
private Rectangle topRect = Rectangle.Empty;
private Rectangle botRect = Rectangle.Empty;
private Rectangle lefRect = Rectangle.Empty;
private Rectangle rigRect = Rectangle.Empty;
private void FitGlass()
{
// If DWM is not enabled then get out
if (!this.IsGlassEnabled())
{
return;
}
// Set the Margins to their default values
marg.Top = 600; // extend from the top
marg.Left = 400; // not used in this sample but could be
marg.Right = 200; // not used in this sample but could be
marg.Bottom = 860;// not used in this sample but could be
this.Paint += new PaintEventHandler(this.Form1_Paint);
// call the function that gives us glass,
// passing a reference to our inset Margins
welcome_page.VistaGlassEffect.VistaApi.DwmExtendFrameIntoClientArea(this.Handle, ref marg);
}
private void apply()
{
this.Paint -= new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);
this.RecreateHandle(); //needed if changing on the fly
this.FitGlass();
}
private bool IsGlassEnabled()
{
//if (Environment.OSVersion.Version.Major < 6)
//{
// Debug.WriteLine("How about trying this on Vista?");
// return false;
//}
//Check if DWM is enabled
bool isGlassSupported = false;
welcome_page.VistaGlassEffect.VistaApi.DwmIsCompositionEnabled(ref isGlassSupported);
return isGlassSupported;
}
// Alpha-blending Paint after the glass extension
// this seems better than the winforms transparency approach because here we can click on the glass!
private void Form1_Paint(object sender, PaintEventArgs e)
{
// black brush for Alpha transparency
SolidBrush blackBrush = new SolidBrush(Color.Black);
Graphics g = e.Graphics;
if (this.IsGlassEnabled())
{
// setup the rectangles
topRect = new Rectangle(0, 0, this.ClientSize.Width, marg.Top);
lefRect = new Rectangle(0, 0, marg.Left, this.ClientSize.Height);
rigRect = new Rectangle(this.ClientSize.Width - marg.Right, 0, marg.Right, this.ClientSize.Height);
botRect = new Rectangle(0, this.ClientSize.Height - marg.Bottom, this.ClientSize.Width, marg.Bottom);
// Fill Rectangles
g.FillRectangle(blackBrush, topRect);
g.FillRectangle(blackBrush, lefRect);
g.FillRectangle(blackBrush, rigRect);
g.FillRectangle(blackBrush, botRect);
}
blackBrush.Dispose();
}
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == welcome_page.VistaGlassEffect.VistaApi.WM_NCHITTEST // if this is a click
&& m.Result.ToInt32() == welcome_page.VistaGlassEffect.VistaApi.HTCLIENT // ...and it is on the client
&& this.IsOnGlass(m.LParam.ToInt32())) // ...and specifically in the glass area
{
m.Result = new IntPtr(welcome_page.VistaGlassEffect.VistaApi.HTCAPTION); // lie and say they clicked on the title bar
}
}
private bool IsOnGlass(int lParam)
{
// sanity check
if (!this.IsGlassEnabled())
{
return false;
}
// get screen coordinates
int x = (lParam << 16) >> 16; // lo order word
int y = lParam >> 16; // hi order word
// translate screen coordinates to client area
Point p = this.PointToClient(new Point(x, y));
// work out if point clicked is on glass
if (topRect.Contains(p) || lefRect.Contains(p) || rigRect.Contains(p) || botRect.Contains(p))
{
return true;
}
return false;
}
void buttn()
{
}
private void Form2_Load(object sender, EventArgs e)
{
int width = panel1.Width;
int height = panel1.Height;
System.Uri u = new Uri(@"Z:\B090105\Teja\C2\teja.avi");
video = Video.FromUrl(u);
video.Owner = panel1;
video.Play();
panel1.Size = new Size(width, height);
//this.apply();
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
//SpVoice sp = new SpVoice();
//sp.Speak("Who is this bich", SpeechVoiceSpeakFlags.SVSFlagsAsync);
//sp.WaitUntilDone(Timeout.Infinite);
}
}
}
Reply Me fast please
|
|
|
|
|
Windows XP does not support glass effect, it's Vista only.
|
|
|
|
|
Viswa Teja wrote: Reply Me fast please
I think understanding your post itself a time consuming one instead how can you expect a fast reply...
|
|
|
|
|
Viswa Teja wrote: "DllNotFound Exception was unhandled". Well I have copyied all the dll that reqired for glass effect from vista.
I'm impressed.
If you succeeded in copying all the dlls required for the vista glass (which of course you have not) and placed them on Windows XP then you would not have XP anymore but vista as you will need the entire vista operating system for glass to work.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
what do you mean by notify icon
|
|
|
|
|
ap kis se puch rahe hai
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Well, I mean an icon that acts as a visual indicator of something in the notification tray. What do you mean by notify icon, why ask for VB in a C# forum, and who put the ang in the boomshangalang?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Sometimes you are so stoopid Pete!
No one put the ang in the boomshangalang, it's always been there; 'boomshalang' just sounds silly.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
You see, I assumed it was the same person who put the bop in the bop-do-wop-shoowop.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
These are all good questions. Now if only we could get some answers. Seems like it is going to be one of those days again...
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Hi,
I have Product Key of Dot net 2005 for 30 days, that ends.
Please Provide me Full Version key
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:22am.
|
|
|
|
|
i am student. i am unable to buy it. for practice. i need that
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:22am.
|
|
|
|
|
Or not. Depends on where you live
|
|
|
|
|
You can probably try express editions[^]. I think those are free.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
there is 3 month trial
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
No, Express versions are free, as in gratis, for as long as you like.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Vikash Yadav wrote: Dot net 2005
What? You mean VS 2005, right?
Vikash Yadav wrote: Please Provide me Full Version key
Ask MS.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
yes
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
You do know that you are asking us to be complicit in theft don't you? Don't give me this crap about you being a poor student; there are options available to you as a student, legal options, which you can pursue first. I hope you wouldn't ask us to steal food for you because you're a poor student, so why do you think this is different.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|