|
That is hardly an accurate description. GTK# is not a language but a GUI toolkit that can be used by Mono.
|
|
|
|
|
umm, mono is the framework like vs.net in windows for linux and gtk# is a C# binding of GTK+graphical library.
in linux
GTK->C & # -> #= GTK#
evilinside
|
|
|
|
|
EvilInide wrote:
In linux c# is called as GTK#
Yes, so GTK# is not the linux name for C#.
|
|
|
|
|
Hi, i'm currently working with drag and drop between windows explorer and a form using the .net drag and drop.
I have a file and a directory with the same name and i want to drop one of them from explorer to my form.
Is there a way of telling whether the item i'm dropping into the form is a file or a directory?
Thanks in advance
|
|
|
|
|
Doesn't it deliver a path ? File.Exists will tell you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
yep, it delivers the path, but the problem arises when there's both a file and a directory with exactly the same name. If I use File.Exists and I'm actually dropping the directory then I would get the wrong item.
|
|
|
|
|
You will need to load the file in as a FileInfo and then look at the attributes to see if it's a directory or not...
<br />
FileInfo f = new FileInfo(strFileName);<br />
if ((f.Attributes & FileAttributes.Directory) == FileAttributes.Directory)<br />
{<br />
}<br />
else<br />
{<br />
}<br />
|
|
|
|
|
You CANNOT have a file and a folder with the same name in the same location.
However, as already suggested, you can use the attributes to find out if the entity in question is a directory.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
This is true, I never knew that, I just tried it. But surely your file would have an extension which makes its filename different to the folder's filename anyway.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
smyers wrote: But surely your file would have an extension which makes its filename different to the folder's filename anyway.
You can have a file without an extension.
You can equally well have a folder with an 'extension'.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
True that. What I meant though was that your file will more than likely(almost definately) have an extension and your folder will not. Why would anyone create a file without an extension or a folder with one for that matter.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
We're splitting hairs, but as a developer, I would want my code to be as robust as it should. I wouldn't ignore scenarios that are unlikely. One man's food is another's poison.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
I have small project have to print some label to specific printer- Zebra brand. it look like all attribute for my printing setup under VisualStudio05 doesn't work on this printer. ie. landscape, margin setup doesn't work.
Is there anyways I can fix this problem???
|
|
|
|
|
you have no access to the printer because of the kernel and the user mode. to open an access, you need two steps:
1. setup a file DirectIO.exe - you can download it from Download.com
2. use the dll file inpout32.dll that way;
[DllImport("inpout32.dll", EntryPoint = "Out32")]
public static extern void Output(int adress, int value);
[DllImport("inpout32.dll", EntryPoint = "Inp32")]
public static extern byte Input(int adress);
|
|
|
|
|
How can I create win application that may launch through local network from another PC, where it is installed?
|
|
|
|
|
|
I'm new in this community, and i begin with a question which is: If i have a Database with 1 table(commitmentsTable) and 2 fields (Date, commitment) what query i can use to have the commitments for the current date? Thanks and bye
By Windows M
|
|
|
|
|
What format is the commitment date in? You should be able to use a query (in MS Access a Select query and in the criteria section of the field put commitmentsTable.commitment = Date(). However, if you have a timestamp behind your date you may have to first format the commitment date.
-- modified at 16:27 Tuesday 5th June, 2007
Please note that you are posting this in the wrong forum. Since you are asking a query question it should probably be in the SQL board. Other MS Access questions about VB should be put in the VB lounge.
__________________
Bob is my homeboy.
|
|
|
|
|
Like Leckey said, it should be posted on the SQL forum but
SELECT * FROM commitmentsTable WHERE [Date] = Date()
should work even if there is a timestamp value. I assume that you only want to check the date is equal to the current date and are not concerned about time.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
Thanks smyers
Bye
By Windows M
|
|
|
|
|
I am currently trying to design a project that will dynamically load different inherited user controls.
I have a base class named "PageBase" which extends UserControl. All of the inherited user controls will extend from PageBase.
Here is what I am trying to do but cannot think of a way to do it. "Joe" comes along and wants to add some page into the system. He creates a new project that is an inherited control from PageBase. When this new project is created I would like Visual Studio to inform him that he has to implement the function "string foo()".
I am trying to make the extension as easy as possible and I do not want someone to have a new class that looks like Class1 : PageBase, SomeInterface
Using the designer is also a big portion of this project so I cannot take the route of an abstract UserControl class. What is an easy way to have VS inform the coder that certain methods must be implemented when someone creates the inherited user control? Thanks for the help. Please let me know if anything needs to be explained more.
|
|
|
|
|
You have two choices; an abstract class, or interface.
Since you don't want to use either you need to redesign your application, or rethink your strategy.
only two letters away from being an asset
|
|
|
|
|
I know most of you will cringe as you read this but my office has not moved to AD and still uses an NT domain. I've noticed an issue and am not sure if it is related to NT domains or just basic encryption "gottcha". I'm using ProtectedData.Protect() method to encrypt data with the CurrentUser scope. When I change my domain password according to our domain policy I can no longer decrypt data that has been encrypted with the previous password (Exception = {"Key not valid for use in specified state.\r\n"}). Is this an issue inherent with using the CurrentUser scope ? I've seen a previous post where the CurrentUser scope was a viable solution and did not cause issues with password changes, but that person was using an AD domain. Anyone have any experience with this issue or a work around ?
|
|
|
|
|
Hi.
how can I pass a parameter from code to a report (Crystal Report)?
Suppose, I have a table with these fields (ID,Name), now I want to send an ID from code and in my report, the Name of that ID be displayed.
Best wishes
|
|
|
|
|
You can use
CrystalReport1.DataDefinition.RecordSelectionFormula = "ID = " + value;
CrystalReport1.Refresh();
It seem to be a solution or an answer.
|
|
|
|