|
Thanks a looooot buddy.....
|
|
|
|
|
1 - C#.NET is not a reasonable subject line. Try reading the sticky post on how best to ask questions
2 - no, you're not. You're putting IE on a form.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I made a web browser once. In the console. It never caught on.
My current favourite word is: Nipple!
-SK Genius
|
|
|
|
|
hi
i want to use Ms CRM 3.0 SDK, My CRM installed and i was run CRM 3.0 sdk also, and red this article :
http://www.codeproject.com/KB/cs/Writing_MS_CRM_Callouts.aspx[^]
but i coud not find Bin\Assembly\Microsoft.Crm.Platform.Callout.Base.dll, where does my problem and how to solve my problem ?
also i need an article about how to install and configue Crm 3.0 sdk in vs.net 2003 or above (download link and how to use it), and jow to use programming for crm 3.0 .
thanks
|
|
|
|
|
Hi all,
I created an ASP.Net website in C# targeted to industrial terminals (Symbol, Psion) in order to give them limited access to some of the functionalities of our application. The web browser on these devices being very limited we had to find trick but in the end it works just fine. However, there is a big problem in that the loading of pages is very slow. That comes from the fact that these devices have quite a limited computing power and as such they take time analyzing and displaying the pages.
Creating a full blown Winforms application in C# has at least two main disadvantages that we want to avoid:
Must bring back all the terminals for an upload for each update
Big risk of forgetting an update on one of the devices which might lead to data corruption created by out of date applications.
This is why the idea of creating an ActiveX in C# came to us. Indeed, with that we combine the advantage of an update forced by the web server with the complete execution on the client thus eliminating the reload of pages.
The choice of C# as a language is also there to take advantage of the existing development and thus avoid a complete rewrite. Furthermore, the use of ActiveX occurred to us as this is a technology we already know but if there is something better in the compact framework, we are more than inclined to use it.
I did some research here and in google but I did not find any concrete example especially because I want to be able to use the visual designer to create my control. Placing the child controls by hand via code is not very attractive.
Thanks in advance for your help.
Regards
Olivier
|
|
|
|
|
I think question would be better asked in the Mobile Development forum, don't you?
only two letters away from being an asset
|
|
|
|
|
Well, I wondered that as well and decided in the end to post it here because the usage of a proposed solution would not be limited to mobile devices.
But if you think I should move the question over there, then please let me know how I should proceed.
|
|
|
|
|
I am not sure how to handle this and could not find a good example or information on how to do this... I am stuck with how to handle outPropertyDesc. Trying to detrmine the AE_Mode camera is set to which I know is (public const uint AEMode_Manual = 3). I have tried several things and just do not know if I am close or just way off. I appreciate any help...
I have the following:
[DllImport("EDSDK.dll")]
public extern static uint EdsGetPropertyDesc(IntPtr inRef, uint inPropertyID,
out EdsPropertyDesc outPropertyDesc);
[StructLayout(LayoutKind.Sequential)]
public struct EdsPropertyDesc
{
public int Form;// Int32 reserved always 0
public uint Access; // reserved always 0 (see below)
public int NumElements; //Int32[] a property data array. The meaning varies depending on the property type
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
public int[] PropDesc;
}
//
public enum Access : uint
{
Read = 0,
Write,
ReadWrite,
Error = 0xFFFFFFFF,
}
// AEMODE
public const uint AEMode_Program = 0;
public const uint AEMode_Tv = 1;
public const uint AEMode_Av = 2;
public const uint AEMode_Manual = 3;
public const uint AEMode_Bulb = 4;
public const uint AEMode_A_DEP = 5;
public const uint AEMode_DEP = 6;
public const uint AEMode_Custom = 7;
public const uint AEMode_Lock = 8;
public const uint AEMode_Green = 9;
public const uint AEMode_NigntPortrait = 10;
public const uint AEMode_Sports = 11;
public const uint AEMode_Portrait = 12;
public const uint AEMode_Landscape = 13;
public const uint AEMode_Closeup = 14;
public const uint AEMode_FlashOff = 15;
public const uint AEMode_Unknown = 0xffffffff;
|
|
|
|
|
hey guys
i was just wondering if the is a DateChangedEvent some where in .net
what i need to do is check if the date is the 1st of the month
if it is i must write the contents of a log table in my database to a flat file for archiving and then clear the table
i was thinking of using a timer to do it but the following just looks wrong...
timer.Interval = 864000000; i dont think so...
any ideas for a more efficient solution?
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
I presume this is in some very long running process? Normally you'd use some sort of Schedular such as the Windows one to do stuff like this.
I don't think there is any such event as standard in .NET. You could create a class that generates one though. I'd check every minute or something like that for when the date is different to date last time and date.Day == 1.
Regards,
Rob Philpott.
|
|
|
|
|
Rob Philpott wrote: I presume this is in some very long running process?
nah, its a server for my appliction
Rob Philpott wrote: I'd check every minute
that wont work either because then it would to the archiving procedure would execute every minute
thanx tho
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
I think you miss-read what he said, I thought the same at first. He says to check the current date with the date retrieved from the previous check only (check if its the first, and different to previous), this would only execute once
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Also, if you're using Sql Server you might want to look at Integration Services. It does all that sort of thing.
Regards,
Rob Philpott.
|
|
|
|
|
HarveySaayman wrote: what i need to do is check if the date is the 1st of the month
No, what you need is an API that will create an event on the 1st of the month. You can use a Waitable Timer to do that.
I don't know if this is encapsulated in the .NET BCL yet. If not I recommend developing a C++/CLI assembly that encapsulates it and publishes a managed class for your C# project to work with rather than trying to use PInvoke. But that's just me.
SetWaitableTimer[^]
- pDueTime
-
The time after which the state of the timer is to be set to signaled, in 100 nanosecond intervals. Use the format described by the FILETIME structure. Positive values indicate absolute time. Be sure to use a UTC-based absolute time, as the system uses UTC-based time internally.
led mike
|
|
|
|
|
I have a DataTable that binds to a GridView. In the Gridview I have a HyperLinkField which the DataNavigateUrlField will be determined by a condition. Is it possible to use the Ternary operator w/the Gridview to accomplish this? If so, can some one tell me how as I am having trouble with the syntax for operator?...
<asp:hyperlinkfield>DataNavigateUrlFields="(Condition to Go here)" DataNavigateUrlFormatString="mypage.aspx?id={0}"
DataTextField="Company" DataTextFormatString="{0}" HeaderText="Company Name" />
|
|
|
|
|
Not sure I understand, but...
DataNavigateUrlFields = Condition ? value1 : value2
The ternary operator is a C/C++/C# thing, so I doubt you can have it within the value.
|
|
|
|
|
Hello PIEBald,
Thanks for the reply. I have modified the DataNavigateUrl Fields as such:
<asp:hyperlinkfield>
DataNavigateUrlFields='<%# Eval("Member_Type").ToString() == "I1" ? "ID" : "CO_ID" %>'
However I receive the following error:
Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.HyperLinkField does not have a DataBinding event.
|
|
|
|
|
Hello PIEBald,
I have actually figured out that I should use the ItemTemplate for binding the results. I have bound the field using the ItemTemplate but it seems as though the Navigate Field is not evaluating the ID or CO_ID. It is returning the entire ternary operation as a string as opposed to evaluating the full condition and returning a CO_ID or ID. Can you advise on what I am doing wrong?
<asp:templatefield headertext="Company Name">
<itemtemplate>
<asp:hyperlink runat="server" id="IDType" text="">]]>'
NavigateUrl='viewmember.aspx?id=<%# Eval("Member_Type").ToString() == "I1" ? Eval("ID") : Eval("CO_ID") %>' />
|
|
|
|
|
Hi PIEbald,
I tried the recommended string and I'm still getting the entire condition displaying for the url id. I have even tried doing it this way:
NavigateUrl='<%# "viewmember.aspx?id=" + Eval("Member_Type").ToString() == "I1" ? Eval("ID") : Eval("CO_ID") %>'
Where the page and url variable are within the binding expression. Here the ternary condition evaluates as should, but does not display the "viewmember.aspx?id=" string. Any other suggestions? I know i'm close to getting this as I am a newbie to databinding. Thanks.
|
|
|
|
|
Hi PIEBald,
I figured it out. I had to add the string for the page and url Id to the condition for it to render. See Below and Thanks for all your help.
NavigateUrl='<%# Eval("Member_Type").ToString() == "I1" ? "viewmember.aspx?id=" + Eval("CO_ID") : "viewmember.aspx?id=" + Eval("ID")%>'
|
|
|
|
|
is there any algorithm which helps in deciding the positions of major and minor ticks on scale of graph depending on the range of the scale at runtime.
Please Guide..
|
|
|
|
|
Yes. Whether the particular tool you are using uses it or not is a different story.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
can you please tell me where can i find it... i will try to implement it inC#
thanks
|
|
|
|
|
Hi, i m sending fax by using FAXCOMLIB.DLL in C#. The file i am going to send is PDF file. Everything is fine but when the fax is going to be sent that PDF file opened in Adobe Reader. I just want to send the FAX. I don't want PDF file to be opened in adobe reader. Can any one help me that how can i do this. Thanks in advance
Arslan Ilyas
|
|
|
|
|
Hi all,
i have a question on Configuration settings of a dll .
If i want to get Configuration settings of a dll in my application how can i get that?
I am using Asp.net application .
Thanks
Thanks
Mukkanti
|
|
|
|