|
yeh...when it display. i connect it to the datagrid, but i couldn't find a way to set the width of the column in there.
|
|
|
|
|
I have developed application A,B and C that uses the same database. Because i need to be working at different places sometimes i found computers where i cannot connect to the database as i do in my house, so i was wondering how to have A,B and C in the same project so i can add the mdf file only to that big project instead of each individual project? Because the data from one application is important to the other!!!
Thanks all,
Luis E Tineo S
|
|
|
|
|
Why do you need to add the mdf file to each individual project? Normally, what we used to do is that we have the database on SQL server, All applications which are using this database connect to this Server only.. We don't put the database file to each application and we don't install that database file on each client's machines..
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."
|
|
|
|
|
Michael Sync wrote: Why do you need to add the mdf file to each individual project?
I don't have my own computer so i just go from lab to lab or place to place to work on my final project, on my grilfriend's computer i have sql server running but there are computers where i cannot even install it.
I think i need to have this file so i can still access the data i have stored on it to test the application
Michael Sync wrote: Normally, what we used to do is that we have the database on SQL server,
this is what i would like to do but due to the lack of a computer i cannot do it so i need to find other solutions like adding a mdf file
Luis E Tineo S
|
|
|
|
|
maybe, you can create one *.sln file and add your projects (A,B and C) to that solution file. Do you have more than one project file in your application??
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."
|
|
|
|
|
Hello,
For each project file i have one application, would be wiser to create a new application and call the other applications from this one?
Luis E Tineo S
|
|
|
|
|
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
|
|
|
|
|