| Error on Form opening if I compile from command line |
|
 |
Index ‹ DotNet ‹ Dotnet
|
- Previous
- 1
- Visual C#.Net >> How to use the base keyword to call a base class method (not a constructor)Hello,
I have read that the base keyword can be used not only to control a base
class instantiation (thus calling one of the base class constructors) but
also to access any other public or protected method in the parent class ...
I have search all over for an example of how to do this but have failed.
What I was wondering is about the syntax necessary to make such a call .....
Thx..
Bob Rock
- 2
- Winforms >> normal multiline editor.Visual C++ 2005 Express
MVP's and experience programmer's only please!...
I need to get the number of lines in a textbox so I can insert them into a
listview. The text comes from my database and is unformatted. I display the
text to my user in the listview. The textbox I create logically in the
program, and I initialize the correct properties for a normal multiline
editor.
When the user changes the column size then I reload the lines accordinally.
The problem I am having is when I get the lines property which is a
array<^>^(). The lenght is always 1 no matter how many lines are in the
textbox.
In MFC when the lines are wraped the new line character is automattically
inserted, but here it's not.
Can you help me solve this problem? I would really appreciate it!
Thanks!...
--
Eric Miller
- 3
- Winforms >> Where do forms get the default icon from?I've replaced App.ico and it appears to have worked at the application level
but my forms haven't updated. Presuming I needed to change the icon on the
forms I started replacing them. But in the course of looking at some of the
forms and their associated resources, I discovered there were absolutely no
references to any icons in those files.
This raises the question, where do the forms get their default icon from? I
would have hoped they'd simply change to reflect the application icon by
default but that is obviously not the case.
Any ideas?
Thanks,
Doug Harber
- 4
- Microsoft Project >> ProjectSP2.mspI upgraded MS Office 2003 to MS office 2007. Now I want to move from
Project 2003 to Project 2007. When I install 2007, I get the message
thet I have to remeove MS Project 2003 first, although this has been
removed earlier. I also get the warning that i need to refer the
location of the file Projectsp2.msp. Anyone encountered this before ?
Looking forward to your advise,
Regards,
KrL
- 5
- ADO >> MyGeneration for .NET (100% Free Code Generator / OR Mapper)MyGeneration is 100% free, tired of hand coding business objects, stored
procedures, spend your time wisely doing other thing and let us help you.
See http://www.mygenerationsoftware.com
1) MyGeneration is a Template Based Code Generator Supporting Four Template
Languages - JScript, VBScript, C# and VB.NET
2) Ability to Create Your Own Embedded User Interface in your Templates
3) Supported ORM Architectures - Gentle.NET, Opf3, NHibernate
4) MyGeneration dOOdads Architecture Included for Both C# and VB.NET (See
Menu)
5) Support for 11 Different Database Systems.
Microsoft SQL, Oracle, IBM DB2, MySQL, PostgreSQL, Microsoft Access,
FireBird, Interbase, SQLite, VistaDB, and Advantage.
5) Online Template Library for Publishing and Downloading Templates
6) Very Active Support Forums
7) No Hassle, No Questions asked Download
- 6
- Winforms >> Position of form questionWhen I use the Show() method to position a form, the runtime engine seems to
decide where to put it, normally just below and right of the parent window.
It does not seem to allow me to specify the co-ordinates in the Show(), and
it does not follow the Location property of the secondary form itself. I can
set the Location of the form after it is shown but then I see it painted in
the default location for a fraction of a second before it is moved.
How can I place it where I want it in a flicker-free way ?
- 7
- Dotnet >> Building DataSets using SQL Servers MetaDataHi all.
Using Visual Studio VB.NET and SQL Server 2000.
When I drag tables from the SQL Server Explorer into a dataset I am building
I get the table, fieldnames and types. But, why doesn't it put in relations,
defaults and all the other information from the SQL Server. It takes time to
do this in VS when it is already done on the SQL Server. When I build a
diagram in SQL Server all this information gets there automaticly, but not
in VS.NET. Are there som settings I am missing here? We do have some
datasets with lots of tables and relations, constraints, defaults....
Thanx all.
gh
- 8
- Winforms >> Visual Studio - Debug Error FormI am looking to see if someone has created that form that pops up in VS when
you hit an error during debug. The one with the error info, the connector
line to the line causing the error and can be dragged around.Anyone know
where I can find info on recreating this?
Thanks,
Brian
- 9
- ADO >> Close not closing...I've written a small app which has 2 buttons.
The 1st button goes away to a directory full of SQL Scripts, and then
runs them against the database.
The 2nd button has code to do some modifications to the database,
looking like the code below:
_______________________________________________________________________
_________
string connectionString;
connectionString =
Properties.Settings.Default.DatabaseConnectionString + databaseName;
// create a new SqlConnection object with the appropriate
connection string
SqlConnection sqlConn = new
SqlConnection(connectionString);
try
{
// open the connection
sqlConn.Open();
// create the command object
SqlCommand sqlComm = new SqlCommand(SQLCommands,
sqlConn);
sqlComm.ExecuteNonQuery();
// close the connection
sqlConn.Close();
MessageBox.Show("Operation Completed");
}
_______________________________________________________________________
_________
One of the scripts run from the script folder Drops a user, and then
Re-Creates them.
If I hit the script button first, then everything works fine.
However if I run the code button first, and then hit the script
button, an exception is thrown
saying that the user can not be dropped since they are currently
logged in!
I'm guessing I'm missing something, but it appears the Close method on
the sqlConnection object isn't
actually closing the connection...
Terminating the application and starting again resets the problem,
however there is nothing in
the dispose methods which would do that.
I've tried exchanging Close for Dispose but it made no difference.
Any help would be appreciated.
Cheers
Chris.
saying that a user is
- 10
- 11
- Microsoft Project >> MS Project 2003 viewers (Freeware)Does anyone know of a freeware Project 2003 viewer other than Steelray
I have users that need to view MS Project 2003 formatted but cant. Saving
the Project 2003 file in Project 98 format causes a loss of formatting and
useless. Please let me know of any recommendations.
Thanks
- 12
- Dotnet >> Dynamic assign delegate function?Hi
I have an odd question: is it possible to have a delegate that recieves
a methodname dynamically?
Like this: aClassObj.OnGo += new ANamespace.Invoke(fName);
where fName would be a string with the function name;
Maybe this is totally conceptually wrong, but right now I'm nont sure
which way to go.
I have a timer that trigger an event OnGo that fires a function within
a class and now I'd like to have a number of functions that can be
called and is decided in an xml document. Possibly a stupid idea, but i
don't know how to proceed.
TopObj->holds instance of callerObj
callerObj-> creates a instance of delegateObj
callerObj -> assigns one of its own functions to the event
delegateObj.OnGo
If it doesn't make any sense tell me to bury it and rewrite...:-(
Example on what I would like to do:
namespace ANamespace{
public delegate void Invoke(string ObjId);
Class A{
public event Invoke OnGo;
.....
}
Class B {
A aClassObj;
...
public B()
{
aClassObj = new A();
}
public void functionAssign(string fName)
{
aClassObj.OnGo += new ANamespace.Invoke(fName);
}
public void callerFunction(string ID){...}
}
}
- 13
- Visual C#.Net >> regarding error "Http error-404 object not found"Hi all
I have visual studio 2003 and also configured IIS.But not able to
execute any web application.
I am a beginner and all the small web applications I had made some
days days ago were working perfectly .But now when i tried to execute
them again ,they are giving the error"Http error-404 object not
found" .what should I do.Please help me out.
thanks and regards
niki
- 14
- Visual C#.Net >> Desktop Iconshi all
is there anyway in C# or using winAPI that can help me in arranging desktop
icons on a small area in the middle of the desktop wallpaper or in more
detail can i set the coordinates of each icon as i wish
thx all
- 15
- Net Framework >> POS SystemI would like to create a Point Of Sale System. Is there a website that sells
the interface between a POS Cash register and .NET?
Thanks for the help
|
| Author |
Message |
MForst

|
Dotnet >> Error on Form opening if I compile from command line
1) Open Visual Studio .Net 2003
2) Create new project Visual C # (Windows application)
3) Close Visual Studio .Net 2003
4) Compile from command line "devenv.exe /rebuild Debug /project Sample
Sample.sln"
5) Open Visual Studio .Net 2003
6) Open Form1 --> Error on document loading
If delete the hidden File .\obj\Debug\Sample.projdata I do not have more
this error
Why ???
DotNet44
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Dotnet |
- Next
- 1
- 2
- Winforms >> Windows form as threadHello,
I'm using a windows form as a thread and I have no idea about how to acces
my form methods after having started the thread.
Actually it's a kind of progress form wich I have to set the progress value.
But once the form started, I have no way to acces it's method
"setProgressValue()" to set the value of the progressBar.
I start the process by System.threading.
Please can you show me the way?
Thanks....
- 3
- Dotnet >> Getting handle to user' s tokenHi,
In my program I need the handle to the current user's token to perform
some operations in native code. I am trying to get the handle using
WindowsIdentity.GetCurrent().Token and pass it to my native dll.
Does this method return a handle to the user's token? Or is there some
other way to get it? Or is it better to do this in native code.
Thanks,
RB
- 4
- Winforms >> Sorting data in a datasetI have a problem=2E I'm using OleDB to access an Access database=
where a column is defined as System=2EString but it should be an=
integer=2E I cannot modify the database and I've written a program=
to retrieve the records in a dataset ordered by this column=2E=
The problem is that the sort is done according to the string=
type and not integer type=2E
I've tried to copy the dataset content to another content and=
convert the respective column to integer type, but the I don't=
know how to sort data acording to integer=2E
I know I can use a dataview for sorting but I need the output to=
go to a printer (a report)=2E Is it posible to use a dataview this=
way? Or at least the input source for creating another dataset=2E
And also I need to generate a column number with the current=
number of the records (index), if I generate it during the=
creation of dataset when I'll sort by the other column it will=
screw up this column (its records order)=2E
I would appreciate very much any help=2E
Andrei
--------------------------------
From: Andrei Gavra
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>XvlXDNKrVki0GW2jCXklww=3D=3D</Id>
- 5
- ADO >> OleDbException: Undefined function 'xxxxx' in expressionHello all,
I 'm receiving this error:
OleDbException: Undefined function 'xxxxx' in expression
when i try to execute a stored proc. that contain vb functions such as
replace$ or custom function that are declared in access vb modules.
These strored procs are valid and can be executed in the access environment
but fail when executed through a .net client app. Somehow, the app cant
resolve the function calls.
any ideas ?
tks
Anastasios
- 6
- Winforms >> text boxHello,
I have a text box in which I want that a user can only write a number or the
character 'x' but I can't do that
could any one help me please thank you
- 7
- Winforms >> Howto pass a cookie to a web browserI have a windows application in vb.net which communicates with different
webservers. In some cases I want to start the internet explorer (or another
browser) with the current session. How can I pass the session cookie to the
browser?
- 8
- Dotnet >> .NET Setup Project always adds desktop shortcut (checkbox always evaluates to 1)I have developed a Windows application in Visual Studio .NET 2003 and
created a Setup project for it. In the File System Editor I have added
a shortcut to the User's Desktop folder to point to the application
once it has been installed. I have added a condition to the User's
Desktop named "DESKTOPSHORTCUT" (I have used several names, this is
just the latest). In the User interface, I have added a screen with a
checkbox that asks the user whether he/she wants to add a shortcut to
the desktop. The Property of the checkbox is "DESKTOPSHORTCUT" and the
checkbox is checked by default (I have also tried it as unchecked by
default).
When I run the installation, the application's Setup asks whether I
want to add a shortcut to the desktop and then it adds the shortcut
regardless of whether the checkbox is checked or not!
When I try to make the value of this custom property show up in one of
the dialogs that come after the one showing the checkbox (e.g. using
[DESKTOPSHORTCUT] in a text field dialog) I saw that the property
always evaluates to 1. That is why, clearly, my 'Condition' on the
'Desktop Folder' (namely "DESKTOPSHORTCUT=1") always evaluates to TRUE
and consequently the desktop shortcut is created always! -- There is no
'Condition' property on the shortcut itself, I hope this is not the
actual problem...
I have extensively combed through the documentation of creating a Setup
project and custom dialogs, but have been unable to find a solution. I
have, however, found a related discussion about that problem on the
Web, but no solution is provided there either:
> "VS.NET always adds desktop application"
> http://www.dotnet247.com/247reference/msgs/57/285214.aspx
Has anyone else encountered this problem, too? How can I fix this?
- 9
- Dotnet >> Help on configuration file sampleDear all,
I just start to implement a configuration file for my
application with appSettings section and others.
As a startup phase I simply take some ready made example
and see how it works.
And unfortunatly I am not able to retrive any data from
the example
I have the following configuratin file sample :
<configuration>
<appSettings>
<add key="Application Name"
value="MyApplication" />
</appSettings>
</configuration>
this file is called as the name of my
application.exe.config
then in a class I have following lines:
dim appname as string
appname = configuration.ConfigurationSettings.AppSettings
("Application Name")
by executing that line, appname variable return nothing
whats is wrong?
thnaks
regards
- 10
- Visual C#.Net >> Remote Eventing Example RequiredHi,
I have foolishly got myself caught up in coding a pretty simple app in c#,
on the back of very little experience of the language. At the heart of the
app, is a remote server, which fires events of various types when particular
circumstances arise - around this server, I need a variety of clients, each
of which will be interested in one or more of the event types fired by the
server - so a group of clients in a network subscribing to events generated
remotely.
I would like to define an library containing abstract event types, and
implement them only where required (I don't want to reference the server
assembly in my clients - only the abstract library) It seems a common
scenario, and I'm sure there are people who do exactly this every day, but I
simply cannot find a good example on the web - the one I initially modelled
from was posted at http://www.codeproject.com/csharp/csRemoteEvents1.asp,
but I couldn't get it to work - probably because I couldn't correlate my
configuration settings with the code presented - but surely there is another
sample somewhere? (please don't point me atthe MSDN samples - the model
there is so contrived, and non-typical that it is almost useless).
Thanks in advance.
- 11
- Dotnet >> using Reflection with Multithreadinghi,
i have a program that used reflection to execute methods. now i want to
execute the reflected method on a new thread but cant figure out how or if it
can be done. take the below code, for instance.
// Declare the types.
string AssemblyToRun = "C:\MyAss";
string ClassToRun = "MyClass"
string MethodToRun = "MyMethod"
// Setup reflection.
Assembly MyAssemblyToRun = Assembly.LoadFrom(@AssemblyToRun + ".dll");
Type MyClassToRun = MyAssemblyToRun.GetType(AssemblyToRun + "." +
ClassToRun, true, true);
MethodInfo MyMethodToRun = MyClassToRun.GetMethod(MethodToRun);
// Create an instance of the class.
object MyClassInstance = Activator.CreateInstance(MyClassToRun);
// Execute the method.
object RetVal = MyMethodToRun.Invoke(MyClassInstance, BindingFlags.Default,
null, null, null);
simple right. ok. all the above works fine. now if i want to execute the
method on a new thread I would add something like:
Thread MyNewThread = new Thread(new ThreadStart(ClassToRun + "."
MethodToRun));
MyNewThread.Start();
that does not work because "ThreadStart" is a delegate that wants a "void"
method and all i can pass it is a class instance or the method name as a
string. it also wont work when i use the class instance or the MyMethodToRun
instance of the reflected method.
how can i use reflection and multithreading together? is this possibble? is
there a way to invoke a reflected method on a new thread?
HELP !!!
- 12
- Visual C#.Net >> shuffling an arraylistNot sure exactly how to ask this, but I have a situation where I need to
'shuffle' the order of a list of test questions, so that the questions
appear in a random order each time the test is taken. I am not sure how
to go about this. The questions and multiple choice answers are stored
in SQL Server. Any suggestions?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 13
- Net Framework >> SystemOutOfMemory ExceptionGuys
I am having a problem with my visual studio. I have been working on a
forms application for a few months now, but today I have started
getting an error message when I try to debug the code.
"An unhandled exception of type 'System.OutOfMemoryException' occured
in system.forms.dll
Additional information: Error creating window handle."
This only occurs on my machine and only when I debug the code. Looking
in Task Manager I am only using about 20% of total memory.
Also when debugging when the program is first started I get the error
'System.NullReferenceException'. This used to happen a lot, then it
went away for a while and now it is back. Again it only happens on my
machine and when debugging.
Both problems seem to be intermittent, although they occur around 80%
of the time.
I have tried uninstalling and reinstalling visual studio and .net.
Has anyone experienced this?
All help would be *greatly* appreciated.
Lewis
More details:
OS W2K SP4
IDE v 7.1.9088
.Net v1.1.4322
- 14
- 15
- Dotnet >> Problem while reading from excelhi,
I'm reading an excel sheet which contains more than 500 chars in a single
column using OledbDataReader. But while reading value using
dr[0].toString(), its taking only 255 chars. It removed the remaining chars.
How to solve this problem?
thanks in advance.
regards,
Gomathi
|
|
|