|
pashitech wrote: finally plz tell me is it possible to desply two controls in CHECKEDLISTBOX?
How often do I need to answer this ? No.
pashitech wrote: checkbox---TemparatureProperty + (label)TemparatureProperty'sDescription
I reiterate. Why on EARTH can't you just append the string to show both values ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I've been working on a plugin for Office, using .NET 2.0 - not using VSTO (Visual Studio Tools for Office). I'm almost finished, and I'm working on the deployment issues.
Appparently, there are a number of issues that one must avoid. First, you should always shim such plugins (see http://blogs.msdn.com/eric_carter/archive/2004/09/28/235500.aspx[^]), and fortunately there is a wizard to help you with that (http://blogs.msdn.com/eric_carter/archive/2006/06/23/641963.aspx[^]).
"Obviously", you should download the Primary Interop Assemblies (PIA) for Office and install them, and they can be found here[^].
Then, there is an KB article which describes a bug in Office that can be taken care of by downloading this[^] hotfix.
Finally, when all this has been taken care of, you can still run into trouble. Which is precisely what I've been experiencing. The thing is, my plugin has a reference to the Office applications it supports (Word,Excel,Outlook), or actually their PIA. But if the user doesn't have one of this application installed (I have an installation where Outlook isn't installed), it's PIA will not be installed either, and my plugin will try to reference a PIA which is not present. Which also means that when my plugin is being loaded from other Office applications, the load fails because the PIA cannot be found, even though that particular PIA will of course not be used. Needless to say, these PIA must be installed in the GAC and I have no control over them (other than shipping the install from Microsoft).
So, what are my options? Is there any way to "delay" the reference to an assembly? Or should I split my plugin into different assemblies, and load only the relevant assembly programmatically? I guess I could do that, but I would rather not if there is another way.
Hope someone will provide some insight into this - and I hope someone understood a word that I said!
Regards,
Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Hi,
I creating a SplitContainer inside a Panel thru code.
I have set the Dock property to fill, but when the splitContainer gets draw, it doesnt appear filled until i move the splitter.
Then it gets filled.
Can someone tell me why?
This is a resume of my code:
<br />
SplitContainer region = new SplitContainer();<br />
<br />
region.SuspendLayout();<br />
this.SuspendLayout();<br />
<br />
region.BorderStyle = BorderStyle.Fixed3D;<br />
region.SplitterDistance = d;<br />
region.TabIndex = regions.Count;<br />
region.Dock = System.Windows.Forms.DockStyle.Fill;<br />
regions[regions.Count-1].Panel1.Controls.Add(region);<br />
<br />
region.ResumeLayout(false);<br />
regions.Add(region);<br />
<br />
Any tips?
Thx,
Nuno
|
|
|
|
|
this.ResumeLayout ?
Or perhaps just Invalidate(); ?
I also don't see you adding the control to the Controls collection, does that happen below ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, it does.
It really is a question of layout resume.
Just to give it a try, i took of all the Suspend and Resume Layout() calls.
It worked, straight out of the box!
But this is not a very good pratice, right?
So.. how should i do this kind of operation?
In which order?
This is how i done it:
this.SuspendLayout();
mainPanel.SuspendLayout();
region.SuspendLayout();
...
region.ResumeLayout(false);
this.mainPanel.ResumeLayout(false);
this.ResumeLayout(false);
?
Nuno
|
|
|
|
|
I've never bothered with suspend/resume layout.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Its just a formality?
Can i ignore just like you, without serious implications? :P
Thx,
Nuno
|
|
|
|
|
I have to admit, I didn't even know it was expected. I write a pretty big winforms app, although I'm not sure how often it uses dynamic controls, I know it does, without issue.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have developed a windows service application in .net 2.0
It all works find and can install it successfully.
How do I transfer the executed file(s) for this program to the server so that it can be run from the services on the server?
What is the process related to this area please?
Thanks
|
|
|
|
|
You can install the service with
InstallUtil -i C:\somewhere\myService.exe
Alternatively you could build an installer project.
____________________________________
There is no proof for this sentence.
|
|
|
|
|
Please note, the way I currently install it on the server is by copying the whole project files from Dev machine for the windows service to the server, and run installutil.
But I would like to just have the project files on the dev machine and not on the server.
Not sure if this is making sense to you?
Thanks
|
|
|
|
|
Not a good idea. Under the .NET CLR, any code running from ANY network source is, by default, not trusted. The code runs under many security restrictions, possibly stopping your service from even running, depending on what it's doing.
So, when the server you're talking about restarts and your dev machine isn't running or isn't available, then what? What does the server do with a service it can't start?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form...
I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow...
Does anyone have any suggestions?
Your help is greatly appreciated
- a young C# programmer
|
|
|
|
|
Why would you want to do this ?
One way would be to put a window over the desktop, which is transparent, and doesn't appear in the taskbar.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm working on a project in school to lock public computers and to regain access with a PIN code..
Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no?
Regards
|
|
|
|
|
If the window were set to always on top it wouldn't matter if they used alt-tab. Although the most secure way (relatively speaking) would be to logout.
only two letters away from being an asset
|
|
|
|
|
just catch the keydown events
greetings
|
|
|
|
|
You can catch an event when your form loses focus, and bring it back to the front. But, yes, logging out is the best way to do it, Windows is already built around that.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Thank you guys for your input I greatly appreciate it
|
|
|
|
|
Hi Developer Folks,
Now my task is to create the application which can be accessed by any database.
Please advice me which tool is the best to do the Above mentioned thing and If not possible tell me some other way to achieve the same
Please mail me at jabeerbe@gmail.com for your answers.
Regards,
A Jabeer Ali
|
|
|
|
|
Jabeerbe wrote: Now my task is to create the application which can be accessed by any database.
Really, any app should be able to do that, simply by replacing the data layer.
Jabeerbe wrote: Please mail me at jabeerbe@gmail.com
The only people who will email you, are the people who trawl the web for addresses to send spam to. If you gave this address when you registered, you'd get an email automatically.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi I got a dataset contains three table table(0), table(1), table(2)
table(0) contains
CustID OrderID
1001 10001
1003 10002
1007 10003
1012 10004
1012 10005
Now I would like to create a query like [sqlQuery = "Select * CustID Where CustID Between 1001 and 1010"]
I would like to put this query result into table(1)
Is it possible? If so how can I do it?
Thanks
Sarfarj Ahmed
|
|
|
|
|
My first thought would be to do a selected on table0 and replace the rows in table1 with the resulting rows collection.
only two letters away from being an asset
|
|
|
|
|
thanks for ur reply
What Im trying to do is.........
I got Sql Server Database. One of the table name Volume which is related with five other tables. From Volume table I need to create two other table (VolumeSectors and VolumeThemes) then I need to create some query, where I want to use VolumeSectors and VolumeThemes tables instead of Volume tables.
So far what I have done...........
Added a DataSet into my Project where I have added three tables name Volume, VolumeSectors and VolumeThemes. I have already run a Query to pull all data from Volume Table (Sql Server Database) and put it on DataSet.Volume. Now I need to pull data from DataSet.Volume (specified data (need to write query)) and put it into VolumeSector and VolumeThemes on the basis of query.
Please help me............
If you can write some code for me
I have put data into DataSet.Volume with the following functions below
Public Function Qry_Volume() As DataTable
Dim _DataSet As DataSet = New Publications()
Dim _Qry_Volume_VolumeLessons_Table As DataTable = New DataTable()
Dim _Qry_Volume_Sectors As DataTable = New DataTable()
Dim con As AccessDatabase = New AccessDatabase()
Dim conLessons As SqlConnection = con.SQLConnnect()
Dim cmd As SqlCommand = New SqlCommand()
Dim _DataReader As SqlDataReader
Try
conLessons.Open()
cmd.CommandType = CommandType.Text
cmd.Connection = conLessons
cmd.CommandText = "Select V.Title, V.Voltype, V.Region, VL.Lesson From VolumeLessons VL Inner Join Volumes V ON VL.Volume = V.AutoID Order BY V.Title ASC "
_DataReader = cmd.ExecuteReader()
If _DataReader.HasRows Then
_DataSet.Tables(0).Load(_DataReader)
_DataReader.Close()
conLessons.Close()
End If
Catch ex As Exception
If conLessons.State = ConnectionState.Open Then
conLessons.Close()
End If
End Try
Return _DataSet.Tables(0)
conLessons.Close()
End Function
** Now how can I do it?
Thanks
Sarfarj Ahmed
|
|
|
|