|
Each application has only one project file, right? For example, The application called "The Student Managment System" has only one project file called "StudentMgmtSys.csproj" or "StudentMgmtSys.vbproj".
Then, create one blank solution file in Visual Studio. Add your projects to that solution file.. And set the startup project depend on which one you wanna run..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I am trying to write a sendto shortcut that processes a list of files. I have written the project to use the command line arguement, but the command line arguement has an arguement on size. Does anyone know how I can not be restricted on the number of files I select for the sendto. Thanks.
|
|
|
|
|
smarttom99 wrote: Does anyone know how I can not be restricted on the number of files I select for the sendto.
Can you tell us the example? now, how it is restricted?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hey all,
I am creating some test certificates with makecert to ID each client...
Now i have a few questions:
How can i use that certificate on a way to id the client with the server? I was thinking on creating a table to store the rawdata of each client certificate and then during validation process verifiy if the client certificate matchs the rawdata from the database.... and the same goes for the client, i will have a table storing the server info...
If i have a certificate created with the makecert tool that cert is only valid for that machine? or can be install elsewhere?
Can somebody give me a complete server/client example of ssl usage assuming you have your own certificate.... but just the ssl part and what u need to include!?
Thanks in advance,
Luis E Tineo S
|
|
|
|
|
Hello to all,
How do I make my zedGraph control legend scrollable?
I have a lot of curves to show their legend, hence I can't see the graph, because it's built in a way
that the legend size effects the size of the graph itself.
If legend grows big it does that on account of the graph.
I need to be able to scroll threw all legend values to find my relevant curve
any help will be most appreciated.
|
|
|
|
|
I think most folks here won't be able to help you because ZedGraph is a specialized control and most don't have experience with it. If you don't get answers to either of your questions, I'd recommend looking through ZedGraph's How Do I?[^] wiki, as well as posting in their forums.
|
|
|
|
|
Hello to all,
I need to find a way to Expand, meaningfully, the combinations available to my zedGraph control
for representing my data.
My application collects a lot of different data from different units, for each unit and it's data I need a different combination of color and Symbol(color is more important).
How do I achieve that?
any help will be most appreciate.
|
|
|
|
|
I have a problem.
I'm trying to create a Game using DirectX.
I use a special font for every text into the game, and I load it into PrivateFontCollection using [PFC.AddFontFile(pathtofile)] method.
Now I want to embed my font info a resource dll, and I find a code for reading font from resource.
It work only with GDI+ [e.Graphics.DrawString()] but while I try to use this font with [o3DFont.DrawText()] the text use the default font and not the selected font.
This sample demostrate what happen (just change font file[darknight.ttf], and referenced dll resource [GenericRes]):
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Text;
using System.IO;
using Microsoft.DirectX.Direct3D;
using D3DFont = Microsoft.DirectX.Direct3D.Font;
using D3DSprite = Microsoft.DirectX.Direct3D.Sprite;
using DGDevice = Microsoft.DirectX.Direct3D.Device;
using GDIFont = System.Drawing.Font;
namespace test {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
PrivateFontCollection pfc = new PrivateFontCollection();
System.Reflection.Assembly extAssembly;
private void Form1_Load(object sender, System.EventArgs e) {
extAssembly = System.Reflection.Assembly.GetAssembly(typeof(GenericRes.Class1));
CaricaFontDaResource("darknight.ttf");
}
private void CaricaFontDaResource(string fontName) {
Stream fontStream = extAssembly.GetManifestResourceStream("GenericRes.NextAgeResources.Font." + fontName);
byte[] buffer = new byte[fontStream.Length];
fontStream.Read(buffer, 0, (int)fontStream.Length);
fontStream.Close();
unsafe {
fixed (byte* pFontData = buffer) {
pfc.AddMemoryFont((System.IntPtr)pFontData, buffer.Length);
}
}
}
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) {
System.Drawing.Font fn;
fn = new GDIFont(pfc.Families[0], 18, FontStyle.Strikeout);
// D3D font
PresentParameters presentParams = new PresentParameters();
presentParams.Windowed = true;
presentParams.SwapEffect = SwapEffect.Discard;
presentParams.PresentationInterval = PresentInterval.One;
DGDevice dGDevice = new DGDevice(0, Microsoft.DirectX.Direct3D.DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams);
dGDevice.Clear(ClearFlags.Target, System.Drawing.Color.Black, 1.0f, 0);
dGDevice.BeginScene();
D3DFont m_Font = new D3DFont(dGDevice, fn);
m_Font.DrawText(null, "stringa", new Rectangle(0, 100, 100, 100), DrawTextFormat.Left, Color.White);
dGDevice.EndScene();
dGDevice.Present();
//GDI font
e.Graphics.PageUnit = GraphicsUnit.Point;
SolidBrush b = new SolidBrush(Color.Black);
e.Graphics.DrawString(fn.Name, fn, b, 5, 5, StringFormat.GenericTypographic);
b.Dispose();
}
}
}
Did someone know why it happen? And maybe how to resolve this problem?
The only solution I found was to save font from resource when the game is opened and delete it when it'll be closed.
But I'd like to use embeded resource.
|
|
|
|
|
Does this post[^] help? Managed DirectX is kind of an abandoned child in favor of the new XNA framework, so I don't know if there are too many folks on this forum with enough MDX knowledge to answer your question.
|
|
|
|
|
The problem in this topic is similar to mine.
I don't use XNA cause it require a video device with shader support and it's not supported into windows 2000.
I hope that I could find an answer to this problem, or if it's a bug that microsoft might correct it
|
|
|
|
|
I understand. I'd recommend posting this in the GameDev.net forums, I suspect you'll receive more help there.
|
|
|
|
|
How can I make this code not delete a Root Node in the Tree View tvFavorites:
private void btnDelete_Click(object sender, EventArgs e)
{
try
{
OleDbCommand deleteNode = new OleDbCommand("", dbProfiles);
if (tvFavorites.SelectedNode.Tag == null)
{
if (MessageBox.Show("Are you sure you want to delete the \"" + tvFavorites.SelectedNode.Text + "\" folder and all its files?", "Delete Folder", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
deleteNode.CommandText = "delete from favFiles where folder_id = " + tvFavorites.SelectedNode.Name;
if (dbProfiles.State == ConnectionState.Closed)
dbProfiles.Open();
deleteNode.ExecuteNonQuery();
deleteNode.CommandText = "delete from favFolders where folder_id = " + tvFavorites.SelectedNode.Name;
deleteNode.ExecuteNonQuery();
dbProfiles.Close();
tvFavorites.Nodes.Remove(tvFavorites.SelectedNode);
}
}
else
{
if (MessageBox.Show("Are you sure you want to delete the \"" + tvFavorites.SelectedNode.Text + "\" file?", "Delete File", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
deleteNode.CommandText = "delete from favFiles where file_id = " + tvFavorites.SelectedNode.Name;
if (dbProfiles.State == ConnectionState.Closed)
dbProfiles.Open();
deleteNode.ExecuteNonQuery();
dbProfiles.Close();
tvFavorites.Nodes.Remove(tvFavorites.SelectedNode);
}
}
}
catch (Exception ex)
{
func.ErrorReporter(ex, "008011");
}
}
|
|
|
|
|
Check to see if the node has a parent. If it does, then allow it to be deleted. If it doesn't then it's the root node.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
hello am trying to make a bullet list and when i press at any item a message printed contains whic item i chose but i have an error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0123: No overload for 'btnBullet_Click' matches delegate 'System.EventHandler'
|
|
|
|
|
I guessing that your btnBullet_Click method doesn't have the appropriate parameters
The method signature should probably look something like this:
void btnBullet_Click(object sender, EventArgs e)
|
|
|
|
|
Hi there.
I developed a video player like application, thanks to the help provided by the
responses to my last post,[^] i also made it a activeX component, being able to run
within a web browser.
Now i want to associate a MIME type to this application, so the associated file types can be
run directly inside the web page [ using a <object> / <embed /> environment ], but have no idea
how to achieve this.
Also i'd like to have the application being downloaded via the web site itself.
[ using the codebase / pluginspage tags ]
I also need some more information on this topic as well.
Any help is highly appreciated.
|
|
|
|
|
I am writing a program for Windows Mobile device and I am using datagrid to display data. The grid, will change size when a row is selected to show information at the bottom and once the data is saved/cancelled it will take the whole screen.
I was wondering as to how I can scroll the screen in the program automatically if the last row is selected. Coz when the last row is selected and the datagrid shortens in size, the selected row is hidden.
Thanks,
Ashoo
|
|
|
|
|
I don't know if this will work (since DGV is not really a list view), but you could try the following:
...
using System.Runtime.InteropServices;
using System.Windows.Forms;
...
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr SendMessage(IntPtr handle, uint op, uint index, uint isPartialOK);
...
private const uint LVM_ENSUREVISIBLE = 0x1013;
...
private DataGridView dgv = ...;
...
if (dvg.SelectedRows.Count > 0)
// the final parameter is 0 if the entire row needs to be shown, or 0 if partial showing is OK
SendMessage(dgv.Handle, LVM_ENSUREVISIBLE, dgv.SelectedRows[0].Index, 0);
...
Let us know if this works!
Jeff
|
|
|
|
|
I am using DataGrid class. I cannot use DataGridView class in Mobile programming as the CF 2.0 doesn't support it.
Here is the code when the datagrid is clicked
private void dataGrid1_Click(object sender, EventArgs e)
{
DataRow flightDataRow = flightTable.DefaultView.ToTable().Rows[dataGrid1.CurrentRowIndex];
statusCombo.SelectedIndex = (int)statusHash[flightDataRow[6].ToString().Trim()];
gateCombo.SelectedIndex = (int)gateHash[flightDataRow[5].ToString().Trim()];
selectedDailyID = (int)flightDataRow[0];
selectedFlight = flightDataRow[3].ToString();
panel1.Visible = true;
panel1.Enabled = true;
dataGrid1.BringToFront();
}
After dataGrid1.BringToFront() is what I have to put the code where the datagrid should scroll to make sure that the selected row is visible. it is ok even if the selected row is the 1st row in the datagrid's view area.
Thanks,
Ashoo
|
|
|
|
|
I don't know if this will work (since DG is not really a list view), but you could try the following:
...
using System.Runtime.InteropServices;
using System.Windows.Forms;
...
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr SendMessage(IntPtr handle, uint op, uint index, uint isPartialOK);
...
private const uint LVM_ENSUREVISIBLE = 0x1013;
...
private DataGrid dg = ...;
...
int selectedIndex = ...; // Get the index of the selected row
if (selectedIndex >= 0)
// the final parameter is 0 if the entire row needs to be shown, or 1 if partial showing is OK
SendMessage(dg.Handle, LVM_ENSUREVISIBLE, selectedIndex, 0);
...
Let us know if this works. (and yes, it is identical to the code in my last post except it uses DataGrid instead of DataGridView!)
Jeff
|
|
|
|
|
I tried it and it gives a MissingMethodException when I click on a row in the grid, for the SendMessage along with "Can't find PInvoke DLL 'user32.dll'.". I looked for user32.dll and that file is there, so i don't know how to fix it.
Thanks,
Ashoo
|
|
|
|
|
Try including the dll in your build output directory. Also change the DllImport to the following:
[DllImport("user32.dll", EntryPoint="SendMessageA", SetLastError=true)]
// Same line here
If that doesn't work, you could try to find the answer at one of the sites
here[^].
Let us know the results!
Jeff
|
|
|
|
|
Unfortunately I am unable to add the reference user32.dll, it says that a reference to user32.dll cannot be added. Also inspite of the above change I am still getting the same error as before. I even downloaded PInvoke.net and installed it.
Thanks,
Ashoo
|
|
|
|
|
You don't need to download anything, or reference anything. Just copy user32.dll into your executable directory.
Jeff
|
|
|
|
|