|
I currently have a usercontrol that is a large rectangular panel. On this usercontrol I have a series of usercontrols that are all smaller rectangles running horizontally. The smaller usercontrols run off the bottom of the panel and hence the panel is scrollable. This is by design.
Each of the smaller usercontrols has a background image. When the panel is scrolled, the rendering of the smaller usercontrols is slow and blurred, only settling back to normal once the scrolling has stopped.
Am I just asking too much by expecting it to render smoothly in mid-scroll, or can I improve matters by forcing repainting more frequently while the scrolling occurs?
I am using VB .NET with VS2005.
Thanks for any assistance, and please let me know if I haven't provided sufficient detail.
-- modified at 9:01 Tuesday 7th February, 2006
|
|
|
|
|
I am using microsoft word COM component
i want to get the next pharse form a point
I would like to replace it. I am able to do FIND & REPLACE
How to get next word/pharse/paragraph into a string from a given point
including numeric, non numeric values & DATEs
Dim str1 As String = oWordAppl.Selection.Range.Paragraphs(1).Range.Text
gives me the followint an error
"vb(633): Interface 'Word.Paragraphs' cannot be indexed because it has no default property."
i am using ms word 2000
Thanks in Advance !
-- modified at 6:56 Tuesday 7th February, 2006
|
|
|
|
|
Hello EveryBuddy,
Small Query :- can i create a variable name by concantenation of two or more strings in VB.NET, such as we create a particular message by using variables using operator '&'?
Thanks for ur replies in advance...............
|
|
|
|
|
Yes, of course you can create a variable name, but it's harder to use it.
Every time someone asks something like this, it's because that person thinks that using dynamic variable names is the best way to solve a problem.
It never is.
What is it that you are trying to do?
And are you using VB or VB.NET?
---
b { font-weight: normal; }
|
|
|
|
|
As i previously mentioned i wnt to use it in VB.NET. I want to use it to show & hide legends for chart control. other option is to use "SELECT CASE" function which becomes too tedious to use.i dont wnt to use chart's original legends since they r too small to see. There r many other places where i can use dynamic variable names.
Dynamic variable names is very useful for me at this particular moment hence i asked this question...............
|
|
|
|
|
Sorry, didn't see that VB.NET.
Dynamic variables names is a bad idea, especially in compiled code. Even if it's possible using reflection to access the variables, there are so much overhead that the simplicity that you are looking for is lost.
If you want to access something by name, put it some kind of collection, like a HashTable or a ListDictionary.
---
b { font-weight: normal; }
|
|
|
|
|
Hi guys, i've an execution error when i use a dll from VB in c++. I've debugged the code and i've seen that the problem is when a callback function is returning...the point is that this callback function only drop down when is called from one of the dll's functions, but is working succesfully with the rest of them.
The functions of de dll are defined like this:
typedef void __stdcall (*funcion_crear)(char*,int,char*);
typedef void __stdcall (*funcion_configurar)(int,int,int,int,int);
typedef void __stdcall (*funcion_cargar)(char*);
typedef void __stdcall (*funcion_guardar)(char*);
typedef int __stdcall (*funcion_entrenar)(char*,char*);
typedef void __stdcall (*funcion_evaluar)(char*);
typedef void __stdcall (*CallVBFunctionStringPtr)(int);
typedef void __stdcall (*CallVBFunctionReportPerformancePtr)(int);
typedef void __stdcall (*CallVBFunctionClassificationResultPtr)(int);
funcion_crear fcrear;
funcion_configurar fconfig;
funcion_entrenar fentrenar;
funcion_evaluar fevaluar;
funcion_guardar fguardar;
funcion_cargar fcargar;
CallVBFunctionStringPtr callstring;
CallVBFunctionReportPerformancePtr callperformance;
CallVBFunctionClassificationResultPtr callresult;
Then, the external callback functions (CallVBxxx) are implemented with this three functions:
void __stdcall fCString (char* cadena,int longitud)
{
}
void __stdcall fCReportPerformance (char* cadenaestado,int longitud,int estado)
{
}
void __stdcall fCResult (int indice_clase)
{
Form1->resultado_RNA=indice_clase;
}
and the funcions are loaded from the main form like this:
fconfig=(funcion_configurar)(GetProcAddress(libreria,"ConfigureParameters"));
fcrear=(funcion_crear)(GetProcAddress(libreria,"create_net"));
fentrenar=(funcion_entrenar)(GetProcAddress(libreria,"train_net"));
fevaluar=(funcion_evaluar)(GetProcAddress(libreria,"test_net_singlevector"));
fguardar=(funcion_guardar)(GetProcAddress(libreria,"save_net"));
fcargar=(funcion_cargar)(GetProcAddress(libreria,"load_net"));
callstring=(CallVBFunctionStringPtr)(GetProcAddress(libreria,"CallVBFunctionStringPtr"));
callperformance=(CallVBFunctionReportPerformancePtr)(GetProcAddress(libreria,"CallVBFunctionReportPerformancePtr"));
callresult=(CallVBFunctionClassificationResultPtr)(GetProcAddress(libreria,"CallVBFunctionClassificationResultPtr"));
if ((callstring==NULL) || (callperformance==NULL) || (callresult==NULL)) ShowMessage("cagada");
callstring(int(&(fCString)));
callperformance(int(&(fCReportPerformance)));
callresult(int(&(fCResult)));
The only function that is dropping down is fevaluar, and the problem is when fCString callfuction is returning...
Can Somebody help me????
thank you very much
Best Regards.
|
|
|
|
|
You'd be much better off asking this question in the C++ Forum.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi..... Budy
I have a project which was build under Visual basic.Net version 2005, this project was contained some report which were build under crystal report program for Visual studio .Net 2005 as well. I had created setup disk succesfull for my project, but when i try to install it to another computer I faced a problem that the crystal report could not running well.
actually when I made a setup disk I could not found the following files :
- crystal_managed2003.msm
- Crystal_Database_accessXXXXX.msm
- Crystal_ database_accessXXXX_enu.msm
- Crystal_regwizXXXX.msm
when I tried to add merge files, as I know those above files are really important when we want to make setup disk it's base on my experience when I used Visual studio.net ver 2003.
And Now I need your help to tell me how to get those above Crystal report support files in Visual studio Ver.2005 ?
Thank you
Best regards
ICE
|
|
|
|
|
Thanks for the suggest!!
|
|
|
|
|
My users want to add hotkey functions to FKeys. They want to use(with others) F6, CTRL+F6, SHIFT+F6 and CTRL+SHIFT+F6.
The CTRL+F6 and CTRL+SHIFT+F6 keys perform next/previous MDI window functions; is there any way for me to trap for CTRL+F6 and CTRL+SHIFT+F6 without also trapping CTRL+TAB and CTRL+SHIFT+TAB?
PeteB
I wouldn't say "he's not the sharpest knife",
I'd say "he's a spoon."
-- modified at 10:44 Wednesday 8th February, 2006
|
|
|
|
|
heres a similar example in VB.NET, dont know how similar it would be to VB6..
<br />
'KeyPreview property on main form must be set to True<br />
Private Sub MainForm_keyDown(ByVal sender As System.Object, ByVal key As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown<br />
'this sets the Handled value to true so that the system<br />
'makes no other attempt to handle ALT + F4 key presses<br />
If key.KeyData = Keys.Alt + Keys.F4 Then<br />
key.Handled = True<br />
End If<br />
End Sub<br />
|
|
|
|
|
This will work for most key combinations but CONTROL+F6 and CONTROL+SHIFT+F6 are translated into WM_SYSCOMMAND messages before they generate KeyDown events, so this function doesn't see them
PeteB
I wouldn't say "he's not the sharpest knife",
I'd say "he's a spoon."
|
|
|
|
|
PramsModNair on CodeGuru suggested using the RegisterHotKey API and that has worked perfectly.
PeteB
I wouldn't say "he's not the sharpest knife",
I'd say "he's a spoon."
|
|
|
|
|
Hi thereevery one i want to use the crystal reports in vb need somehelp hereamalso newto codeproj :->
|
|
|
|
|
Are you refering to Seagate Crystal Reports
|
|
|
|
|
No dear these are not crystal reports its version XI seagate are the version 9 one more thing i have already downloaded some sample projects using crystal reports but taht has a crystal32.ocx is missing althoug i have already installed crystal reports on my pc.tell me wht tot do?
|
|
|
|
|
I have a class library project.
How can I set one of the form is private?
I find no property in form can set this.
Thank you!
|
|
|
|
|
First, it's not a property. It's in the declaration of your Form's class:
Public Class Form1
Inherits System.Windows.Forms.Form
This is where you change the Public to Private. But (there's always one of these), you can't do it without making your Form a member of another class. Private types must be a member of another type.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you Dave Kreskowiak !
|
|
|
|
|
I use VB.NET to write a class library.
There is three classes for calling some functions,
and I have check the project property page,
Configuration Properties, Builds, Register for COM interop.
So, a .tbl file is generated when compile and build the project.
This file is for VBA to call this class library function.
I have tried to make reference to this .tbl file and call those function.
It works fine.
However, after I modify the class library and recompile the file,
the vba got an error.
But when I drop the item on refernece list and find out the .tbl for reference again,
The vba can run again.
How can I run the vba without reference again the .tbl?
Thanks!
|
|
|
|
|
(Assuming Visual Studio.NET 2003 here...) Part of your problem may be the fact that every time you compile your library your allowing the version umber to change. Open the library's AssemblyInfo.vb file. At the bottom, you'll see something like this:
<Assembly: AssemblyVersion("1.0.*")>
See the '*' in the version number? That's allowing the compiler to automatically increment the version number in your library.
When you reference a component, one of the things that is very important in the registration is the version. If you change the version of the component though, the reference is no longer valid, unless that version still exists.
Change that line in AssemblyInfo.vb to something like this:
<Assembly: AssemblyVersion("1.0.0.1")>
Change the version info by hand, if needed, during development. This will keep all builds of your component the same version number.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Really Thank you to let me know this.
I have tried this but the same error is still here.
The error message said that the macro is stoped, please reference the help and find out the way to open the macro.
|
|
|
|
|
What error? Macro? What macro? You never said anything about a macro...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using Excel macro to reference the .tbl
The macro is really simple,
<br />
Sub a()<br />
Dim b As mydll.myclass<br />
Set b = New mydll.myclass<br />
<br />
b.myClassFunction<br />
End Sub<br />
b.myClassFunction runs fine when the first time,
after I modify and rebuild the mydll by VS2003,
the macro runs error.
b.myClassFunction just a msgbox("a") and I change to msgbox("b")
|
|
|
|