|
You can, but it will run on the server and that's probably not what you're trying to achieve.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
John Simmons / outlaw programmer wrote: Could it be that I can't run an external app from a web app?
Well if it is running you better come get it because it just ran past my window
|
|
|
|
|
Intellisense doesn't always work as expected. Try the following:
1. Recompile your code (this may work, but most likely not).
2. Close the tab (file) and reopen it. This should cause intellisense to look at the file again.
3. Restart the IDE.
Beyound those three, you will have to delete all intermediate files including *.suo files. Then it should work again.
The problem that I see here is that intellisense is not working as expected.
Phil
|
|
|
|
|
This whole thing started out as a conversion from PHP to C#. I started out by adding a new class to an existing web site project at home (because it seemed to be the right thing to do). I then emailed it to myself at work, and added the class to a winforms app. Well, it still had all the using web*.* lines in it, so I got to thinkin...
I created a new web site and added this class to the site, and bingo! Intellisense is showing me what I want/expect.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I bet you didn't have a reference to System.dll in your older projects while your new projetcs automatically got it.
Robert
|
|
|
|
|
Well, you're wrong. All classes created in VS2005 with the templates automatically have using System; in the cs file.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I didn't mean the using System . What I mean is the reference to the System.dll of your project. It might have not been added in the conversion. Removing it from the references of a newly created project reproduces your described behaviour: The System.Diagnostics namespace is there... but no Process class.
Robert
|
|
|
|
|
How does one person searches strings for characters disregarding special characters?
For example, in portuguese we have the word "Àgua" and i need to do 2 things:
- Arrange a list of those strings that start with "a", "b", etc, where "à" and "À" should both be considered as "a".
- Do some kind of search with the same consideration, that is, someone searching for "agua" should also find "Àgua".
Anyone knows?
Windows is just as secure as Linux. When shielded with a Firewall, Anti-Virus, Anti-Spyware and disconnected from the Internet.
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
No... Haven't found any solution that is even close.
Windows is just as secure as Linux. When shielded with a Firewall, Anti-Virus, Anti-Spyware and disconnected from the Internet.
Windows has even better performance that Linux. When running without Firewall, Anti-Virus and Anti-Spywayre.
|
|
|
|
|
Yes it looks much better with PRE tags; why did you use CODE tags in the other forum?
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I have created a simple .NET applicaton which accepts an input parameter.Then I registered the same DLL to the webserver.
Tried to use it on ASP Script and worked fine till the creation of object. But as soon as I pass a parameter to the method of the DLL It thows invalid argument type.
Then i Thought there might me some datatype issue. I then simply returned a string "hello". On output of the ASP page I always see "1" and not the string.
Any suggestions.
Pavas
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
No not yet but have moved to another approach.
Thanks for the reply on this.
Regards,
Pavas
|
|
|
|
|
Using VB.net is it possible to disable the menu of excel?;)
for example:
From the menu there is File, Edit, View, Tools
I wanted to disable the Tools menu.
How can I do it on vb.net.
|
|
|
|
|
It might be possible through Office Interop functions/classes.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Dont have any idea how to do it.
Do you know how?
|
|
|
|
|
Hi,
The function mentioned in code returns the comments of a latest version of a source safe file item, when i call this function twice for two different source safe files, i get the error "A history operation is already in progress", and due to that unable to get the comments of second file, Any Idea how to resolve that.
public string GetCommentsOfLatestVSSItem(string strVSSItemPath)<br />
{<br />
IVSSItem objVSSItem;<br />
objVSSItem = m_SSDB.get_VSSItem(strVSSItemPath, false);<br />
string strComment = ""; <br />
foreach (IVSSVersion vssVersion in objVSSItem.get_Versions(0))<br />
{<br />
strComment = vssVersion.Comment;<br />
return strComment;<br />
}<br />
catch (System.Runtime.InteropServices.COMException ex)<br />
{<br />
return ex.Message + " -> " + ex.StackTrace;<br />
}<br />
catch (System.Net.WebException we)<br />
{<br />
return we.Message + " -> " + we.StackTrace;<br />
}<br />
catch (System.Exception ex)<br />
{<br />
return ex.Message + " -> " + ex.StackTrace;<br />
}<br />
<br />
}
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
Hi,
I don't know about yout problem ("A history operation is already in progress"). But I have
two comments:
1.
your three catch blocks do the same thing, you can omit the first two with no change.
2.
It is a bad idea to ignore part of an Exception; an Exception holds more, sometimes much
more, information than you are using (Message+StackTrace). The only right thing to do
is use ToString(). It will show extra info such as the file name on file I/O problems,
and everything about nested exceptions.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I work for a state agency that has a multiple page, multiple question application form. Because the application centers around eligibility for a payoff, there are different paths that an applicant may take through the application. For instance, depending upon their answers, they may only need to fill out one or two pages of questions, but could conceivably need to fill out more pages depending upon whether or not further information is required.
What sort of approach/technology would be ideal to handing this sort of thing in .NET? Currently, it is handled in a very clumsy manner involving multiple .aspx pages and a lot of unnecessary, hard-coded session variables and logic checks. In this environment it's easy for things to become unnecessarily complicated, and changes to a single question might require changes in multiple places throughout the application (especially to database calls).
One method I was thinking of would be a single .aspx page with a multiview control backed by XML files for each page of questions where the questions are given attributes that define what type of question they are (i.e. yes/no, checkbox, text), as well as the name they are to be given in the database (i.e. "absence_eligibility1").
Something like this, perhaps:
<page id="eligibility1">
<question type="checkbox" triggersno="eligibility1">
Were you here for 90 days, etc etc?
</question>
<question type="yesnoradio" triggersyes="eligibility3">
Were you here for 180 days, etc etc?
</question>
</page>
Is this a good way to do it? Is there a better way?
|
|
|
|
|
Normally, this type of system uses something like SQL Server. You could design your tables something like this:
QuestionTable
QuestionID int
QuestionText NVARCHAR(MAX)
DependencyTable
ParentQuestionID int
AnswerType int
DependentQuestionID int
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hello All,
In my vb.net application i am playing audio files using window media player.
Sometimes application fails , if window media player is not installed on the user's machine.
So, how it can be detect whether media plyer is available or not befor plying.
Does any API exists using which we can retrieve data from system registry.
Anyone who knows the answer, Please tell
Any help will be highly appreciated.
Thanks in advance.
|
|
|
|
|
If you want to detect whether media player is installed, you need to check whether or not the wmplayer.exe file exists in "[BOOTDRIVE]:\Program Files\Windows Media Player\wmplayer.exe". To do that, you need to check it when your main form loads. Example below:
Imports System.IO
Dim ProgramsPath As String = My.Computer.FileSystem.SpecialDirectories.ProgramFiles
If File.Exists(ProgramsPath & "\Windows Media Player\wmplayer.exe") = False Then
// Exit the application. or, whatever you want to do.
Application.Exit()
End If
That should do it. Good luck with your program!
|
|
|
|
|
Hi guys,
I am building some components for my windows app, one of which contains a SplitContainer. Once i put the control into the host form, i can't do anything with the controls in my custom control. I'd like to enable some re-arranging functionality inside this, i.e. the ability to drag the split bar.
Could anyone give me points in the right direction? I'm not entirely sure what i'm looking for.
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|