|
To achieve semi-transparency, you'll have to dig deeper into layered windows. But beware, that's not a trivial task and only has very limited support within .NET. YOu'll have to use lots of p/invoke calls to get layered windows working right.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi
I am using following code to Import data from Excel File in .NET 2005
DataSet myDataSet = new DataSet();
string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0";
OleDbConnection conn = new OleDbConnection(strConn);
OleDbDataAdapter addapter = new OleDbDataAdapter();
addapter.SelectCommand = new OleDbCommand("Select * From Mercury$", conn);
addapter.Fill(myDataSet);
On Executing it is giving me Following error
"Could not find installable ISAM."
I am using Excel2003 installed on Windows 2000.
Thanks in advance
Abhi
|
|
|
|
|
Try this
Extended Property="""Excel 9.0"""".
i guess that works for u.
Regards,
Pramod
|
|
|
|
|
|
Hi,
How can i count the total number of rows and columns in the List View, is there any properties or methods with out using loops.
|
|
|
|
|
Hi,
there are some properties that can be used to obtain the number of columns and rows:
Columns:
MyListView.Columns.Count
Rows:
MyListView.Items.Count
Regards
Sebastian
|
|
|
|
|
Ofcourse i want to get the currently selected row and column is it possible if so how to do it?
-- modified at 9:07 Tuesday 4th July, 2006
|
|
|
|
|
listView.SelectedItem
You do have IntelliSense don't you?
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
i'm trying to implement control array in my app. the no of control will depend on user's requirement. total number will be gathered from database. therefore i had to make the code within a method.
<br />
private void CreatePictureBoxes()<br />
{<br />
....<br />
....<br />
PictureBox[] pcbMem = new PictureBox[intCount];<br />
Label[] lblMem = new Label[intCount];<br />
....<br />
}<br />
since i'm doing the whole code in a method i can't access those controls outside of that method. it's also not possible for me to create them in class level as the total index is unkown to me initially. i don't know how to reasign the length of an array so it's being a problem for me.
so please help me out to creating the controls so that i can use them from anywhere.
|
|
|
|
|
vatzcar wrote: it's also not possible for me to create them in class level as the total index is unkown to me initially
Just declare them at class level and instanciate them inside the method.
PictureBox[] pcbMem;
Label[] lblMem;
private void CreatePictureBoxes()
{
....
....
this.pcbMem = new PictureBox[intCount];
this.lblMem = new Label[intCount];
....
}
"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." - Rick Cook
www.troschuetz.de
|
|
|
|
|
vatzcar wrote: i don't know how to reasign the length of an array so it's being a problem for me.
To solve this problem, you could use a generic list.
using System.Collections.Generic;
List<picturebox> pcbMem = new List<picturebox>();
Private void CreatePictureBoxes()
{
...
for (int i = 0; i < intCount; i++)
{
PictureBox myPcb = new PictureBox();
...
pcbMem.Add(myPcb);
}
}
|
|
|
|
|
Hi All,
Can somebody help me how to disable the addressbar and the menus, for a web application???
Rach
|
|
|
|
|
Hi,
use window.open method. assign features property in this method.
example,
window.open(sURL, "HELP", "resizable=yes,titlebar=no,toolbar=no,location=no,status=no,menubar=no");
|
|
|
|
|
You'll need a piece of JavaScript code, so you should ask in the web development forum.
_____________________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA] - Developing ScrewTurn Wiki 1.0b...
|
|
|
|
|
Kiindly help and reply soon.
pooja
|
|
|
|
|
erm, sender is not of type "MenuItem" - its pretty straight forward as far as error messages go!
Do you by any chance define a class in your project with the name "MenuItem"
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hi all,
I have created an app which starts and the forms are
kept invisble, but when i press ALT + TAB the Form
is displayed.
I want to avoid this.
Any ideas will be appreciated.
Thanks,
Pramod
|
|
|
|
|
Hi Pramod,
there must be a form-property called "ShowInTaskbar". Setting this to false should fix your problem.
Hope this helps,
Regards
Sebastian
|
|
|
|
|
Thanks,
Actually i had set that property but the actual problem was i had called the forms ShowDialog() method,
due to which that was visible.
Thanks for ur time
Pramod
|
|
|
|
|
Use Show() not ShowDialog()
|
|
|
|
|
hi friends,
Can anybody tell me which framewok do i need for using this namespace i have VS2003 i need to use "using microsoft.PointOfService;"
|
|
|
|
|
It should be microsoft.pointofservice.dll
_____________________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA] - Developing ScrewTurn Wiki 1.0b...
|
|
|
|
|
Hi There (sorry for my english, not my native language),
I'am using a RichTextBox (docked "fill" in a form) , with no word wrapping , my problem is that when it is polpulated with around 50.000 line resizing the parent form takes times.
Considering that :
-scrolling is fast
-I do not want word wrapping
It seems weird to me why there is this overhead when resizing(*).
I am thinking of a solution:
- do not dock the rtf , size it at screen maximum size (and so let the parent form hide the "out of client area" parts).
- handle scroll bars of my own
But before starting the big thing I will *really* apreciate if anyone has already solved this kind of problem or , have a better idea ???
Thanks in advance for any help or views
(*) WordPad for instance it rft based and is damned fast in resizing big documents.
Girm
|
|
|
|
|
Hi guys,
I am trying to find a way to modify the times in the machines power schemes to define the time when the computer will go into the standby mode.
I have scanned the MSDN (and there especially the WMI providers),
but haven't found anything there.
For my specific problem I would prefer to modify the time span directly, but as a fallback I could live with changing the used power schema.
Any help on how I can do this would be appreciated!
Cheers,
sogge
|
|
|
|
|
Use the SelectItem, SelectedIndex or SelectedValue property.
---
b { font-weight: normal; }
|
|
|
|