|
look for icon property in your form's property window (generally located in right hand side pane of your IDE).
|
|
|
|
|
I have used the icon property before.But the custom icon never appear.i dont know why?
|
|
|
|
|
Hi ,
I have to fill a datatable with data from an ADODB recordset. I am using OleDBDataAdapter's fill method to do so.
The problem is as follows -
There is an adDateTime field in the recordset. Upon calling the fill method, it is converted to System.DateTime. But the 'time' part is lost and i get only date values for all the rows.
Could anybody please help ?
Thanks & Regards, Maau
|
|
|
|
|
This is my code:
Excel.Range _Rng = (Excel.Range)_xlsSheet.get_Range("A1:H17", Missing.Value);
Where “C5:F11” is a merged cells in range “A1:H17”
It always report errors : Can't get object.
|
|
|
|
|
hi, in dll project i create document,but if i add it to the other
project , i can not see my dll documents. why?
|
|
|
|
|
You must provide access to your document.
What is the type of your document ?
Best regards, Alexey.
|
|
|
|
|
hi guys!
need some help from u guys...
i hve just started working on c# from vb.net
and i m facing some problems..
in vb.net we can withevents keyword and call all the events of controls like for eg. for textbox textbox_textchanged(), textbox_keydown(),textbox_lostFocus(), etc .
but in c# i didnt found such keyword or related stuff..
coz of which i m not able to use such events properly can anyone let me know how to use these events..
thanks..
abhinav
|
|
|
|
|
Nope. That's the ONLY cool thing about VB. In C#, you need to go to your load event ( or the events list in the properties, then it goes in initializeComponent automagically ) and set the event handlers.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
In order to make use of those events,U need to use Javascript onkeydown,focus events
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
how can i import an excel worksheet data to load it to my sql server table?
rone_matias
|
|
|
|
|
You can use the Odbc driver[^]. I do it often so:
1. Save your worksheet to csv file format but it must be looking like a table
field_name1 | field_name2 | field_name3
---------------------------------------
values | values | values
2. In your application you write
using Microsoft.Data.Odbc;
using System.Data;
....some code...
DataTable dt = new DataTable();
OdbcDataAdapter adapter;
OdbcConnection csvDB;
csvDB = new OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)}; Readonly=true;DBQ=[dir where is your file]");
adapter = new OdbcDataAdapter("SELECT * FROM [filename].csv", csvDB);
adapter.Fill(dt);
3.
foreach(DataRow dr in dt.Rows)
{
.....
with INSERT queries put it to your SQL DB.
}
|
|
|
|
|
thank you very much. now what i need to learn is how to all the worksheet names of a particular workbook and put them all in a datatable. how would i do that? need help on this.
thank you in advance.
|
|
|
|
|
U can use DTS Wizard
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
i have two dropdownlist containig dates
when i submit the dates
then c# page should enable a javascript function passing some arraylists as parameters andsome count values
then in java script function it should create a main checkbox for checking all checkboxes and
dechecking all checkboxes and some group of checkboxes
when i check only some checkboxes it should the list of checkboxes i have checked in a label box
and it also has to show the number of checkboxes checked .
all these checkboxes should be shown on webpage
|
|
|
|
|
So, what's the question ?
Best regards, Alexey.
|
|
|
|
|
Hi! I'm been searching the net for a solution to this problem.
How to convert a HTML Page to a PDF File. I've seen third party controls but most of them are
trial versions. Also I've seen those that are free but unfortunately it doesn't support Japanese
Characters.
If you guys have any ideas on how to solve this problem. I will really appreciate it. Thank you.
|
|
|
|
|
how to know the fontstyle of a character that is present in a .doc or .rtf files when the file is loaded in to the richtextbox control through openfiledialog box control.
|
|
|
|
|
Hi,
We have different activex dll , we create interop for every activex Control (developed in vb 6.0).
We used com interopility tool provided by dot net framework for creating com interop, the tool creates two dll for each acivex control. We have more than 50 AciveX Controls so for 50 Activex it creates 100 dll files.
It is difficult to maitain all dll files.
The Problem :-
I want to merge all dll files into single dll file. Tell me whether it is possible to
merge all wrapper dll into single assembly if yes then how i will do this and how to use .
Regards,
Vighnesh Ambekar
Vighnesh N. Ambekar
|
|
|
|
|
|
Thanks Jakob
Regards,
Vighnesh N. Ambekar
Vighnesh N. Ambekar
|
|
|
|
|
i want the idea or suggitions for migrating tha Oracle Data to Sql Server for this i need what are the pre-cautions i need to take .Plz provide information.If forwarded any Need full links greatfull to u. my basic coding part in C# thats why i posted in this board.
Thanks in advance
mahesh
|
|
|
|
|
hi all,
am using .net 2.0 and i am wanting to get a list of all open programs on the system, like in task mgr applications tab.
how can i acheive this pls? i dont want to get all the hidden windows and controls just the active (maximised or minimised) windows (application that are available), the parent windows if you will, not all the children that are returned from EnumChildWindows.
once i get this i can get a handle to that window
kind regards,
g00fy
|
|
|
|
|
|
that returns running processes
i just windows. i have some code that is close, i will post it when perfected.
kind regards,
g00fy
|
|
|
|
|
ok as promised and after trawling the windows api, always an excellent read.
i have this, which works nicely for my own screenshot app that is loaded with useful things.
i plan to add this to the explorer context menu so u can choose which window to capture or you can capture a region using a selection rectangle on the screen.
enough of that here is the code
of course, anyone using this will need to dllimport the requried functions
btw the reason it was failing was because i was using GeWindowText() instead of sending WM_GETTEXT.
public static Window[] EnumerateTopWindows()
{
ArrayList windowList = new ArrayList();
IntPtr hWnd = IntPtr.Zero;
Window window = null;
hWnd = GetActiveWindow();
hWnd = GetWindow(hWnd, GW_HWNDFIRST);
while (hWnd != IntPtr.Zero)
{
if (IsWindow(hWnd) && IsWindowVisible(hWnd))
{
IntPtr parentWin = GetParent(hWnd);
if ((parentWin == IntPtr.Zero))
{
string text = GetText(hWnd);
int length = text.Length;
if (length > 0)
{
if (text != "Tray" && text != "Start" && text != "Task Manager" && text != "Program Manager")
{
window = new Window();
window.Handle = hWnd;
window.Text = text;
windowList.Add(window);
}
}
}
}
hWnd = GetWindow(hWnd, GW_HWNDNEXT);
}
return (Window[])windowList.ToArray(typeof(Window));
}
private static string GetText(IntPtr hWnd)
{
int cap = 1048576;
StringBuilder buffer = new StringBuilder(cap);
SendMessage(hWnd.ToInt32(), WM_GETTEXT, cap, buffer);
return Convert.ToString(buffer);
}
kind regards,
g00fy
|
|
|
|