|
There is an article on Passing values between forms[^]
Does that help?
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
-- modified at 2:28 Thursday 15th December, 2005
|
|
|
|
|
Hi there have you tried SessionState ?
Aim small, miss small...
|
|
|
|
|
Hi,
If you are using McAfee anti virus scanner, do the following:
1. Right click the McAfee task bar icon and open "VirusScan Console" window.
2. From VirusScan console window righ click the "Buffer Overflow Protection" option and disable it.
3. Run your application again.
Happy Programming!!!
Regards,
P.Anbuselvan
Sr.Software Engineer
Hyderabad
|
|
|
|
|
Follow this link
http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=32810
|
|
|
|
|
Hi there,
Can someone please provide me with the steps or a good resource that explains in detail how can I call a COM C# Server from a VC++ 6.0 Client...
There is an article on codeproject that describes well the C# part but it doesn't get much in the details of calling it from the VC++ client.
Can someone please help out?
Cheers,
Eagle
|
|
|
|
|
|
Thanks a lot Amit,
Shall I write the following command in the command prompt after reaching the project's folder?
csc /target:library /out:ECSLink.dll ECSLink.cs
tlbexp ECSLink.dll /verbose
I set the "register for COM Interoperability" to "true",won't that eliminate the need to write the above commands?
Another thing is that I get an error message when trying to run these commands from the command prompt telling me that they are an unidentified internal or external commands?
Any idea why?Is there something wrong with my installation?
Shall I place both the C# COM Server and C++ Client in the same folder?
Thanks again Amit,
Eagle
|
|
|
|
|
definately you can write the commad using .net command prompt which is available at
Programs->Visual Stdio.net 2003->Visual Stdio.Net Tools->Visual Stdio Commad Prompt
running command from from .net command promplt resolve ur problem " Undentified internal or external commands"
i am not sure but i think it would eliminate the need to write the command. if you set " Register for Com Interoperability" to true.
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
Thanks a million Amit,
But what about the command that is used for building the cpp file.
"cl filename.cpp"
What will I use in this case since it's a VC++ 6.0 file?
All the Best ,
Eagle
|
|
|
|
|
Hi,
I am writting application that uses the funcion RasDial ...
from some reason i am allways getting error in the return value
it is always 87...?
the prototype is like this
[DllImport("rasapi32.dll",CharSet=CharSet.Auto)]
public extern static uint RasDial(IntPtr lpRasDialExtentoins,string phoneBook,RasDialParams lpRasDialParams,int dwNotifierType,RasCallBack lpNotifier,RASCONN lpRasConn);
the delegate is defined like this:
public delegate void RasCallBack(uint unMsg,RasConnectionState connectionState,int dwError);
and the usage is like this
RasDialParams dialParams; //Holds the RAS Dial parameters;
RasCallBack notifier;
RASCONN rasConn;
bool pass;
uint retVal;
//Retriving the dial parameters
dialParams = new RasDialParams();
dialParams.dwSize = Marshal.SizeOf(typeof(RasDialParams));
dialParams.szEntryName = m_name;
retVal = RASDialerResources.RasGetEntryDialParams(m_phoneBook, ref dialParams,out pass);
if(retVal != 0 )
{
throw new Exception("Could not get the dial parameters");
}
//Preforming the dial up
dialParams.szUserName = username;
dialParams.szPassword = password;
rasConn = new RASCONN();
rasConn.dwSize = Marshal.SizeOf(typeof(RASCONN));
notifier = new RasCallBack(PPPoEDialer.RasNotifier);
retVal = RASDialerResources.RasDial(IntPtr.Zero,m_phoneBook,dialParams,0,notifier,rasConn);
if(retVal!=0)
{
throw new Exception("Could not Start the ras dial");
}
m_rasHandle = rasConn.hrasconn;
hope that u can help me
Regards
Avishay
|
|
|
|
|
Hello friends,
I am developing a windows applications in C# using Visual studio.NET. I am generating a report type form using labels and textboxes. I want to show a lot of date on that form. The problem is that while designing the form, I am not able to increase the height of the form farther than its maximum height.
Plz provide me the solution to increase the height of the form during designing of the form.
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Dear Sandeep,
Try setting the autoscroll attribute of the form properties to "true".
Then adjust the width & height in the size attribute of the from properties to what you like.
Hope this helps.
All the Best,
Eagle
|
|
|
|
|
Thanks for ur reply. I had already set Autoscroll property to true. But I am still not able to increase sixe of the windows form.
Thanks,
Sandeep
+919891027854
|
|
|
|
|
I'm not sure that this is the place for my question
but I really need your help on this one.
Is there any way to pass parameters to Crystal Reports
to be used in a query without calling a stored-procedure?
|
|
|
|
|
Below is an example Exception.String copied from a MessageBox. How does one extract the exception information individually? The Exception class allows access to some of this information individually such as Exception.Message, but not all. Relevant to my use would be to extrat the information on the last line where it gives location information about the error. Do i have to use Regular Expressions on Exception.String or is there an easier way?
System.ArgumentNullException: Path cannot be null.
Parameter name: path
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at App.Settings.Save() in c:\_apps dev\music\sndfileconvert\build_00_01_03_004_csnet\main\settings.cs:line 251
|
|
|
|
|
redfish34 wrote: The Exception class allows access to some of this information individually such as Exception.Message, but not all.
Yes, it does. All information in the message box comes from the exception object, where else would it come from?
The location information is in the StackTrace property.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the confirmation. It looks like if i want specific information from the StackTrack, i will have to parse the StackTrace string with RegEx. No biggie, just wanted to make sure i was not overlooking something.
|
|
|
|
|
Hi there,
What I want to do is to build a COM Server in C# and call it
from a VC++ Client(visual studio 6).
An example of that is found on :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkcominteroppart2cservertutorial.asp
However it's not detailed.The sample example explained provided
on that website doesn't open in the first place so that I can
track it down.
Whenever I try to use regasm or cl that are mentioned to be
command prompt commands I get that no such internal or external
command exist.
Here's what I did:
1-I created a C# project of type "Class library"
2-I have pasted the provided C# Server code in it
3-I set the "register for COM Interop" in the build properties
to "true"
4-I built the project,it was built successfully with no errors
5-I started without debugging but ofcourse it wont' run
In another article I found,it said that before step 4,I should
create a strong name for the assembly using the utitlity sn.exe
but I can't figure out how to use it.
http://www.codeproject.com/csharp/COM_Object_in_C_.asp
As for the C++ client, I just created a new C++ file and pasted
the code.After that I am unable to run the given commands
provided to know what to do next.
Can you please help me out?I am really stuck.
Cheers,
Eagle
|
|
|
|
|
Hello all,
I'm new to c# and I'm having a heck of time trying to figure out this problem. What I'd like to do is take an xml document that has repeating elements, break it up, and output several xml documents based on the split.
eg...take this
"root"
"whatever"
"something" blah "/something"
"else" blah blah "/else"
"/whatever"
"whatever"
"something" blah2 "/something"
"else" blah2 blah2 "/else"
"/whatever"
"whatever"
"something" blah3 "/something"
"else" blah3 blah3 "/else"
"/whatever"
"/root"
and output three xml separate documents, each containing "root", "whatever", "something", and "else".
I've tried a few things using xmltextreader and writer, but nothing has worked thus far. I'd image I need to store the original document in memory somehow and go forward from there...but that's the thing, I'm not sure how to do this. Any help will be greatly appreciated. Thanks.
ps i used "" rather than tags because i wasn't sure how to get the xml syntax how to appear on the page
-- modified at 22:53 Wednesday 14th December, 2005
|
|
|
|
|
I put a tabcontrol into my form, there are 3 tabpages and I want my user can switch between tabpages by pressing CTrl+tab. How to do this?
Note:my project has a mdiform, when I click menu, the form containing tabcontrol appear but if I press ctrl-tab, nothing happens.
I create new project with single form, add a tabcontrol into my form, when pressing Ctrl-tab everything is OK. Why?
Regards.
|
|
|
|
|
Hi everybody,
What is difference between a local time and a system time, Correct if I am wrong, system time is time of the system server where your computer is connected. So, if I would change system time I need to change the tme on the server. Right? How would you set(change the local time programatically? Also, using DateTime.UtcNow is to get system time? How to change the system time programatically? How to get and set(change) Time Zone? The System is a remote server and can be access through internet. How to cahnge the time at server?
The situation is this, if the application is to be used by say user from another country, they have their own local time and Time Zone Info, and their own system (server) time. I like these to be configurable. I know that to change timezone I need a class and method inside the System.Globalization. Can you help narrow it down or pinpoint it for setting and getting time zone? Also, how to get a list of Time Zone to be displayed in a Combo Box? Is there a method for this?
I am looking a direct method in setting or getting these values.
denpsia
|
|
|
|
|
Hello !
I am developing a Desktop base not Web base application in C# by using Visual Studio 2003 I want to show images in one column of datagrid against each Product Id by using Picturebox which is coming from Database I also want to raise events against the click and mouseover events of each picturebox Moreover I want to edit images too in Database by using "OpenFileDialog" in Datagrid plz tell me how can i do that????
Please also intimate me on my email address "abubakar.malik@gmail.com"
Regards,
AbuBakar
|
|
|
|
|
Is there a way to copy more than 1 textbox to the clipboard? I tried doing individual statements for each textbox but the last one is the only one that shows up.
textBox1.SelectAll();<br />
Clipboard.SetDataObject(textBox11.SelectedText,true);<br />
<br />
textBox2.SelectAll();<br />
Clipboard.SetDataObject(textBox2.SelectedText, true);
I need to copy the contents of 13 textboxes to the clipboard and somehow (if possible)paste them onto a Word document with a line break inbetween each field.
Any suggestions?
Thanks!
Apoc
|
|
|
|
|
How about this...
var content = textbox1.value + textbox2.value+...<br />
clipboard.setDataObject(conten,true);
Hope you get the idea...
<< >>
|
|
|
|
|
You rock!
Thanks so much!
Apoc
|
|
|
|