|
Hi,
the Intellisense info is collected in a separate xml file, provided you enable this
feature (by specifying the file name) in the project's properties.
It remains available as long as you keep the xml file next to the dll file itself;
referencing the dll file in another project makes Visual look for the xml file in
the same directory.
Luc Pattyn
|
|
|
|
|
Luc,,
Thanks for your input...I dont wanna document or specify additional information for my classes.I just want the constructor name and signature to show up when I an using object of this class..
As in
MyClass tstClass=new (I want MyClass name and the overloads for the constructor to automatically appear here)
Thanks
Joel
JO
|
|
|
|
|
Hi Joel,
Member names are available to Intellisense as soon as you have provided these two:
- a reference to the dll file (Add Reference... in Solution Pane's context menu)
- a using statement (at the top of your C# source files).
Warning: you see method names only if:
- you have a class instance name for non-static methods; e.g. FileInfo f; f.Open();
- you have a class name for static methods; e.g. File.Open()
The extra info you can add with triple slashes goes into an xml file, cfr my previous message.
Luc Pattyn
|
|
|
|
|
I have an aplication with a media player control . Im trying to get it to load the last played file when the application is run again . ive allready used the code below to set the path to the last file the media player played .
// Set last url
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Flexbeta\\VideoDesktop");
key.SetValue("LastFile", SelectFile.FileName);
key.Close();
The problem is when i try to use the int value LastRun to control the media player control i get the folowing build exception "Cannot implicitly convert type 'int' to 'string'" because MediaPlayer.URL requires a string value . Im looking for a way to use the int value LastRun as the media player URL
//Load the last file
Microsoft.Win32.RegistryKey key2;
key2 = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Flexbeta\\VideoDesktop");
key2.GetValue("LastFile");
int LastRun = (int)key.GetValue("LastFile");
MediaPlayer.URL = LastRun; <-- problem !!!
Any ideas ?
|
|
|
|
|
Use static methods of int class. int.Parse or int.TryParse
|
|
|
|
|
\Can you give an example ive never tried this before
|
|
|
|
|
int iTmp = int.Parse("8");
|
|
|
|
|
Why on earth are you trying to use an integer as a file name in the first place?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I expect the line
key.SetValue("LastFile", SelectFile.FileName);
stored the file name as a string.
And I expect MediaPlayer.URL needs a file name, hence a string too.
So I dont understand why you want to use an int LastRun ?
I would try
string LastRun = key.GetValue("LastFile");
MediaPlayer.URL = LastRun;
Luc Pattyn
|
|
|
|
|
I am using windows xp as my OS. set the system time format as US format. I have developed an application in c# with msssql server as back end. When i change my system date format as UK format (dd/mm/yyy) i am getting the application crashed. The error is comming in the sql query to insert into db. It shows the date is overflow.
Can anyone figure out the issue
regards
hari
aspspider.net/rkharikrishnan
|
|
|
|
|
Are you storing the date in a neutral format such as UTC?
only two letters away from being an asset
|
|
|
|
|
Yep, date formats are a popular reason for failure.
What is 01/02/03 supposed to mean if you are not sure which date format is used ?
And which of 28/02/03 and 01/31/03 does not exist (and will cause a Parse exception) ?
So best is to use a universal format (such as UTC), independent of what will be
input/output to the users.
Luc Pattyn
|
|
|
|
|
thanks for teh reply.
can you tell me how i can use UTC format. I am having datetime pickers in my form and also i have to use current date
|
|
|
|
|
Hi,
there are actually two issues:
- time zones: if you want to be able to exchange files that contain time info around the
world, the app must understand how to handle differences in time zone. That is what UTC
offers a good solution for (see some of the DateTime methods).
- formats: if you want your app to understand date/time strings in a file, you can not
rely on the system's datetime format during parsing to correspond with the one used
during writing that info (on same or other machine, by same or other user, with
regional settings maybe changed, etc).
There are some articles dealing with these issues here on CP, try a search.
A found at least one that seems relevant.[^]
Luc Pattyn
|
|
|
|
|
i am looking for a dll file which will enable me to record from a mic from sound card and video from a webcam and coding them to (for example mpeg, mp4, avi, ...) and send them through the network to specific host ... so the host can decode the received data ,preview it, and save to a file.... all these by using C#.net 2005
and the HELP document for the DLL file if available...
Thanks a lot
best regards
|
|
|
|
|
Why not search for them?
marwan_siala wrote: record from a mic from sound card and video from a webcam
Here[^]
marwan_siala wrote: and coding them
Here[^]
marwan_siala wrote: HELP document for the DLL
See articles.
|
|
|
|
|
thanks a lot my friend...
i have already did some search about the dll file and i fine it... but i don't know if the dll provide seending live capture through the network i have which is the main purpose i want.
thanks
|
|
|
|
|
Read the provided information, or try it out yourself?
Internet - the worlds biggest dictionary
|
|
|
|
|
|
somthing like this:
if i click on button1 a listbox is loaded
if i click on button2 a datagridview is loaded
in the same form with the button. when button2 is clicked the listbox loaded by button1 closes and viceversa
|
|
|
|
|
if btn2 clicked
listbox.visible = false
if btn1 clicked
grid.visible = false
Is this what you mean??
only two letters away from being an asset
|
|
|
|
|
no
the listbox has data resources and it won't work like this because the resources have to change
what i am trying is to list the contents of a table in a listbox when i click the first button, then when i click the next one the data from another table is loaded in the same listbox or something like that
|
|
|
|
|
Have you used the DataSource property of the listbox?
only two letters away from being an asset
|
|
|
|
|
yes!
can you help me please
|
|
|
|
|
It would be more productive if you said what you have tried (code) and what were the results.
only two letters away from being an asset
|
|
|
|