|
I'm finding it hard to read your post. Try and use a period, comma or some punctuation after every 800 consequent words.
If I were allowed to hazard a guess, you are wanting to log the information of all the transactions involving the cash register? If yes, where are you stuck?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I am developing an application in C#. The application is deployed on 3 machines. The database is at the single machine that is server. Now when i save an image from system 1, it saves to the directory of system 1. When i access the same image from system 2 it gives error. It does not show because it try to pick image from its own disk. I do not want to save the image in database as a blog. I want to store image in directory and want to access from any system where my windows application is deployed.
Any suggestion..............
Do good and have good.
|
|
|
|
|
If you read a Bitmap, then copy it to a new one, then Dispose of the original, I think you get rid of the file lock on the original file. other option - make a copy of the image when you want to read it, and delete the copies when they are closed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for your reply. The problem is the file path. How should i read the file from network which doesnot create any rights and permission issues. I want to read the file from the system where it is stored and my exe can be on any system in the LAN.
Do good and have good.
|
|
|
|
|
Oh. OK, that's another question. Well, one way to do it, would be to have a webservice on the server, and have your application pointed to that. that would sidestep any issues with access to the file paths.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks a lot. I will look for webservice now.
Do good and have good.
|
|
|
|
|
|
Here[^]
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Don't delete your question, it's rude and it makes the forums look messy
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello,
Currently im hanging on one Problem. I wrote a class inherting from grid. Each grid has the property
children. How can i get an notification when a new children added to the grid. I need somethink like a
event which occours when the children-cout changed. I hope you understand what i mean.
Thanks in advanced
|
|
|
|
|
You posted this in the Silverlight forum. Is this a Silverlight issue or a Win Forms one?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hej i am writing a abstract class with a method that takes
an expression parameter to point to a field....
The field it self is not present in this base class so the the
expression needs to use the subclass so i need to have that type present in the
method definition and the current way i am doing this is..
abstract class foo<SubClass>
{
public void bar(Expression <Func<SubClass , object >> Expression);
}
As you see i need to pass in the subclass type from the subclass to the base class
witch is not ideal since i am not going to be writing the subclass
so my question is how can i use the type of the subclass without passing it as a
parameter.
Thanks for answers in advance .. Patrik
|
|
|
|
|
Hi,
I have a Network drive ("Z:\") mapped to a path say something like ("\\af.sistun.com\storage\MyFolder")which I can detect using the drive info class.
Now considering the DriveInfo class object network holds the drive info about the drive "Z:",
how can I get the full network path that lies beneath "Z:\" i.e. "\\af.sistun.com\storage\MyFolder". After having explored the properties of the DriveInfo class I tried some googling but the examples revealed some ugly MFC type code. Is there some C# way to acheve this?
Thanks for reading this.
Best Regards,
Sid
|
|
|
|
|
No, that's why people are using interop, because they have to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Christian,
Thanks for your reply. Can you please help me with the use of Interop.
Which dll, which method do I need to use here.
I am bad with unmanaged code.
Best Regards,
Sid
|
|
|
|
|
I don't really know, I thought you said you'd found some code ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Not really. The code I found was for a different requirement. However it was close to my requirement which made me draw the idea of interop.
Any ways, thanks for your concern I will try finding the solution myself and if I am successful I will post my finding in this thread itself.
Best Regards,
Sid
|
|
|
|
|
I am relatively new to programming(still in school) and cannot figure out this problem.
For my HTPC I use a open source program called Media Browser[^]
In the recent update we lost being able to sort by genre. Well, we can sort by genre but cannot view the images associated with each genre. The original creators have taken a break and are trying to go commercial with the software, while at the same time keeping it open source. I intend to buy(if it is stable when they do go commercial) but while they are getting things sorted the "followers" are left in the dark with the bugs in the new release.
I have tried with my limited knowledge to find the problem to no avail and was hoping someone on here had some time to kill and would download the svn and look at the code. That one problem is all I want fixed perhaps with an explanation of what was wrong so I can learn. I have spent hours looking over the code with no improvements at all.
If no one wants to help, I fully understand. Atleast to me its all greek and takes forever to go through, don't know if its the same for people experienced in the field.
modified on Thursday, July 9, 2009 6:04 AM
|
|
|
|
|
I am creating a file list of all files in a directory, searching each subdirectory and so on.
When I come to a windows shortcut file such as "MUSIC.LNK" I would like to scan and search the
directory that it points to as well.
DirectoryInfo directory = new DirectoryInfo(PSP_Directory[Display, i] + "\\");
FileInfo[] theFiles = directory.GetFiles();
DirectoryInfo[] theSubDirectories = directory.GetDirectories();
foreach (FileInfo theFile in theFiles) <<< The link file MUSIC.LNK can be seen here
{
if (string.Equals(theFile.Name.Split('.')[1].ToUpper(), "LNK"))
{
How do I get the directory infomation from it so that I can redirect my scanning to that directory as well.
Thank you in advance.
Douglas
|
|
|
|
|
I don't know if there's an easy way - but if you scroll down to LNK on this page[^], there are a couple of PDFs you can download which should help.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Got it - you need to add a reference using the COM tab to Windows Script Host Object Model.
Add this to your usings
using IWshRuntimeLibrary;
Then you can do something like this
string shortcutLocation = @"C:\Your Shortcut.lnk";
WshShellClass wsh = new WshShellClass();
IWshShortcut shortcut = (IWshShortcut)wsh.CreateShortcut(shortcutLocation);
Console.WriteLine(shortcut.TargetPath);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Works like a charm!
Thank you
|
|
|
|
|
Hi ,
i want to specify the maximum number of digits for numeric part and the Decimal part in a text box.
i tried specifying precision and maxlength of the text box but then it if we input the max length then the precesion cannot be inputted and it gets resetted to the maxamount which should not be possible.
like if Maxlength=8
precsion = 2
input required:123456.90 possible
input required : 12345678.89 which is not possible
so is there any way we could specify the format of the numeric part and as well the decimal part. which would restrict for only that particular input format.
like : dddddddd.dd
thanks in advance....
cheers,
sriharsha
|
|
|
|
|
Use a masked edit box.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
i have tried using masekedit ,
<ajaxtoolkit:maskededitextender id="MaskedEditExtender1" runat="server" acceptnegative="Left" displaymoney="None" mask="9999999.99" masktype="None" messagevalidatortip="true" oninvalidcssclass="MaskedEditError" targetcontrolid="TextBox4" clearmaskonlostfocus="false">
<ajaxtoolkit:maskededitvalidator id="MaskedEditValidator1" runat="server" controlextender="MaskedEditExtender2" controltovalidate="TextBox4" cssclass="InputFieldRed" display="Dynamic"
invalidvaluemessage="Invalid " isvalidempty="false" tooltipmessage="" validationgroup="Search">
;
when for example
input is 12345678.90 no problem
but when
input is 11.11 > it changes to 1111 when i click it again.
and when it is something like
input is 11 .11 it changes to 1111 when i click it again.
is there any way it takes the input in a normal way and also restrict the format required for the number.
thanks and regards,
sriharsha
|
|
|
|