|
Hi,
I've a context menu with two levels. I would like to disable selection in second level. To describe in detail,
level-1->Level-2
AAAAAAA->aa1
aa2
aa3
BBBBBBB->bb1
bb2
bb3
If I select items(AAAAAAA,BBBBBBB) in Level 1, level-2 items gets pop-up. I should disable the selection in Level-2. Please let me know how to achieve this. Thanks in advance.
|
|
|
|
|
|
Wouldn't you use the Enabled property on your sub items to achieve this behavior?
|
|
|
|
|
I am working on C# windows application. and i have a problem in
How can i make my project to run for some speacific period of time.
I mean to say that if any one lounch a software then they provide every one the trial version of their software. Like that Is it is possible to make some small project to run for time limit for one month. if yes please tell me how to do it.
support123
Thank u in advance
|
|
|
|
|
Start here: SmartAssembly™[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
i have created an application in C# which in working fine on local machince(XP)
but when i install that program on network it is unable to conect to database
through error
System.NullReferenceException: Object reference not set to an instance of an object.
at QualiChem.PartyDetails.PartyDetails_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ans so on
i am working in a network of 5 pc interconnected all pc having windows Xp
what should i do.
plz help
|
|
|
|
|
It seems to be permission issue.
can you post the source code.
____________________________
Ghazanffer Javaid
Software Engineer
|
|
|
|
|
Check the connection string.
If SQL Server, check the SQL Server Browser service.
Check the firewall.
If all else fails, use a Web Service.
|
|
|
|
|
Do a visio connection function. Also on display in visio drawing.
I use a common way of drawing. But in drawing on don't show. Please help...
Drawing area: is a AxDrawingControl controls.
|
|
|
|
|
What is the problem to run in windows 7 64 bit C# application (compiled on Vista 32 bit VS2008 .NET 3.5) which uses PInvoke to run native function from 32 bit Dll.
Exception is System.BadImageFormatException Attempt to load application having bad format (HRESULT: 0x8007000B)
Чесноков
|
|
|
|
|
You can't use a 32 bit dll in an 64 bit application (and vice versa).
I'm not sure about native dlls but I think they behave the same.
Greetings
Covean
|
|
|
|
|
As Covean said, you can't use a 32bit dll form a 64bit application.
By default, a .NET application run according to the O.S. (so, in a 64bit systems run as 64bit application).
You have to force your application to run as 32bit by changing the "Platfor Target" value in the Build properties of your Visual Studio Project.
|
|
|
|
|
If you have a 64 bit .NET application attempting to run a 32 bit DLL, you can change it to run in 32 bit mode by using the corflags command. It's detailed here[^], but basically you need to run
corflags myassembly.exe /32bit+
"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
|
|
|
|
|
that seems to be the only solution to avoid recompilation, many thanks!
Чесноков
|
|
|
|
|
You are welcome.
"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,
When I Insert data in my Access Database show error i use this query
INSERT INTO trans (date,heads,debit,credit,descp) Values('2/8/2010','Jawad','0','9000','UNWASHD')
Table Trans
Feild....................Datatype
id......................AutoNumber
Date....................Datetime
Heads...................text
debit...................number
credit..................number
descp...................text
ERROR
"SYNTAX ERROR IN INSERT INTO STATEMENT "
Plz Help Me
Jawad Khatri
|
|
|
|
|
Date is a DateTime, you're treating it as a string.
debit & credit are numbers, you're treating bpth as a string.
Access, i think, uses # to denote a date in place of the quotes for strings, and numbers just dont have any quotes at all. hence:
INSERT INTO trans (date,heads,debit,credit,descp) Values(#2010-08-02#,'Jawad',0,9000,'UNWASHD')
|
|
|
|
|
Same Error
|
|
|
|
|
I'm not sure about access but you shouldn't use columns with names like 'date' because this is can also be
a datatype in this database.
Greetings
Covean
|
|
|
|
|
And if you have to use such names, put them in square brackets [].
Next, use a parameterized query, that will also handle the date/time problems.
INSERT INTO [trans] ([date],[heads],[debit],[credit],[descp]) Values(?,?,?,?,?)'
|
|
|
|
|
Hi guys
I want to redicet a web page when user click on button in window based application using C#,
Like we do in asp.net "Response.Redirect("http://www.codeproject.com").
Is it possible and how
Thanks & Regards
Shafiq.....
|
|
|
|
|
Do you want something like
System.Diagnostics.Process.Start("www.codeproject.com");
|
|
|
|
|
Hey Goutam
Thank you. Its working fine.
Now i am asking little more if the page is already open and button click can we reload the same page
instead of opening new window. it will be helpful for me.
Thanks again
Shafiq
|
|
|
|
|
Hi, Everbody.
i have writen c# Artifical intelliget Neural Network. I have 500 count dataset which is normalized -1 and 1 and.i have used learning rate and momentum coefficient .
i teaching my network with 400 count dataset. Network have 5 inputs and 5 outputs. my output is setuped as 00001/00010/00100/01000/10000
when my network teched with 10000 iterations and 400 datasets, my output have a problem.
my network teached in last class of 10000 so when i tested my datasets , output only have been predicted as true class of 10000.
as result my code can only learn last class and other classes can not predicted or poor predicected
Example Test and Learning dataset
5 neuron input
{{0.04418 ,0.18135 ,0.28143 ,0.34367 ,0.14938 ,},
{0.37418 ,0.35050 ,0.18184 ,0.07493 ,0.01855 ,},
{0.04540 ,0.17061 ,0.24506 ,0.32560 ,0.21333 ,},
{0.08494 ,0.25653 ,0.26922 ,0.26141 ,0.12790 ,},
{0.18135 ,0.36832 ,0.24799 ,0.15743 ,0.04491 ,},
{0.11887 ,0.29143 ,0.27581 ,0.22870 ,0.08518 ,},
{0.02758 ,0.26239 ,0.37247 ,0.29998 ,0.03759 ,},
{0.00781 ,0.15792 ,0.32145 ,0.41811 ,0.09470 ,},
{0.07811 ,0.31608 ,0.31901 ,0.24506 ,0.04174 ,},
{0.07664 ,0.32390 ,0.32829 ,0.21674 ,0.05443 ,},
....
5 neuron output
{
{1 ,0 ,0 ,0 ,0 },
{1 ,0 ,0 ,0 ,0 },
{0 ,1 ,0 ,0 ,0 },
{0 ,1 ,0 ,0 ,0 },
{0 ,1 ,0 ,0 ,0 },
{0 ,0 ,1 ,0 ,0 },
{0 ,0 ,1 ,0 ,0 },
{0 ,0 ,0 ,1 ,0 },
{0 ,0 ,0 ,1 ,0 },
{0 ,0 ,0 ,0 ,1 },
{0 ,0 ,0 ,0 ,1 }
.....
My trainin code blok is as folowing show
int iterasyon=100000,it=0;
while (it <iterasyon && mmse >= 0.00001)
{
mmse = 0;
mae = 0;
for (int nf = 0; nf < 400; nf++)
{
mmse += hesaplas(ndata, nf);
trains(nf);
}
mmse = 0.5 * (mmse / 400 * 5));
if (it % 100 == 0)
{
yazs.WriteLine(mmse.ToString());
yazs.Flush();
}
it++;
}
modified on Tuesday, August 3, 2010 9:30 PM
|
|
|
|
|
Firstly, when you post code, use the "code block" widget rather than the "inline code" - it preserves the formatting and makes it easier to read:
int iterasyon=100000;
while (it = 0.00001)
{
mmse = 0;
mae = 0;
for (int nf = 0; nf < 400; nf++)
{
mmse += hesaplas(ndata, nf);
trains(nf);
}
mmse = 0.5 * (mmse / 400 * 5));
if (it % 100 == 0)
{
yazs.WriteLine(mmse.ToString());
yazs.Flush();
}
it++;
}
Secondly, if you are going to post code, make sure it compiles. That won't: it will complain about
while (it = 0.00001) "Cannot implicitly convert type xxx to bool"
Even if it did, it would execute the outer loop either once, or an infinite number of times.
Thirdly, don't use magic numbers: how do you know you have 400 entries? What is the
mmse = 0.5 * (mmse / 400 * 5));
supposed to do?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|