|
Hello! Has anyone known what are the problems with http://www.bozemanblog.com It hasn't worked any more? There were a lot of useful articals...
|
|
|
|
|
If there are multiple projects in a single solution, then how to access a function from one project in another project.
aasstt
|
|
|
|
|
:-DI have same problem
wert
|
|
|
|
|
You can add a reference in the caller project.
Right click references, click projects ,select the project that contains the class.
make the class and the function public
|
|
|
|
|
Hi guys.
I want to write my program in .NET 2.0, just because I'm used to it (and because it will be primarily run on XP). However, for a certain part of the screen (i.e. a separate window) I want to use WPF to render text and video etc. Is this possible? What I was thinking was creating a component in WPF, and adding it to my app. Does anyone know of an easy way to do this? Am I just confused, thinking that I cant use .NET 2 controls in a .NET 3 project?
Any help would be appreciated.
Cheers
Jacob.
|
|
|
|
|
The CLR and Windows Forms are completely unchanged in ".NET 3.0". I put the quotes round it because ".NET 3.0" is a stupid marketing name for .NET 2.0 plus WPF, WCF, Workflow Foundation.
I believe there are components which allow WPF to render to part of a Windows Forms form, and to put Windows Forms controls on a WPF-managed window.
|
|
|
|
|
Anybody know right off the top of their head how
to ping /poll the SMTP server before hitting
email.send("","","","") without resorting to:
Try
Catch
Finally...?
If I forget to load OL Express, it dies..
Isn't: System.Net.Mail.SmtpClient("svr")
supposed to return a value?
Thanks,
B.Griffin
|
|
|
|
|
bgriffin_tpa wrote: Isn't: System.Net.Mail.SmtpClient("svr")
supposed to return a value?
No, SmtpClient is a class, not a method. Perhaps you were thinking of the SmtpClient.Send() method? But it also doesn't return a value. If something goes wrong, it will only throw one of six exceptions, documented here[^].
bgriffin_tpa wrote: Anybody know right off the top of their head how
to ping /poll the SMTP server before hitting
You can ping the target server, but there is nothing that says that the target server has to respond to that ping. It's also entirely possible that the target is sitting behind a firewall, blocking ICMP Echo requests, thereby neutering your attempt to "test" the server's presence.
Basically, you can try to ping the server, but it's no guarantee that the server is, or isn't, actually there and responding. The only thing you can do is try to send the message and see what happens.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave:
Thank you sir.
I only searched the CodeProject DB before asking.
I'll check MSDN too, next time. Heaven knows I
pay enough for it!..
Regards,
B.Griffin
|
|
|
|
|
Hi,
first of all, i don't know if i'm in the right forum, beacause
the topic is "base classes" of .NET and TeamFoundation is an
additional SDK, so please excuse me if i'm wrong here.
so now my question.
is it possible to serialize an TeamFoundation WorkItem?
i've tried XML, not working
binary serialization, not working, too.
so does anybody know how i can serialize this?
greetz pdluke
thanks in advance
(\_/)
(O.O)
(> <) <---- Put the evil bunny in your sig, help him acheive "WORLD DOMINATION!"
|
|
|
|
|
FW2.0, C#, FileSystemWatcher monitors the network folder like "\\Server\Folder". I want to know Who (User name or SID) have performed the create/access/delete action.
|
|
|
|
|
Hi,
For a c# project, i want to execute post-build event for only debug configuration, how can i do that?
Warm Regards,
Mushq
|
|
|
|
|
I am not sure how to do a post build event for debug builds only, but I am guessing that the reason you want to do this might be to set certain configuration settings for your application.
I just wrote an article about how to control different setting for different configurations, debug (dev), test and prod.
This solution is only for .net 2.0 so I don't know if you are using .net 2.0 or not. I also don't know if this is your issue. Anyway, here is the link:
http://www.codeproject.com/useritems/SingleWebConfigFile.asp[^]
I hope that helps.
Ben
|
|
|
|
|
Hi guys
I have a problem when I use an Add-in to word, I want to get the filename / path of opened document.
(i.e i have a opened a document in word, now when i click my button it should return the filename / filepath of opened word document.
Thank you!
M. Nauman Yousuf
|
|
|
|
|
I had written a real time semi-automatic option trading platform in C# using Forms for GUI (and native C++ for math...).
Can anyone say if a WPF porting will make the program less responsive / more sluggish? This is supposed to be real-time so every millisecond counts.
THX
Trading for living
|
|
|
|
|
Epinephrine wrote: Can anyone say if a WPF porting will make the program less responsive / more sluggish?
Only your testing can determine that. You can see a huge performance swing depending on how you've written your code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I think it will mostly depend on how the application is written. Keep in mind that WPF is a vector based display technology, but it shouldn't have a problem.
The better option will probably be to rewrite the application to take advantage of WPF and the data binding capabilities rather than to just port it. WPF is a completely new beast and there are better/different ways to do things than we had in WinForms.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
In my application i want to copy a file different computer in the same network without mapping that folder in my machine,is that possible,
please help
Tony
|
|
|
|
|
You can always get the file using the UNC path.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
I am making simple screen capture win32 application using VC++.NET. I am able to capture it in the memory and getting handle of that bitmap but I am not able to show that bitmap in Picture Control in dialog box. Can I know what wrong with my code??
I am pasting my code here.
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
HWND hDesktopWnd = GetDesktopWindow();
HDC hDesktopDC = GetDC(hDesktopWnd);
HDC hCaptureDC = CreateCompatibleDC(hDesktopDC);
HBITMAP hCaptureBitmap =CreateCompatibleBitmap(hDesktopDC,
nScreenWidth, nScreenHeight);
SelectObject(hCaptureDC,hCaptureBitmap);
BitBlt(hCaptureDC,0,0,nScreenWidth,nScreenHeight,hDesktopDC,0,0,SRCCOPY|CAPTUREBLT);
::SendMessage(::GetDlgItem(hDlg, IDC_BITMAP_CONTROL), STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hCaptureBitmap);
ReleaseDC(hDesktopWnd,hDesktopDC);
DeleteDC(hCaptureDC);
DeleteObject(hCaptureBitmap);
Thanks,
Priyank
|
|
|
|
|
This code is nowhere related to .net framework.
Ask in VC++[^] forum.
|
|
|
|
|
Dear All,
My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
And also give idea about Forms Authentication / Windows Authentication ?
Regards
Kusal
|
|
|
|
|
hi,
in the web.config file you can make settings such as
SQL Connection parameters like this
<!-- Database Connection Parameter -->
<add key="DBType" value="SQL"></add>
<add key="DBRegion" value="EN"></add>
...
or you can configure own settings, which you can use in
your page.
for example, you can define an ImageSave dir
<add key="ImageSaveDir" value="C:\Temp\"></add>
now you can use this in your programm like this
string path = ConfigurationManager.AppSettings["ImageSaveDir"].ToString();
and about your other requests, i can't tell you anything, sry
hope this helps ya
greetz pdluke
(\_/)
(O.O)
(> <) <---- Put the evil bunny in your sig, help him acheive "WORLD DOMINATION!"
|
|
|
|
|
Should I install any Framework in Pocket PC device before I try to run my application? if yes which framework should i install and can anyone provide me where can I download it.
I Love SQL
|
|
|
|
|
I have two requirements of my religiously applied XML comments. I would like some way of also using shared documentation, e.g. a glossary of terms. The only way I can think of achieving this is including an external file at the assembly level. Then the generated overview documentation for each assembly can contain this information. Is there any other way of going about this?
My second wish is to extend the actual schema, to include tags that I can use to document relevant unit and integration testing information for types and members. I don't think this is possibly in pure VS 2005, but I suspect that something like doxygen may be able to allow this. I just can't get to experimenting yet so I thought I'd check if someone knows more than me.
|
|
|
|