|
|
|
|
|
|
Simple, you don't.
There are projects out there that can do something like only package the .DLL's of the .NET Framework that are absolutely needed by your app to run. These methods are NOT recommended. If you try to install one of the .NET Framework service packs on this kind of installation, you'll find that it won't install because the .NET Framework isn't installed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello,
completely new to c#. created Access DB and windows form. want to display data in textbox. was able to connect DB successfully. but how do you display the data in the textbox?
thanks.
|
|
|
|
|
hi everybody!
Now, I'm designing datetime textbox by C# & ASP.NET, but I face on the problem: users access in our website and login on the datetime textbox by any date type,ex: dd/mm/yyyy or mm/dd/yyyy, .... , in SQL Server, we want to format this by mm/dd/yyyy date type.
How can we do it? function convert(datetime)?
please tell me!
study, study and study more
|
|
|
|
|
how about this version
//get culture info for a specific region
CultureInfo MyCultureInfo = new CultureInfo("de-DE");
DateTimeFormatInfo dt = MyCultureInfo.DateTimeFormat;
// set a new format pattern for the date
dt.ShortDatePattern="yyyy-MM-dd";
//parse the string with the new pattern
DateTime d = DateTime.Parse(textBox1.Text,dt);
the output is done the same way - just take there a different pattern
|
|
|
|
|
When i open my app its the right size, but you can resize it to strange and abnormal sizes.
How do i disable resizing?
|
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
after that - the form is not sizeable
|
|
|
|
|
And if you want to make them also cannot maximize the app,you can make this property to false;
this.MaximizeBox = false;
|
|
|
|
|
i can select entire row on Click/Double by using following code:
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hti = this.dgGDS.HitTest(pt);
if (hti.Type == System.Windows.Forms.DataGrid.HitTestType.Cell)
{
this.dgGDS.Select(this.dgGDS.CurrentRowIndex);
}
how can i do same on Mouse hover?currently on mouse hover or Mouse Move,it just selects First Row
MyBlogs
http://weblogs.com.pk/kadnan
|
|
|
|
|
there is a little mistake in your select statement.
try this:
this.dgGDS.Select(hti.Row);
but then more and more rows will be selected because there is no unselect of the old row
|
|
|
|
|
Hi,
I found an article here on Cp on how to use the push method of Crystal reports.
The only difference is however, that I create my datasets manually, therefore I think you need to define the fields in your report manually too. (correct?)
How can you do that? All the members are always 'read only', so my compiler claims.
tnx!
No hurries, no worries.
|
|
|
|
|
Hi all, please can anybody tell me how can I use a DLL created via C++ in C#.NET? I tried using the Add reference but it didnt' work. It gave me a message that it's not a valid assembly or com component.
SoCRaT
|
|
|
|
|
.NET can automatically handle COM objects, it generates RCW (Runtime Callable Wrappers) around them by itself.. For non-COM dlls, you'd have to use Pinvoke[^]. It's fairly easy. For eg, to access method Foo in X.dll, the following code will do..
class SomeClass
{
[DllImport("X.dll")]
private static extern void Foo();
public void SomeMethod() { Foo(); }
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
you can use the methods of a dll in c# in the following way:
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, string lParam);
|
|
|
|
|
How much data can a dataset contain, i mean the size of dataset.
Thanks
|
|
|
|
|
Do you mean how many tables, or how many rows ? What size do you have in mind ? Did you consider just creating one and seeing if it goes big enough for you ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am finding it difficult to add a value to pretty much any registry key on a Windows XP machine. The folowing code allows me to add the new key and or open the key as read/write but will not all the value to be created and set. Even if I manually add the value the code will still not adjust what the value is set to. I have tested this on 8 different Win XP machines ranging from no service packs to the most receint. I have tried running the program including this test code under administrator and user account levels in XP with no luck. Can someone please tell me why this code does not do what it is supposed to. I thank you in advance for your assistance.
private static void NoCMD()
{
keyValueInt="2";
subKey = "Software\\Policies\\Microsoft\\Windows\\System";
try
{
key = Registry.CurrentUser;
key.CreateSubKey(subKey);
key.OpenSubKey(subKey,true);
key.SetValue("DisableCMD",keyValueInt);
key.Close();
Console.WriteLine("Edit Complete: Current_User\\" + subKey + "\n");
}
catch(Exception ex)
{
Console.WriteLine("Edit: Current_User\\" + subKey + "\n" +
"ERROR: " + ex.ToString());
}
}
|
|
|
|
|
I just do this:
Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software").OpenSubKey("Graus", true).SetValue("PathLastOpened", value.ToString());
I like to hide them behind properties
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thank you very much for the quick reply and your assistance. I will give that a try and see if it works for what I am trying to accomplish and report back... Thanks again...
|
|
|
|
|
Well my friend, it worked perfectly, why chaining the arguments together instead of seperately would make such a difference we shall never know but heck, it works and that is amazing in and of itself. Thank you for your assistance. I rated your reply as a 5.0 perfect.
|
|
|
|
|
Glad to help
I have no idea why your old code shouldn't work, I just grabbed some of mine that does.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|