|
Isn't matlab C++ ? Your best bet for .NET interop would be C++/CLI, there's no way to convert C++ to C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I have a datagrid in my form (winform).
I want to add a drop down to few of the columns in that grid.
and the source of all the drop downs is to be XML.
Please help to generate the drop downcombo in the datagrid and to bind that dropdown with a xml.
Thanks ,
Vaishali
|
|
|
|
|
Are u using VS 2.0?
if yes u can use the DatagridView and set a column of type as DropDown.
But i don't know how to bind the column to a xml.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hi,
Sorry we are working on VS 1.
can you suggest something else so that
I can add a combobox in the grid,
Thanks,
Vaishali
|
|
|
|
|
ok, then u have to create a datatablestyle in which u have to create a column of type BoolColumn and add that column to the tablestyle and then add this tablestyle to the datagrid.Tablestyles
Hope that works for u.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
hi,
sorry but that is not working,
i mean i not able to generate a combobox in the datagrid.
can you please send me the code snippet..
hoping for a reply..
Thanks,
Vaishali
|
|
|
|
|
I am sorry Vaishali,
actually i thought u want to add a Checkbox column
the earlier post was to add a checkbox column to a datagrid.
I will surely send u the code for the CheckBox column, don't worry
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Here u go,
U cannot directly create a DropDown column in the datagrid, u have either extend the datagrid or create the ComboBox using the template columns.
Here are some links that will help u.
http://www.c-sharpcorner.com/winforms/ComboBoxInDataGridSKJ.asp
http://www.codeproject.com/cs/miscctrl/DataGridZen.asp
http://www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp
the second one is good and simple
Hope this helps u.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hi,
ya thnx....i wll see which one helps me out..
but seems needs to work out on it...
Thanks,
Vaishali
|
|
|
|
|
how i can create a mobile application project in C#?
plz somebody give me an idea with the help of a demo project.thanks
|
|
|
|
|
Many times this questions is asked .....Are you a new user????
Check the message boad !!!
<marquee>nishu
|
|
|
|
|
New and impatient.
yousafzai: You have asked this question four times and have been given responses. READ THEM
only two letters away from being an asset
|
|
|
|
|
In a form, there have controls of textbox and numericUpDown. When clicking the menuItem "Delete" to delete the selected text of the focused control of textbox/numericUpDown,how to get the selected text and delete it form the control.
|
|
|
|
|
textbox1.Text.Replace(yourString, "");
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Ooops
textBox1.Text.Remove(textBox1.SelectionStart, textBox1.SelectionLength);
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
But how about numericUpDown control?
|
|
|
|
|
It must have a textbox in it, the trick is working out how to access it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
In a other word as your mean, numericUpDown control can't finish this function?
|
|
|
|
|
No, I mean the numeric control obviously contains a textbox, if there's one there. So, you need to find out how to get access to it
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I want to get the USB & Serial COM Port entries in system.
I got only the Communication Serial COM Port entries.
Im using the following Codes.
System.Management.ManagementClass mClass = new System.Management.ManagementClass("Win32_SerialPort");
System.Management.ManagementObjectCollection mObjCol = mClass.GetInstances();
foreach (ManagementObject port in mObjCol)
{
cmbPortNo.Items.Add(port["deviceid"]);
cmbPortNo.Text=cmbPortNo.Items[0].ToString();
}
if(cmbPortNo.Items.Count.ToString()=="0")
{
MessageBox.Show("No serial port available...");
}
In this how can i get the USB COM Port in this method...
|
|
|
|
|
Hello all,
I have an ftp application that transfers files between two servers.
I need to use SMTP to do the file transfer now.
How can i do this using .Net and C#?
Please help.
Thanks in anticipation
|
|
|
|
|
in my application i can drag and drop folders and files.......
problem is:
if i drag and drop a folder which has no access writes... how can i differentiate tht folder from a normal folder.
Directory.Exists is giving me true for both the case... I am getting this
System.UnauthorizedAccessException.
is thr any property which differentiates between these folders.
|
|
|
|
|
Use public DirectorySecurity GetAccessControl ()
for eg;
using System;
using System.IO;
using System.Security.AccessControl;
namespace FileSystemExample
{
class DirectoryExample
{
public static void Main()
{
try
{
string DirectoryName = "TestDirectory";
Console.WriteLine("Adding access control entry for " + DirectoryName);
// Add the access control entry to the directory.
AddDirectorySecurity(DirectoryName, @"MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow);
Console.WriteLine("Removing access control entry from " + DirectoryName);
// Remove the access control entry from the directory.
RemoveDirectorySecurity(DirectoryName, @"MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow);
Console.WriteLine("Done.");
}
catch (Exception e)
{
Console.WriteLine(e);
}
Console.ReadLine();
}
// Adds an ACL entry on the specified directory for the specified account.
public static void AddDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType)
{
// Create a new DirectoryInfo object.
DirectoryInfo dInfo = new DirectoryInfo(FileName);
// Get a DirectorySecurity object that represents the
// current security settings.
DirectorySecurity dSecurity = dInfo.GetAccessControl();
// Add the FileSystemAccessRule to the security settings.
dSecurity.AddAccessRule(new FileSystemAccessRule(Account,
Rights,
ControlType));
// Set the new access settings.
dInfo.SetAccessControl(dSecurity);
}
// Removes an ACL entry on the specified directory for the specified account.
public static void RemoveDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType)
{
// Create a new DirectoryInfo object.
DirectoryInfo dInfo = new DirectoryInfo(FileName);
// Get a DirectorySecurity object that represents the
// current security settings.
DirectorySecurity dSecurity = dInfo.GetAccessControl();
// Add the FileSystemAccessRule to the security settings.
dSecurity.RemoveAccessRule(new FileSystemAccessRule(Account,
Rights,
ControlType));
// Set the new access settings.
dInfo.SetAccessControl(dSecurity);
}
}
}
I hope this will help you
<marquee>nishu
|
|
|
|
|
How to get information about Mp3 tag (title, artist ...)?
|
|
|
|
|
V1 tags are free text on the end of the file. V2 tags are compressed. There's some free code on the web that reads both, WMP and DirectShow will also do it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|