|
put Break point in functions.
If u can Dream... U can do it
|
|
|
|
|
man, dont be oversmart....!!!!
|
|
|
|
|
Does anyone have any good examples of toast notifications written in c#?
kwickster
|
|
|
|
|
void Main()
{
Console.WriteLine("Your toast is burnt!");
}
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: void Main()
{
Console.WriteLine("Your toast is burnt!");
}
________________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Or in OOP:
class Bread
{
...
}
class Toast:Bread
{
...
}
void Main()
{
Bread toast = Factory("Toast");
}
private Bread Factory(string sType)
{
if( sType.ToUpper() == "TOAST" )
return new Toast();
else
return new Bread();
}
|
|
|
|
|
|
Does anyone have any good examples of toast notifications written in c#?
kwickster
|
|
|
|
|
Hi,
Iam currently using Infragistics grid for a Windows Form based project.
On a Cell Update event, i want to set the focus back on the cell that was updated after making some changes to the updated cell based on some condition.
Iam able to change the value but unable to set the focus.
Can anyone share their inputs ?
|
|
|
|
|
You first option would be to seek assistance from the vendor since your question pertains to usage of their controls, not C#.
only two letters away from being an asset
|
|
|
|
|
Hi, I'm working in windows form, and i have set a container which the windows inside can move around. I would like to move only in the area that i have desing, the scrolls do not appear, The problem is that even if i diseable the scroll property in the container, still can moving and the scroll appears. how can i desable the scrolls so my windows inside the container only move in my design area??
La Light
|
|
|
|
|
i tried your question with split container in a form. i set the AllowScroll property of containter to false. Then moved a button inside in the container. For me there is no scrolls..
Am i misunderstood your problem ?
If u can Dream... U can do it
|
|
|
|
|
Hi, I Think no, But, actually i cant see that property, the only properties that i can see with scrolls are:
Autoscrolls = false
autoscrollsmargin = 0,0
autoscrollsminsize = 0,0
so i dont see, that or any other that allow me to desable the scrolls, My cointainer is with other windows inside... so the windows are the one movin...
Thank you... for everthing, Do you have another suggestion...
La Light
|
|
|
|
|
i have a strange problem.i would be glad if any one can help me here.
the problem is like I am using two webforms,on the first one a textbox with browse bution is used to select a file and when i click ok, the sencond weform with another similar browse button and textbox is present. when i clik ok the file that i selected in the first form should be copied here. i hope you understand me.
But the problem is
i am not able to select a folder in the second webform for coping the file that is selected in the first form.
How to solve this problem?
thanks
tirumal
|
|
|
|
|
is there any property or method to populate the windows directory into the ListView using c#
thanks
|
|
|
|
|
this is where i really like that "my" thingy in vb.net
accessing folders and special directories is so easy with the my.computer.filesystem
but "yay" u can use the my namespace in c# by adding a refrence to your C# project for Microsoft.VisualBasic and this code :
<br />
using Microsoft.VisualBasic.Devices;<br />
and then use it like this:
<br />
foreach(string file in Microsoft.VisualBasic.FileIO.FileSystem.GetFiles("C:/myfolder")<br />
{<br />
}<br />
of cource this is not at all the best way to do it, just i'm vb.net user mostly
|
|
|
|
|
hi to all,
i have a c# application on a server and i want to call it from a php page and i have to pass to it a parameter, how can i do it?
thanks a lot
Teo
|
|
|
|
|
Running an application on the server from a webpage would be a major security breach. You should find another way.
only two letters away from being an asset
|
|
|
|
|
i don't think that's a problem, it's a very simple console application that's do few operation.
Do u know how to pass and how to return parameters?
thanks
Teo
|
|
|
|
|
Running ANY application from a webpage page is a security risk, regardless of how simple the application is. Much effort has gone into securing browsers to not allow them to do this. Would you allow me to run an application on your system from my website? Just a simple app, say cmd.exe?
only two letters away from being an asset
|
|
|
|
|
ok, so wich one could be a solution to call function of a program on a server passing a parameter?
|
|
|
|
|
using System;
using System.Text;
using System.Runtime.InteropServices;
namespace AEXMLAdapterTester
{
internal sealed class NativeMethods
{
private NativeMethods() {}
[DllImport("AEXMLAdapter.dll", EntryPoint="GetAllSettings", SetLastError=true, CharSet=CharSet.Unicode)]
public static extern uint GetAllSettings(StringBuilder lpBuffer, ref uint lpnSize);
[DllImport("AEXMLAdapter.dll", EntryPoint= "SetAllSettings", SetLastError=true, CharSet=CharSet.Unicode)]
public static extern uint SetAllSettings(string lpBuffer);
[DllImport("AEXMLAdapter.dll", EntryPoint= "ReloadSettings", SetLastError=true, CharSet=CharSet.Unicode)]
public static extern uint ReloadSettings();
};
///
/// Summary description for XmlAdapterInterop.
///
///
internal sealed class XmlAdapterInterop
{
private XmlAdapterInterop() {}
public static string GetAllSettings()
{
uint retVal;
StringBuilder buffer = null;
uint size = 0;
retVal = NativeMethods.GetAllSettings(null, ref size);
if (retVal == 122)
{
buffer = new StringBuilder((int)size);
retVal = NativeMethods.GetAllSettings(buffer, ref size);
}
if (retVal != 0)
throw new ApplicationException("Interop Error calling GetAllSettings");
return buffer.ToString();
}
public static void SetAllSettings(string buffer)
{
uint retVal;
retVal = NativeMethods.SetAllSettings(buffer);
if (retVal != 0)
throw new ApplicationException("Interop Error calling SetAllSettings - retVal = " + retVal);
}
public static void ReloadSettings()
{
uint retVal;
retVal = NativeMethods.ReloadSettings();
if (retVal != 0)
throw new ApplicationException("Interop Error calling SetNothing - retVal = " + retVal);
}
}
}
These code running correctly in Windows 2003 server 32Bit
but when use in Windows Server 64Bit when i invoke XmlAdapterInterop.GetAllSettings() an exception occured "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
Any one can help me, i will thank you a lot
I want to make some friends here
|
|
|
|
|
I have no experience with Win64, but I expect some problems;
in your case "ref size" now becomes a 64-bit pointer, and both parties
should agree on that.
I googled "pinvoke 64bit" and found several hits,
one
says "If you rely on 32-bit libraries you should make sure your app runs with the 32-bit framework" ...
Luc Pattyn
|
|
|
|
|
I have experienced this exception before. I would say the most likely cause is that AEXMLAdapter.dll, or some other library you are using, is not compiled in 64bit mode.
only two letters away from being an asset
|
|
|
|
|
I have get some informations from you guys and i select platform target X86 in build tag
then run again, it is ok.
if the AEXMLAdapter.dll build in x86 machine so the project must build in x86 mode?
As the program is a unit test assembly, when i try to build in x86 mode, the Nunit cannnot open the assembly.
Any body has some experience in this issue?
I want to make some friends here
|
|
|
|