|
cool thanks
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Hi,
How do i manage an application who have 2 windows?
Is it possible to have a frame in C# where I can show the active screen?
In Java I would first create a JFrame to manage all the JPanels.
How do I do that in C#?
modified 23-Jul-20 21:01pm.
|
|
|
|
|
a splitter window, a panel
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
How can I add a Form like Taskbar?
It stays at an edge of the screen. It can AutoHide when mouse leaves and Show when mouse moves in.
My English is poor.I hope you can understand me.
Thank you.
|
|
|
|
|
|
Hi Dears
I want to develop a MS Word Addin. The main functionality of this addin is:
--> I have to convert a MS Word file (.doc) into (.pdf) file format.
What should I take as first step to implement this functionality.
Kindly guide/help me in the form of some code/link.
I'll be grateful to you.
Kind Regards
Atif
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
|
|
|
|
|
First Buy a com to use
this is the cheapest. I bought it for 65.00
iSEDQuickPDF for $65.00
then create a wrapper with the tblimp.exe utility then just access. The
guy who created is reall nice and he will answer your questions.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
|
Ok
Check out this site, if you dont want to pay for an ActiveX control that is.
http://www.sp.uconn.edu/~fdb94001/using-gs/make-pdf.html
|
|
|
|
|
Hiya I need to get WSAStartup in working C#.
I have done this to get the function loaded in the project:
#region SOCKETS
[DllImport("wsock32.dll")]
static extern int WSAStartup( uint wVersionRequested,LPWSADATA lpWSAData );
#endregion
The problem is that I don't know the namespace that LPWSADATA uses.
This anyone know what the namespace is for this structure??
Thanks.
|
|
|
|
|
Any reason why you're not using the System.Net.Socket class?
|
|
|
|
|
I don't think there is a public declaration of the WSADATA structure in any namespace Microsoft provides.
Typically, writing in managed code, you don't need to call WSAStartup directly, using code in the System.Net.Sockets namespace will take care of calling it automatically for you.
Is there some reason System.Net.Sockets isn't doing what you want?
Burt Harris
|
|
|
|
|
The simple reason is I am much more comfortable with using WSAStartup sockets.
I am not to sure how to use C# sockets as I am only learning C# (not sockets) the last few weeks.
My objective is display a list of network users and their IP Addresses. Thats all i want to do..
If somebody can plz show me how to do this in c#, I would be very grateful.
Thanks.
|
|
|
|
|
I just made a little application...
It uses xp visual sytles & a sql 2000 database...
Usually on my normal apps(that don't use visual styles or sql), I can just make a quick installer, or just copy the whole file to the other computer and use the application...
Now, with sytles and sql it wont...
What are the special things I have to do to get the app to run on other computers???
/\ |_ E X E GG
|
|
|
|
|
XP visual styles
If you are using NET Framework 1.0 you have to add a manifest file to your project and choose the build action of that file to content. The manifest file should follow the naming convention yourappname.exe.manifest and its content should include the following:
<?xml version="1.0" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Insert Application Name/Description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="X86" />
</dependentAssembly>
</dependency>
</assembly>
If you are using .NET Framework 1.1 either follow the same method or use Application.EnableVisualStyles() method.
sql 2000 database
Your setup project has to check if SQL Server or MSDE is installed before it actually installs your program. This is done by creating a Launch Condition in the setup project. You also need to create the database on the user's computer. This is done by creating a Custom Action in your setup project.
Also, in case SQL Server or MSDE is not present, you might want to include a MSDE installation in your setup project. This can also be done creating a Custom Action in your setup project.
|
|
|
|
|
this sucks...
/\ |_ E X E GG
|
|
|
|
|
I forgot how to do it. How do I access a private/protected member of another class using system.reflection?
|
|
|
|
|
I didnt know that was possible.
To those who didn't make it, we will remember you. To those who did is back. - Megan Forbes in Black FridayAnother Post by NnamdiOnyeyiri
|
|
|
|
|
Never mind I figured it out
|
|
|
|
|
I'm creating a file in a dll with:
invoke CreateFile, addr logfile, GENERIC_READ or GENERIC_WRITE, FILE_SHARE_READ or FILE_SHARE_WRITE, 0, CREATE_ALWAYS, 0, 0
and then trying to open it for read access with:
fs = new FileStream("whlog.log", FileMode.Open, FileAccess.Read, FileShare.Read);
which always gives me:
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file "C:\<path>\whlog.log" because it is being used by another process.
What gives?
|
|
|
|
|
grv575 wrote:
which always gives me:
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file "C:\\whlog.log" because it is being used by another process.
What gives?
simply what it said either your program has already attached to it without a share or you have not released it yet in previous code. You might check the application tabs on task manager and see if your program did not shutdown correctly. Its happened to be during devlopment before
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Yes but I did give a fileshare flag. Would think that would allow me to open the file again as long as I still supply the same fileshare flag.
|
|
|
|
|
Weel another app has to be putting a lock on it or your not releasing a lock. try opening it in word and see if its being held.
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I am trying to get assembly info from the AssemblyInfo.cs file, but for some reason I get a null returned for attributes that I specified. Specifically, I provided values for the AssemblyTitle and AssemblyDescription field but both return empty. Any ideas on this ?
public ArrayList GetOmsList()
{
ArrayList drivers = new ArrayList();
DirectoryInfo driversFolder = new DirectoryInfo(dirPath); //direcotry path of drivers
if (driversFolder.Exists.Equals(false))
{
Console.WriteLine("Drivers Path Does Not Exist");
//break out of the following code
}
FileInfo[] allFiles = driversFolder.GetFiles("*.dll");
if (allFiles.Length == 0)
{
Console.WriteLine("No Dlls Found");
}
foreach (FileInfo f in allFiles)
{
string fileName = f.FullName;
try
{
Assembly a = Assembly.LoadFrom(fileName);
Type[] types = a.GetTypes();
foreach (Type t in types)
{
if (t.GetInterface("IDriver", true) != null)
{
object[] attributes = a.GetCustomAttributes(true);
foreach (object attribute in attributes)
{
if (attribute is AssemblyTitleAttribute)
{
drivers.Add("title"+((AssemblyTitleAttribute)attribute).Title);
}
else if (attribute is AssemblyDescriptionAttribute)
{
drivers.Add(attribute);
drivers.Add("descript"+((AssemblyDescriptionAttribute)attribute).Description);
}
}
drivers.Add(t.Name);
Console.WriteLine(t.FullName + " Implements Driver Interface");
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message.ToString());
}
}
return drivers;
}
|
|
|
|
|
I think those two attributes are converted into information in a version resource, and not retained as attributes. You should be able to access them via FileVersionInfo.GetVersionInfo() .
Burt Harris
|
|
|
|