|
The LDB file keeps track of all connections to the database. You cannot remove it. It will disappear as soon as the last connection to the database gets disconnected.
|
|
|
|
|
Hi ,
I am using .rdlc report in c# with reportviewer, when i run the applicaton it sows only one record in report.
can anyone hlp me out
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
|
Hello Friends,
I'm using a CheckedListBox in my project which is having checkboxes with their file name. An i want to show the checked file name into another ListBox. But I'm having some problems.
First, For checking a checkbox i've click double on a checkbox.So i'm not getting where should i place my code for checking the checkbox at a single click.........
Seconds, i've a variable sum=0 i want to add 1 in variable sum as the checkboxes are checked........... It's working fine but when i check my first record it shows 0 and when i check my second checkbox then it shows 1 but it must be 2 at the moment......................
|
|
|
|
|
First off, why don't you just have a button that will transfer all checked listboxes to the other listbox.
Second, this.chkListBoxs.CheckedItems.Count.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I want to develop an application which can enter username and password to another application, for example from my custom application on press of a button username and password placed into msn messenger's username and password if msn messenger is open and its login screen too.
Thanks
|
|
|
|
|
Good luck.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Great idea. When you have it working you could post an article and share your knowledge with the rest of us.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i'm working on a database client. i would like users to be able to view multiple tables and run multiple queries in tabs.
each tab will contain a text box (query input) a button (not so necessary) and the datagrid (to display results.)
how do i go about this? here's what i have, but it works only the first time. the others just open blank tab pages without the controls. quess the control names have an effect there...
private void newQueryToolStripMenuItem_Click(object sender, EventArgs e)
{
tabMain.TabPages.Add("1", "New Query", "app_tables");
SplitContainer split = new SplitContainer();
split.Dock = DockStyle.Fill;
split.FixedPanel = FixedPanel.Panel1;
split.Orientation = Orientation.Horizontal;
TextBox text = new TextBox();
text.Dock = DockStyle.Fill;
text.Multiline = true;
text.ScrollBars = ScrollBars.Both;
split.Panel1.Controls.Add(text);
DataGrid dgrid = new DataGrid();
dgrid.Dock = DockStyle.Fill;
split.Panel2.Controls.Add(dgrid);
tabMain.TabPages["1"].Controls.Add(split);
tabMain.TabPages["1"].ImageKey = "app_server";
this.PerformLayout();
}
|
|
|
|
|
nevermind... got it figured out. added a name property to the controls using GIUD.
private void newQueryToolStripMenuItem_Click(object sender, EventArgs e)
{
string key = Guid.NewGuid().ToString();
tabMain.TabPages.Add(key, "New Query", "app_tables");
SplitContainer split = new SplitContainer();
split.Name = key;
split.Dock = DockStyle.Fill;
split.FixedPanel = FixedPanel.Panel1;
split.Orientation = Orientation.Horizontal;
TextBox text = new TextBox();
text.Name = key;
text.Dock = DockStyle.Fill;
text.Multiline = true;
text.ScrollBars = ScrollBars.Both;
split.Panel1.Controls.Add(text);
DataGrid dgrid = new DataGrid();
dgrid.Name = key;
dgrid.Dock = DockStyle.Fill;
split.Panel2.Controls.Add(dgrid);
tabMain.TabPages[key].Controls.Add(split);
tabMain.TabPages[key].ImageKey = "app_server";
this.PerformLayout();
}
now is time to add event handlers.
|
|
|
|
|
I want to know how to close the windows form when Esc button is pressed.
Rangasamy
|
|
|
|
|
Hi Ragu,
Firsy you have to change this property on form
KeyPreview = true
You can change this on the form properties in designer or in the form load method:
private void Form1_Load(object sender, EventArgs e)
{
this.KeyPreview = true;
}
And then, you only have to do this:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
this.Close();
}
That´s it?
-----
LeandroAB
|
|
|
|
|
Set the form's CancelButton property to a button that will close the form.
"Multithreading is just one damn thing after, before, or simultaneous with another." - Andrei Alexandrescu
|
|
|
|
|
Hello friends
I have made a windows explorer , Which will show all the folders in the computer
Now on clicking a folder i want to get the images under it
I am able to get the list of images
The problem is displaying
I want to make a scrollable image viewer
I will be very much thankful if any suggestions or code is provided
thanks
Happy programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
I couldn´t undertand perfectly what re you trying to do, but i can suggest the listview component.
You can show the files into it like the windows explorer, setting icons and all.
-----
LeandroAB
|
|
|
|
|
|
How can we connect a VB.NET application with a bar code reader and how we can use the data which is read by the bar code reader in our application.
Thanks,
Sayuj O
|
|
|
|
|
sayuj wrote: How can we connect a VB.NET application with a bar code reader
Most bar code readers act just like a keyboard. Scan a barcode and it "types" the code just like a human would be doing.
sayuj wrote: how we can use the data which is read by the bar code reader in our application
Uhhh... Wouldn't that be dictated by your application's requirements??
|
|
|
|
|
Anyone know what to do about a BadImageFormatException in System.Windows.Forms.dll? My program worked just fine yesterday, then I changed a couple of string constants and a timeout value in a serial communications class, and now a timer.onTick event gives me this exception, before any of the changes I made are even used. Any ideas? All I know is that a BadImageFormatException means "something" is corrupted. I've tried cleaning and rebuilding my solution, reverting to the version from yesterday (still breaks), and compiling yesterday's version on another machine. All the same problem.
One thing that is odd. It works just fine in debug mode through the IDE. But release mode through the IDE, and both debug and release installs give me this exception. Also, I am not using generics (another cause I've found of this exception). I am also not loading any assemblies through my code.
Any help would be greatly appreciated,
Brandon
modified on Tuesday, October 14, 2008 4:57 PM
|
|
|
|
|
|
I actually tried doing that before, but x86 was not an option when adding a new configuration. I had ARM something or other and 2 others, but no x86 or x64. My current configuration is Win32.
I was actually able to get around this by disabling all optimizations in release mode. Don't know why it worked, but it did.
Brandon
|
|
|
|
|
My application working fine in the dev environment.But in the testing /production environment
it is not working because that environment has only
windows server 2003
IIS
.net2.0 framework
In my application I have Used some microsoft VC++ dll's also along with .net dll's.
Now Iam getting "RUNTime Error" pop-up screen message as below
" The Application has been terminated in an Unusual Way"
On googling i came to know that some dll's like msvcrt.dll of windows server 2003 has to be changed...But Iam not pretty sure about it..
In Production/test environment there is only framework installed ,but there is no visual studio installed on it.may be due that this error may occur...
So kindly post your suggestions and views to help me
I tried the following as suggested by you:
1. I have installled the redistributable package suggested by you.
after installing i restarted the PC even now also I got the same runtime pop-up error.
2. Then I checked even with the dependency walker for the dll.
I found that there is no miising dll.
3. Then I tried by installing Visual C++ express edition..even then also i got the same pop-up error.
Kindly help me.....
|
|
|
|
|
http://www.ruche-home.net/?%A5%C0%A5%A6%A5%F3%A5%ED%A1%BC%A5%C9
I have downloaded imgctl.dll from the above link. version: 1.24
I am trying to add reference to this dll from windows application based on C#. But i am getting:
"A reference to "C:\imgctl.dll" could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component".
Tried downloading a new one and added but still getting same error.
Please help me, if anyone knows about this.
Thanks in Advance
|
|
|
|
|
You can only add a reference to a .NET or COM .DLL. You've apparently got your hands on a normal library .DLL. You'll have to get at the functions it using P/Invoke. In C#, you need to look into the DllImport attribute.
|
|
|
|
|
Thanks,
got it. Its working.
|
|
|
|