|
Of course. It's a design pattern, not something mistical only Java can use. All you have to do is Google for "mvc c#" and you'll come up with all kinds of stuff. Even this[^] example here on Code Project.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hi,
I have imported a project from VS 6.0 in VS.Net 2005.
When I compile it, it raise a link error:
LINK : fatal error LNK1104: cannot open file 'mfc42ud.lib'
With .Net 2005 should it use mfc80ud.lib ?? How I can specify it ?
Best regards,
============================
Martin Bonneville
Software programmer-analyst
|
|
|
|
|
I dunno. But if you have VS 6 then try specificy library path or copy to the VS2005 library path. Check Project settink.
|
|
|
|
|
How I can see what user open session in a computers of a domain (without Active Directory)?
Thank
Sory for my english.
|
|
|
|
|
Hi!
If you are using a windows system, you just need to use the win32-api GetUserName:
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, ByRef nSize As Integer) As Integer
Public Function GetCurrentUser() As String
Dim liReturn As Integer
Dim lsUserName As String
lsUserName = New String(CChar(" "), 250)
liReturn = GetUserName(lsUserName, 250)
GetCurrentUser= lsUserName.Substring(0, lsUserName.IndexOf(Chr(0)))
End Function
The imported function GetUserName require two parameters:
1. The destination string-buffer for output
2. The size of the username
Then, with substring and indexof, we cut all character "0" off and return the username.
Marcel Erz
|
|
|
|
|
You can get the user name associated with the current thread using SystemInformation.UserName.
|
|
|
|
|
How to set Textbox text on a crystal report at runtime ?
Dim cr As CRAXDDRT20.TextObject
cr = crReport.Section1.ReportObjects.Item("Text3")
cr.SetText(strEmpName)
a.CrystalReportViewer1.ReportSource = crReport
a.Show()
error : specified cast is not valid
Farah
|
|
|
|
|
How to set the text of a text box on a crystal report at run time?
Dim strEmpName As String
strEmpName = TextBox1.Text
Dim a As Form2
a = New Form2
Dim crReport As CrystalReport1
crReport = New CrystalReport1
Dim cr As CRAXDDRT20.TextObject
cr = crReport.Section1().ReportObjects.Item("Text3")
cr.SetText(strEmpName)
a.CrystalReportViewer1.ReportSource = crReport
a.Show()
Farah
|
|
|
|
|
hi everybody,
I have a small question concerning the use of ToWords() method that is embeded within Crystal Report.This function translates numeric values into their coresponding words value ex:150 --> One handred and fifty.
The problem I got is that I got an automatic english conversion of my numeric values where I need french corresponing string value. Is there any way I can swish it to french? Or how can I add my function, that does the french translation, to the crystal report embeded functions?
If anyone can help pls do.
|
|
|
|
|
Does the Compact Framework support .Net Remoting?
Short and sweet
Thank you...
|
|
|
|
|
Short question, so a short answer: No its not supported by the framework.
You could try using Web Services, but its not adviced.
|
|
|
|
|
Anyone have code for a simple app to test if a computer has dot net framework or not?
Anyone know of one that runs straight from a browser?
Thanks,
RABB17
|
|
|
|
|
|
Hi,
I'm having problem that I don't know how to get a text from an active text editing area of another program. For example,
I want to run a program in background.
When a user open some application (eg. NotePad) and type whatever, I want my program to know what's typed. Or if he open Microsoft Word and do that, I want the same feature.
I'm trying this to make a input method which need contextual inputs.
I know it can be done with monitoring keystrokes but it will be problem if user opened the document or paste from somewhere...
Please help me.
Regards,
VOX
|
|
|
|
|
This can only be done though a combination of methods (depending on the target application). Examples would be:
SendMessage (Notepad etc)
COM (Word etc)
Direct memory mapping on other applications (this is NOT easy).
Basically what you are trying to do is something that could be SERIOUSLY misused, so do not expect applications making it easy for you - hopefully quite a lot of them will actively fight against you.
|
|
|
|
|
http://it-pedia.com/dotnet-framework1.htm
Excellent .NEt Information Resource
|
|
|
|
|
First, forums are not the right place for advertisement really.
Second, please stop copying stuff right out of Wikipedia and presenting it as your content. That is called plagiarism and is, aside from being illegal, just morally wrong.
We can let others decide:
One of your 'articles':
http://it-pedia.com/switches.htm[^]
From Wikipedia:
http://en.wikipedia.org/wiki/Network_switch[^]
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
do you think it is my site, FYI it is not.
I just thought that it was good info. Before teaching me morals think thousand times.
|
|
|
|
|
Faraz Ahmed wrote: Before teaching me morals think thousand times.
Normally I would just let this lay as it stands but today I seem to be 'in a mood' so…
When you present information as 'good' IMHO you have the responsibility to validate the information as a whole. This includes making sure that the source is 'good'. A site that clearly plagiarizes information for it's own use is clearly NOT a good source. While the information may be valid it is tainted by the way it was delivered.
It took me all of 20 seconds to find out that article was a complete copy. One quick copy/paste into Google returned that hit on Wikipedia verbatim.
I guess I should have given you the benefit of the doubt that maybe you did not look as deep as I did, but then again, when presenting an information source as good you owe it to the communality to do your due-diligence as to the source.
If a book publisher sells a book that contains plagiaristic materials without doing their checking they can be held accountable in conjunction with the author. Again, due-diligence is key here.
For assuming you were the author intending to do the actual plagiarizing I apologize. But you still need to watch your sources. This is no better than being the one person caught forwarding a hoax email about a missing kid or people getting their organs stolen in their sleep. Do your homework just a bit before you pass out information.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Does anyone know of a RADIUS authentication library for .NET? I don't think there is one inherently in the framework. I would think there is a third-party vendor out there that makes one though. Anyone heard of one?
|
|
|
|
|
I have a program that has several access database and one excel file stored in the bin folder. I am having trouble building a setup program that will work. Program runs fine, just wont open - read the access or excel files.
FastTaxi
|
|
|
|
|
I am trying to pInvoke into a very simple C++ dll I have created, from my C# winforms app. I start by creating a C++ dll using the VC8 wizard, and checking off "export symbols" as I want to call a basic function from C#. By default the wizard creates a sample function and exports it.
However when I run my C# app, it says it can't find an entry point for the function name I have defined in my DLLImport attribute. I have made sure that the dll is in the same directory as my C# executable. Incidentally, I can pInvoke fine into other system dlls, so what am I doing wrong?
|
|
|
|
|
Paste some C/C++ source code about the function and the C# [DllImport] method.
The problem is probably the fact that the exported function is decorated.
If you know nothing about C/C++, your in for some confusion.
David
|
|
|
|
|
I'm developing - simple graphics editor, that should be placed on the web-site.
It downloads the picture from the MSSQL server (i do this via WebService),
edits this picture (putting some lines, dots, whatever), and than uploads changes to server.
Since 2 part are ready, i have a terrible headache about the lastthing.
The problem is:
I draw primitives using Graphics, since this class don't know how to save the image drawn -
I have to use unmanaged code to save it (BitBlt and stuff).
Everything works ok, if it's standalone application - but i MUST use it as Applet,so there is a SecurityPermision
Exception is raised when i'm trying to do unmanaged code.
I tried to add the signature to the dll (sn -k), but somewhy IE doesn't want to load this applet.
As far as i know, if user adds my DLL's public key to the trusted list - i can do unmanaged code (where he should put it).
So the questions are:
a) How i can save the image with drawn primitives
(actually i need a stream to it, to upload to the server) using managed code
b) How should add sign a dll, to let IE show it
c) How should user add this to his trusted Assemblies list
Here are the source codes:
index.html
<object id="upload1" classid="IEControlv2.dll#IEControlv2.UserControl1" width="800" height="300" style="font-size:12;">
<param name="UserName" value="MyName" />
IEControlv2.cs (windows control)
new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert();
CreateBitmapFromGraphics(gr,1,1,100,100); <---unmanaged code, where exception is raised.
CodeAccessPermission.RevertAssert();
P.s. the .Net is 1.1 version
|
|
|
|