|
Did you installed MDAC for your NT OS? I mean Microsoft Data Access Component. If no please install MDAC 2.0 and try to execute the application.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Actually, .NET 1.0 required MDAC 2.6 and 1.1 required 2.7, but you're probably right about his problem.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi, I'm doing my first deployment project and I want to put a shortcut to my application. I've done exactly what they say in MSDN (Walkthrough: Deploying a Windows Application), and my installer installs a shortcut, but when I click on it, a small Windows Installer window appears, seems to set up a few things and then starts my program.
How can I make a shortcut that simply starts my application?
Thanks!!
|
|
|
|
|
After adding project output files in application folder. You can view a file called 'Primery Output from yourprojectname'. Right click this file and choose 'Shortcut to Primary output from your project(Active)'. Choose that and give required name for shortcut. Then if you drag and droup this file to Users Desktop Folder then you will get a shortcut in desktop or if you choose the users Programming Folder then you shortcut will come in Program Menu.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I've had done everything you specified above, but as I said, the shortcut does appear but when I click on it, instead of running my application, it seems to run some kind of Windows Installer window, even though my application is already installed. Some progress bars appears on this window and after (I beleive) re-installing my application, it runs it.
It looks like the shortcut that has been created is a shortcut to the Installation Program. If I remove the CD from which I ran the installer, I can't run my software from the shortcut, it says that the installation CD is not there.
Now I would like to get rid of this Windows Installer window.
Thanks
|
|
|
|
|
This is the expected behavior of Windows Installer if some component of your program is missing. Your shortcut isn't a normal shortcut; it contains custom shell data that has Windows Installer (MSI) check for missing components.
More than likely, you've included some files you probably shouldn't have in your installer. Perhaps these are sample files that get deleted or something. Make sure for these files you set the Vital property to False and that should solve the problem.
More can be done, but not with the Visual Studio Windows Installer projects, which are extremely limited. You can either use Orca from the Windows Installer SDK (part of the Platform SDK[^]) to modify the MSI package database if you know how (read the SDK documentation) or get a commercial package like Wise for Windows Installer[^] or InstallShield Developer[^].
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi I have an image of 45 mb.It is not possible for me to store in a picture box .Is there any way to cut an image part by part & the same image can be pasted without any pixel difference.
Any help would be appreciated
|
|
|
|
|
|
I put a image in asp .net. Now i need to get the property of the image using C#. help me, how to do this
|
|
|
|
|
Once you get the Image object you can get values from the Width and Height properties. A few other are available if you look deeper: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingimageclasstopic.asp
|
|
|
|
|
Just i need to get Visible property only
i declare 2 images within datagrid like
<asp:datagrid id="dGrid" Width="50%" AutoGenerateColumns="False" Runat="server">
<Columns>
<asp:TemplateColumn ItemStyle-Width="10%">
<ItemTemplate>
<asp:Image ID="imgPlus" Runat="server" ImageUrl="iimages\plus.gif"></asp:Image>
<asp:Image ID="imgMinus" Runat="server" ImageUrl="iimages\minus.gif"></asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
Now i can't get the image using id in C#, I asked, how can i get that images id or visible property in C#.
|
|
|
|
|
hello
i have aproblem here mixing RGB rays to produce colors??
i wanna to draw a color triangle using this mixture??
if i cant explain the problem told me to more explanitions
thx
|
|
|
|
|
So you want to draw an equilateral triangle like so:
R
*
***
*****
G ******* B
excuse the crappy ascii graphics
So the red componant of each pixel will depend on how close it is to the R point, the green componant on the distance from G and the blue point from it's distance from B.
Working these out is fairly straightforward using high school trig
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
look u have to know that the center of the triangle is white(255,255,255)
and there is no function draw pixel or points in windows application so plz help
thx
|
|
|
|
|
To draw pixels (assuming you're working on a Windows Forms project), place a PictureBox control on your form, create a Bitmap object in your code, then pass the PictureBox the bitmap using it's Image property
You can then use the bitmaps SetPixel member to plot points
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
A PictureBox is a lot of overhead (no need for an in-memory bitmap to get blitted to the on-screen bitmap) and it's often better to encapsulate your controls rather than using whatever you can find. This gives you much more control over what the control does.
To the original poster: In this case, the PathGradientBrush can be very effective when overriding OnPaint of your own control. There's a lot of documentation you should, read, however, which can be found at http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DPathGradientBrushClassTopic.asp[^]. It - along with related classes - can calculate the gradient for you, if that's what you're trying to do.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Take a look at the PathGradientBrush , the GraphicsPath , and related classes and structs. If I understand your question right, the sample below should work for you by encapsulating your triangle into a separate control (with a clipping region set to the triangle for your control as well).
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
class Test : Form
{
static void Main()
{
Application.Run(new Test());
}
Test()
{
Text = "Triangle Example";
Triangle t = new Triangle();
Controls.Add(t);
t.Dock = DockStyle.Fill;
}
}
class Triangle : Control
{
public Triangle()
{
SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint
| ControlStyles.DoubleBuffer | ControlStyles.ResizeRedraw, true);
UpdatePath();
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if (!init)
{
UpdateBrush();
init = true;
}
Graphics g = e.Graphics;
g.Clip = region;
g.FillPath(brush, path);
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
UpdatePath();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (path != null) path.Dispose();
if (region != null) region.Dispose();
if (brush != null) brush.Dispose();
}
}
GraphicsPath path;
Region region;
void UpdatePath()
{
PointF p1 = new PointF(Width / 2, Top);
PointF p2 = new PointF(0, Bottom);
PointF p3 = new PointF(Width, Bottom);
if (path != null)
{
path.Dispose();
path = null;
}
if (region != null)
{
region.Dispose();
region = null;
}
path = new GraphicsPath();
path.AddPolygon(new PointF[] {p1, p2, p3});
region = new Region(path);
if (init) UpdateBrush();
}
PathGradientBrush brush;
bool init = false;
void UpdateBrush()
{
if (brush != null)
{
brush.Dispose();
brush = null;
}
brush = new PathGradientBrush(path);
brush.CenterColor = Color.Gray;
brush.SurroundColors = new Color[] {c1, c2, c3};
}
Color c1 = Color.Red, c2 = Color.Green, c3 = Color.Blue;
public Color C1
{
get { return c1; }
set { c1 = value; UpdateBrush(); }
}
public Color C2
{
get { return c2; }
set { c2 = value; UpdateBrush(); }
}
public Color C3
{
get { return c3; }
set { c3 = value; UpdateBrush(); }
}
}
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hello,
I already looked in the articles but i did not found anyone. Does there not exist any article for PocketPc which works with tab pages - tab panes?
regards
pat
|
|
|
|
|
That's a rather vague question. What do you want to know, exactly? All you need to do is drag a TabControl onto your form, add tages through the TabPages property in the PropertyGrid, then drag controls onto specific TabPage s, which you can select like you would a TabControl at runtime in the designer to switch tabs.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I want to build a menu with tabpanes, and I want to switch manually through the tab panes but also automatically when i press a specific button. Ist there no example available for that?
best regards
patrick
|
|
|
|
|
Hi all,
Are there any c# code for writing a simple HTTPS server.
I have written code for a http but not a https server.
Thanks
Patrick
|
|
|
|
|
Why not use IIS?
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
|
please help me, i want to know how can i use xml as database for pocket pc or in compact framework. with coding.
|
|
|
|
|
pujas wrote:
with coding.
You had to post another message to clutter up this board just to add that? Please use the [Delete] and [Modify] buttons appropriately when you want to change or delete a post, otherwise you force other threads off the board that may not get seen if someone doesn't page through.
XML is not a suitable replacement for a database. Instead, you should use SQL Server CE - a file-based database engine with much of the power of SQL Server 2000 (including replication, which is handy to stay in sync with a corporate or desktop database when going back online) but optimized for handheld PCs. Take a look at http://msdn.microsoft.com/sql/sqlce/[^].
If you want to store a relatively small amount of data, you could use XML but don't associate XML with traditional databases. XML is not designed to handle the load that databases do, nor does it scale nearly so well. You also don't have the flexibility of executing simple SQL expressions.
Because trying to replace a database with XML is not a good idea and would warrant an entire article - if not several - I'm not going into details, but you can get more information and examples of using XML by reading about the classes in the System.Xml[^] and System.Xml.XPath[^] namespaces, like the XmlDocument and XPathNavigator (for fast reads over a document without loading the entire thing into memory like you would with the XmlDocument ; use the XmlReader instead).
MSDN also has an entire developer center for XML and most often discusses managed implementations (i.e., .NET Framework applications) regarding XML. Take a look at http://msdn.microsoft.com/xml/[^].
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|