|
Hello
I am trying to open an assembly file by using fileopenDialogBox and unable to do so... Can anyone help me in this regard... Infact I am trying to open Dll's from GAC probably that is the problem... Plz help me...
Thanx
|
|
|
|
|
Hi man,
try this:
Assembly exeAssembly = Assembly.LoadFile(OpenFileDialog1.FileName);
Hope that Helps.
GanDad
|
|
|
|
|
I have a class I declared as static.
It works fine. It simply inserts a record into the database.
Firts I specify the catabase type(Access or SQL) from an enumeration and populates a coonection string.
But I would the form or web page to automatically populate the connection string.
The text for the connectionstring is in a web.config or appname.exe.config file and always has the same name "connectionstring".
Any ideas?
Nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
How about adding a type constructor and populating the connection string there? Something like
class MyForm : Form
{
static MyForm()
{
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
i'm trying a treefolder and i've got some probleme retrieving from which drive comes a treenode.fullpath.
lets say i've got a node like this
-my computer - drive C - folder 1a - folder2
- folder 1b
- drive D - folder 4c - folder 3
when i get a fullpath i've got
my computer\drive C\folder 1a\folder2
so i get only the "\folder 1a\folder2" part
then i dont know how to determine that drive C is "C:\"
i thought of getting the index of drive C and map it in the getlogicaldrive list
but how do i get the drive C index when i'm in folder2 node ?!
|
|
|
|
|
Use the tag property while loading the treeview and get the link from it.
|
|
|
|
|
well the fact is that the drive is embedded in the tag but since i've got a root node
i can't happend to get it
i use the selectnode then i'm stuck to find the level 2 node which happens to have the drive path in its tag.
root - drive 0 (tag = c: ) - node 1
. - drive 1 (tag = d: ) - node 2 - nod3 -nod4 <- selected node
nodes[0].nodes ...?
|
|
|
|
|
I'm in my first year of college, and I am trying to get ahead in computer science. I just bought a book called Robert Sedgewick's Algorithms 3rd Edition in C++. Could someone give me an idea? Would it be a good idea to study the whole book? Or certain parts of it? Or get direction or guidelines elsewhere? So far I've learned C++, C# and VB .Net... I thought that learning different data structures and algorithms would be a next good step, but am I wrong? There should probably be some good steps as good advice to advance a novice programmer like me. Could anyone help me here please? Thanks...
|
|
|
|
|
Knowing many data structures and algorithms is always good. But consider not learning too much theroretical things in such a small timespan. Its VERY important to try things out. Make up a project in your mind and just do it. You could also write an article here on CodeProject. This way you would even have some reviewers.
|
|
|
|
|
I can suggest you my method, but I don't tell you its the best
When I intrested in a new language, first I read articles, about its features.
And than I start coding, so somebody said its wrong way, but I don't think so, because, while I try to coding my ideas I brows a lot of other articles, and books, to can implement my idea. It's mutch an intristing way, but sit down in the chair, and read a million page of algorithms yahh .
I always write little application for myself eg: file managger, picure weaver, textr editor, math formulas to help do my homework, and such little thiks.
And now I've millions line of code to write myself, nad I think I'm in friend with some usefoul language.
Wish you the best, do't give up, programming is the best thing
Yust one more suggestin:
Visit this site as often as you can, it's the best place I ever fint in the WWW.
PS:
Sorry my bad english
Nemo (form Hungary )
|
|
|
|
|
I am working on a project which needs to constantly refresh a form. If the processing speed is low, the form refreshing will become slower and slower. Is there a way to cancel all those previous redraw messages and just process the latest one?
Thanx
|
|
|
|
|
Hi guys it is very important for me can create a floating toolbar that appear active if the main one is active, and not when the main is not.
Ok it need to handle hook windows message and it is not relly simple but it is possible you can see it exists and works in much graphic program gui and you can see a c++ example here: http://www.codeproject.com/docking/dockwnd.asp
Ok now i need a C# version of this example but i don't know where.
If someone know where can i learn or if he can show me some row of code i'm grateful.
|
|
|
|
|
How many times are you going to ask this question, then ignore the answers we give??
Last time. You DO NOT hook windows messages to get this to work!!!!!!!! Only ONE window can ever be active. I KNOW there are applications that are out there that give you the ILLUSION that two windows are active. This is NOT the case. You have to owner draw the tool window to get it to appear active when it really isn't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Now i'm so curious to know why isn't this the case!!
What difference came from?
I answer you it is the same stuff!!!!! Not different!!!!!!
And in the tutorial you can see they use hooking windows message to get this ILLUSION! not using a own drawing becouse if i use a blue drawing for the tite bar of my toolbar like the main and the user use a grey windows impostation it works bad!!!!
So i tell you if you don't know how, please don't answer telling these things!
Thanks
|
|
|
|
|
Why don't you read the article? It's actually very very simple:
http://www.codeproject.com/docking/dockwnd.asp#DEACTIVATE[^]
And no, you don't uses hooks to intercept window messages. Simply override WndProc in your derived class, check for WM_NCACTIVATE message, and before calling base class, always set wParam to true (if your main window has focus.) In the article it takes two lines of code.
[EDIT: A couple of things: First, VS.NET and Office *do* use ownerdrawn title bars. And second, in VS.NET, a toolbar's caption bar never is painted active (only for docked windows.)]
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
ok, but how can i set for my window a my owndrawed title bar?
|
|
|
|
|
You don't. You set your window to have no titlebar at all, and then paint one at the very top.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hello All,
I have a couple of questions. First I am using v2.0 of the Data Access Application Block. I am using the filldataset and executedataset functions of the DAAB. I have been reading some on typed vs untyped dataset. My question, if I created a typed dataset which contains certain tables and then I use the filldataset and pass in the typed dataset and a sql statement with the new table name for the sql statement. Where is the advantage. Is now the new table I created in the typed dataset easier to access. I am confused by why would I use a typed dataset and create a new table from a sql statement and put it in the typed dataset.
Thanks
|
|
|
|
|
Typed dataset is much faster than untyped dataset.
|
|
|
|
|
Is it? I wonder why it should. Do you have any links regarding this?
|
|
|
|
|
Hi Robert
The DataTables, DataColumns and functions are well defined in typed dataset. In design time itself you will know the number of tables, number of columns in a table and its data type. But in un-typed dataset everything will be generic.ie number of tables, number of columns in each table and its data type every thing will be decided and created by runtime. It depends upon the query or stored procedure. When we try to fill an un-typed dataset using adapter first runtime will execute the query or stored procedure. Then it will analyze the results and based on that it will create tables columns in dataset. So it takes more time than typed dataset.
Tnx
M.Sendilkumar
Thomson,B'lore,India
|
|
|
|
|
hi all.
How can i Convert the sound comes instantly from the microfone during the speaker talks into array of bytes to use these bytes to send it over the network any help on how can i convert the sound from the micrfone into array of bytes.
Please any one wanna help writes his code below to see it
Miss With The Best And Die Like The Rest
|
|
|
|
|
If you don't want to use componentts/API (EG: Skype or MSN API) for this function, I tell you one way (I know it's a litlebit supid, but... )
Yuo can find a lot of articels for the sound recording, and playing, so:
- record the souind into a file
- get the bytres of this file, nad transfer it
- on the other side play back the file
But I think it's a werry slow way.
Please if you find a way to solve this problem, post it back tom me, I'm interested in this ide too.
Thanks
|
|
|
|
|
Hello,
I have a database table with 2 fields, DepartmentCode, and DepartmentName. I want to add the values of these 2 fields into a combo box from the database. I can add one field, but how can you add 2 fields to the combox so that when the user clicks it, it will display all the departmentCode and Department name in 2 columns.
I can do this with just one field, but l am having trouble tying to display the extra field. Is this possible in a combox box?
Thanks in advance,
Steve
|
|
|
|
|